/** # Project: PHPDISK File Storage Solution # This is NOT a freeware, use is subject to license terms. # # Site: http://www.google.com # # $Id: seo.inc.php 121 2014-03-04 12:38:05Z along $ # # Copyright (C) 2008-2014 PHPDisk Team. All Rights Reserved. # */ if (!defined('IN_PHPDISK') || !defined('IN_ADMINCP')) { exit('[PHPDisk] Access Denied'); } admin_no_power($task, 31, $pd_uid); switch ($action) { default: if ($task == 'update_setting') { form_auth(gpc('formhash', 'P', ''), formhash()); $meta_title = trim(gpc('meta_title', 'P', '')); $meta_keywords = trim(gpc('meta_keywords', 'P', '')); $meta_description = trim(gpc('meta_description', 'P', '')); $meta_title2 = trim(gpc('meta_title2', 'P', '')); $meta_keywords2 = trim(gpc('meta_keywords2', 'P', '')); $meta_description2 = trim(gpc('meta_description2', 'P', '')); $meta_title3 = trim(gpc('meta_title3', 'P', '')); $meta_keywords3 = trim(gpc('meta_keywords3', 'P', '')); $meta_description3 = trim(gpc('meta_description3', 'P', '')); $meta_title_s = trim(gpc('meta_title_s', 'P', '')); $meta_keywords_s = trim(gpc('meta_keywords_s', 'P', ''));
/** # Project: PHPDISK File Storage Solution # This is NOT a freeware, use is subject to license terms. # # Site: http://www.google.com # # $Id: files.inc.php 121 2014-03-04 12:38:05Z along $ # # Copyright (C) 2008-2014 PHPDisk Team. All Rights Reserved. # */ if (!defined('IN_PHPDISK') || !defined('IN_ADMINCP')) { exit('[PHPDisk] Access Denied'); } admin_no_power($task, 14, $pd_uid); function get_servers() { global $db, $tpf; $q = $db->query("select server_name,server_oid from {$tpf}servers where server_oid>1 order by server_id asc"); while ($rs = $db->fetch_array($q)) { $arr[] = $rs; } $db->free($q); unset($rs); return $arr; } switch ($action) { case 'index': $uid = (int) gpc('uid', 'GP', 0); $status = (int) gpc('status', 'GP', 0);
/** # Project: PHPDISK File Storage Solution # This is NOT a freeware, use is subject to license terms. # # Site: http://www.google.com # # $Id: plugins.inc.php 121 2014-03-04 12:38:05Z along $ # # Copyright (C) 2008-2014 PHPDisk Team. All Rights Reserved. # */ if (!defined('IN_PHPDISK') || !defined('IN_ADMINCP')) { exit('[PHPDisk] Access Denied'); } admin_no_power($task, 0, $pd_uid); $all_plugins_count = get_all_plugins_count('all'); $actived_plugins_count = get_all_plugins_count('actived'); $inactived_plugins_count = get_all_plugins_count('inactived'); $tmp = @$db->result_first("select count(*) from {$tpf}plugins where actived=1 and action_time>0"); $last_plugins_count = $tmp > 10 ? 10 : $tmp; switch ($action) { case 'active': $plugin_name = trim(gpc('plugin_name', 'G', '')); if ($plugin_name) { $ins = array('plugin_name' => $plugin_name, 'active' => 1); $sqls = "('{$ins[plugin_name]}','{$ins[active]}')"; $db->query("replace into {$tpf}plugins(plugin_name,actived) values {$sqls} ;"); } $sysmsg[] = __('plugins_actived_success'); redirect($_SERVER['HTTP_REFERER'], $sysmsg);
/** # Project: PHPDISK File Storage Solution # This is NOT a freeware, use is subject to license terms. # # Site: http://www.google.com # # $Id: announce.inc.php 121 2014-03-04 12:38:05Z along $ # # Copyright (C) 2008-2014 PHPDisk Team. All Rights Reserved. # */ if (!defined('IN_PHPDISK') || !defined('IN_ADMINCP')) { exit('[PHPDisk] Access Denied'); } admin_no_power($task, 29, $pd_uid); switch ($action) { case 'index': if ($task == 'update') { form_auth(gpc('formhash', 'P', ''), formhash()); $show_order = gpc('show_order', 'P', array()); $annids = gpc('annids', 'P', array()); if ($settings['online_demo']) { $error = true; $sysmsg[] = __('online_demo_deny'); } if (!$error) { for ($i = 0; $i < count($annids); $i++) { $db->query_unbuffered("update {$tpf}announces set show_order='" . (int) $show_order[$i] . "' where annid='" . (int) $annids[$i] . "'"); } redirect(urr(ADMINCP, "item={$item}&menu=extend&action=index"), '', 0);