require_once dirname(__FILE__) . '/../data/config.php'; require_once dirname(__FILE__) . '/include/admin_common.inc.php'; require_once ADMIN_ROOT_PATH . 'include/admin_weixin_fun.php'; $act = !empty($_GET['act']) ? trim($_GET['act']) : 'set_weixin'; $smarty->assign('act', $act); $smarty->assign('navlabel', $act); $smarty->assign('pageheader', "微信公众平台"); if ($act == 'set_weixin') { check_permissions($_SESSION['admin_purview'], "set_weixinconnect"); get_token(); $smarty->assign('rand', rand(1, 100)); $smarty->assign('upfiles_dir', $upfiles_dir); $smarty->assign('config', $_CFG); $smarty->display('weixin/admin_weixin.htm'); } elseif ($act == 'set_weixin_save') { check_permissions($_SESSION['admin_purview'], "set_weixinconnect"); check_token(); $has_weixin_scan_login_cache = $db->getone("select 1 from " . table('config') . " where name='weixin_scan_login'"); if (!$has_weixin_scan_login_cache) { inserttable(table("config"), array("name" => "weixin_scan_login")); } require_once ADMIN_ROOT_PATH . 'include/upload.php'; if ($_FILES['weixin_img']['name']) { $weixin_img = _asUpFiles($upfiles_dir, "weixin_img", 1024 * 2, 'jpg/gif/png', "weixin_img"); !$db->query("UPDATE " . table('config') . " SET value='{$weixin_img}' WHERE name='weixin_img'") ? adminmsg('更新站点设置失败', 1) : ""; } if ($_FILES['weixin_first_pic']['name']) { $weixin_first_pic = _asUpFiles($upfiles_dir, "weixin_first_pic", 1024 * 2, 'jpg/gif/png', "weixin_first_pic"); !$db->query("UPDATE " . table('config') . " SET value='{$weixin_first_pic}' WHERE name='weixin_first_pic'") ? adminmsg('更新站点设置失败', 1) : ""; } if ($_FILES['weixin_default_pic']['name']) {
$counter++; } $tpl->parse('ALS_LIST', 'als_list'); $tpl->assign('ALS_MESSAGE', ''); } } // // common page data. // global $cfg; $theme_color = $cfg['USER_INITIAL_THEME']; $tpl->assign(array('TR_CLIENT_MANAGE_DOMAINS_PAGE_TITLE' => tr('VHCS - Client/Manage Domains'), 'THEME_COLOR_PATH' => "../themes/{$theme_color}", 'THEME_CHARSET' => tr('encoding'), 'TID' => $_SESSION['layout_id'], 'VHCS_LICENSE' => $cfg['VHCS_LICENSE'], 'ISP_LOGO' => get_logo($_SESSION['user_id']))); // // dynamic page data. // gen_user_sub_list($tpl, $sql, $_SESSION['user_id']); gen_user_als_list($tpl, $sql, $_SESSION['user_id']); // // static page messages. // gen_client_menu($tpl); gen_logged_from($tpl); check_permissions($tpl); $tpl->assign(array('TR_MANAGE_DOMAINS' => tr('Manage domains'), 'TR_DOMAIN_ALIASES' => tr('Domain aliases'), 'TR_ALS_NAME' => tr('Name'), 'TR_ALS_MOUNT' => tr('Mount point'), 'TR_ALS_FORWARD' => tr('Forward'), 'TR_ALS_STATUS' => tr('Status'), 'TR_ALS_ACTION' => tr('Action'), 'TR_SUBDOMAINS' => tr('Subdomains'), 'TR_SUB_NAME' => tr('Name'), 'TR_SUB_MOUNT' => tr('Mount point'), 'TR_SUB_STATUS' => tr('Status'), 'TR_SUB_ACTION' => tr('Action'), 'TR_MESSAGE_DELETE' => tr('Are you sure you want to delete'))); gen_page_message($tpl); $tpl->parse('PAGE', 'page'); $tpl->prnt(); if (isset($cfg['DUMP_GUI_DEBUG'])) { dump_gui_debug(); } unset_messages();
if (inserttable(table('simple'), $setsqlarr)) { $link[0]['text'] = "返回列表"; $link[0]['href'] = '?act=list'; $link[1]['text'] = "继续添加"; $link[1]['href'] = "?act=simple_add"; adminmsg("添加成功!", 2, $link); } else { adminmsg("添加失败!", 0); } } elseif ($act == 'simple_edit') { get_token(); $id = intval($_REQUEST['id']); if (empty($id)) { adminmsg("您没有选择项目!", 1); } check_permissions($_SESSION['admin_purview'], "simple_edit"); $sql = "select * from " . table('simple') . " where id = '{$id}' LIMIT 1"; $show = $db->getone($sql); $show['district_cn'] = $show['district_cn'] . "/" . $show['sdistrict_cn']; $smarty->assign('show', $show); $smarty->display('simple/admin_simple_edit.htm'); } elseif ($act == 'simple_edit_save') { $id = intval($_POST['id']); if (empty($id)) { adminmsg("您没有选择项目!", 1); } if ($_POST['pwd']) { $info = $db->getone("select * from " . table('simple') . " where id = '{$id}' LIMIT 1"); $setsqlarr['pwd'] = md5(md5($_POST['pwd']) . $info['pwd_hash'] . $QS_pwdhash); } $setsqlarr['jobname'] = trim($_POST['jobname']) ? trim($_POST['jobname']) : adminmsg('您没有填写职位名称!', 1);
* 版权所有: 骑士网络,并保留所有权利。 * 网站地址: http://www.74cms.com; * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ */ define('IN_QISHI', true); require_once dirname(__FILE__) . '/../data/config.php'; require_once dirname(__FILE__) . '/include/admin_common.inc.php'; require_once ADMIN_ROOT_PATH . 'include/admin_category_fun.php'; $act = !empty($_GET['act']) ? trim($_GET['act']) : 'district'; if ($_CFG['subsite_id'] > 0) { adminmsg('您没有管理权限!', 0); } check_permissions($_SESSION['admin_purview'], "site_category"); $smarty->assign('pageheader', "分类管理"); if ($act == 'grouplist') { get_token(); $smarty->assign('navlabel', "group"); $smarty->assign('group', get_category_group()); $smarty->display('category/admin_category_group.htm'); } elseif ($act == 'add_group') { get_token(); $smarty->assign('navlabel', "group"); $smarty->display('category/admin_category_group_add.htm'); } elseif ($act == 'add_group_save') { check_token(); $setsqlarr['g_name'] = !empty($_POST['g_name']) ? trim($_POST['g_name']) : adminmsg("请填写分组名", 1); $setsqlarr['g_alias'] = !empty($_POST['g_alias']) ? trim($_POST['g_alias']) : adminmsg("请填写调用名", 1); $info = get_category_group_one($setsqlarr['g_alias']);
include DOKU_INC . 'inc/lang/' . $LC . '/install.html'; } else { print "<div lang=\"en\" dir=\"ltr\">\n"; include DOKU_INC . 'inc/lang/en/install.html'; print "</div>\n"; } ?> <a style="background: transparent url(data/security.png) left top no-repeat; display: block; width:380px; height:73px; border:none; clear:both;" target="_blank" href="http://www.dokuwiki.org/security#web_access_security"></a> </div> <div style="float: left; width: 58%;"> <?php if (!(check_functions() && check_permissions())) { echo '<p>' . $lang['i_problems'] . '</p>'; print_errors(); print_retry(); } elseif (!check_configs()) { echo '<p>' . $lang['i_modified'] . '</p>'; print_errors(); } elseif (check_data($_REQUEST['d'])) { // check_data has sanitized all input parameters if (!store_data($_REQUEST['d'])) { echo '<p>' . $lang['i_failure'] . '</p>'; print_errors(); } else { echo '<p>' . $lang['i_success'] . '</p>'; } } else {
* 74cms 个人设置 * ============================================================================ * 版权所有: 骑士网络,并保留所有权利。 * 网站地址: http://www.74cms.com; * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ */ define('IN_QISHI', true); require_once dirname(__FILE__) . '/../data/config.php'; require_once dirname(__FILE__) . '/include/admin_common.inc.php'; $act = !empty($_GET['act']) ? trim($_GET['act']) : 'set'; $smarty->assign('act', $act); $smarty->assign('pageheader', "个人设置"); check_permissions($_SESSION['admin_purview'], "set_per"); if ($act == 'set') { get_token(); $smarty->assign('config', $_CFG); $smarty->assign('text', get_cache('text')); $smarty->display('set_per/admin_set_per.htm'); } elseif ($act == 'set_save') { check_token(); //填写管理员日志 write_log("后台更新设置", $_SESSION['admin_name'], 3); foreach ($_POST as $k => $v) { !$db->query("UPDATE " . table('config') . " SET value='{$v}' WHERE name='{$k}'") ? adminmsg('更新设置失败', 1) : ""; } foreach ($_POST as $k => $v) { !$db->query("UPDATE " . table('text') . " SET value='{$v}' WHERE name='{$k}'") ? adminmsg('更新设置失败', 1) : ""; }
<?php /*************************************/ /* ezRPG script */ /* Written by Zeggy */ /* and CheapDevotion */ /* http://www.ezrpgproject.com */ /*************************************/ include "./lib.php"; define("PAGENAME", "Add Item"); if (check_permissions($player, 75) == 0) { include "./header.php"; echo "Your GM rank is not high enough to access this page!"; include "./footer.php"; exit; } //array of item types - probably needs to be added to database $itemtype[0] = "weapon"; $itemtype[1] = "armour"; $msg1 = "<font color=\"red\">"; //Name error? $msg2 = "<font color=\"red\">"; //Description error? $msg3 = "<font color=\"red\">"; //Type error? $msg4 = "<font color=\"red\">"; //Effectiveness error? $msg5 = "<font color=\"red\">"; //Price error? $error = 0; if ($_POST['add_item']) {
/* * 74cms HR工具箱 * ============================================================================ * 版权所有: 骑士网络,并保留所有权利。 * 网站地址: http://www.74cms.com; * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ */ define('IN_QISHI', true); require_once dirname(__FILE__) . '/../data/config.php'; require_once dirname(__FILE__) . '/include/admin_common.inc.php'; require_once ADMIN_ROOT_PATH . 'include/admin_hrtools_fun.php'; require_once ADMIN_ROOT_PATH . 'include/upload.php'; check_permissions($_SESSION['admin_purview'], "hrtools"); $act = !empty($_GET['act']) ? trim($_GET['act']) : 'list'; $hrtools_updir = "../data/hrtools/"; $hrtools_dir = "data/hrtools/"; $smarty->assign('pageheader', "HR工具箱"); if ($act == 'list') { get_token(); require_once QISHI_ROOT_PATH . 'include/page.class.php'; $oederbysql = " order BY h.h_order DESC,h_id DESC"; $key = isset($_GET['key']) ? trim($_GET['key']) : ""; $key_type = isset($_GET['key_type']) ? intval($_GET['key_type']) : ""; if ($key && $key_type > 0) { if ($key_type === 1) { $wheresql = " WHERE h.h_filename like '%{$key}%'"; } $oederbysql = "";
if (empty($resume)) { $link[0]['text'] = "返回简历列表"; $link[0]['href'] = '?act=list'; adminmsg('简历不存在或已经被删除!', 1, $link); } $smarty->assign('random', mt_rand()); $smarty->assign('time', time()); $smarty->assign('url', $_SERVER["HTTP_REFERER"]); $smarty->assign('resume', $resume); $smarty->assign('resume_education', get_resume_education($uid, $id)); $smarty->assign('resume_work', get_resume_work($uid, $id)); $smarty->assign('resume_training', get_resume_training($uid, $id)); $smarty->assign('resumeaudit', get_resumeaudit_one($id)); $smarty->display('personal/admin_personal_resume_show.htm'); } elseif ($act == 'del_auditreason') { check_permissions($_SESSION['admin_purview'], "resume_audit"); $id = !empty($_REQUEST['a_id']) ? $_REQUEST['a_id'] : adminmsg("你没有选择日志!", 1); $n = reasonaudit_del($id); if ($n > 0) { adminmsg("删除成功!共删除 {$n} 行", 2); } else { adminmsg("删除失败!", 0); } } elseif ($act == 'management') { $id = intval($_GET['id']); $u = get_user($id); if (!empty($u)) { unset($_SESSION['uid']); unset($_SESSION['username']); unset($_SESSION['utype']); unset($_SESSION['uqqid']);
/* * 74cms 邮件群发 * ============================================================================ * 版权所有: 骑士网络,并保留所有权利。 * 网站地址: http://www.74cms.com; * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ */ define('IN_QISHI', true); require_once dirname(__FILE__) . '/../data/config.php'; require_once dirname(__FILE__) . '/include/admin_common.inc.php'; require_once ADMIN_ROOT_PATH . 'include/admin_mailqueue_fun.php'; $act = !empty($_GET['act']) ? trim($_GET['act']) : 'list'; check_permissions($_SESSION['admin_purview'], "mailqueue"); $smarty->assign('pageheader', "邮件群发"); if ($act == 'list') { get_token(); require_once QISHI_ROOT_PATH . 'include/page.class.php'; $key = isset($_GET['key']) ? trim($_GET['key']) : ""; $key_type = isset($_GET['key_type']) ? intval($_GET['key_type']) : ""; if (!empty($key) && $key_type > 0) { if ($key_type === 1) { $wheresql = " WHERE m_subject like '%{$key}%'"; } if ($key_type === 2) { $wheresql = " WHERE m_mail = '{$key}'"; } $oederbysql = ""; }
* 74cms 邮件发送 * ============================================================================ * 版权所有: 骑士网络,并保留所有权利。 * 网站地址: http://www.74cms.com; * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ */ define('IN_QISHI', true); require_once dirname(__FILE__) . '/../data/config.php'; require_once dirname(__FILE__) . '/include/admin_common.inc.php'; $act = !empty($_GET['act']) ? trim($_GET['act']) : 'send'; $smarty->assign('pageheader', "邮件营销"); //需要注意 check_permissions($_SESSION['admin_purview'], "send_email"); if ($act == 'send') { get_token(); $url = trim($_REQUEST['url']); if (empty($url)) { $url = "?act=send"; } $smarty->assign('url', $url); $smarty->display('mail/admin_mail_send.htm'); } elseif ($act == 'email_send') { $email = trim($_POST['email']); $subject = trim($_POST['subject']); $body = trim($_POST['body']); $url = trim($_REQUEST['url']); if (empty($subject) || empty($body)) { crmmsg('标题和内容不能为空!', 0);
* You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ require_once '../libs/common.php'; require_once '../libs/operator.php'; require_once '../libs/groups.php'; require_once '../libs/getcode.php'; $operator = check_login(); check_permissions($operator, $can_administrate); loadsettings(); $stylelist = get_style_list("../styles"); $style = verifyparam("style", "/^\\w*\$/", ""); if ($style && !in_array($style, $stylelist)) { $style = ""; } $groupid = verifyparam_groupid("group"); $showhost = verifyparam("hostname", "/^on\$/", "") == "on"; $forcesecure = verifyparam("secure", "/^on\$/", "") == "on"; $modsecurity = verifyparam("modsecurity", "/^on\$/", "") == "on"; $allLocales = get_available_locales(); $lang = verifyparam("lang", "/^[\\w-]{2,5}\$/", ""); if (!$lang || !in_array($lang, $allLocales)) { $lang = in_array($current_locale, $allLocales) ? $current_locale : $allLocales[0]; }
/* * 74cms 短信发送 * ============================================================================ * 版权所有: 骑士网络,并保留所有权利。 * 网站地址: http://www.74cms.com; * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ */ define('IN_QISHI', true); require_once dirname(__FILE__) . '/../data/config.php'; require_once dirname(__FILE__) . '/include/crm_common.inc.php'; $act = !empty($_GET['act']) ? trim($_GET['act']) : 'send'; check_permissions($_SESSION['crm_admin_purview'], "send_sms"); $smarty->assign('pageheader', "短信营销"); if ($act == 'send') { get_token(); //$smarty->assign('navlabel','testing'); $url = trim($_REQUEST['url']); if (empty($url)) { $url = "?act=send"; } $smarty->assign('url', $url); $smarty->display('sms/crm_sms_send.htm'); } elseif ($act == 'sms_send') { $txt = trim($_POST['txt']); $mobile = trim($_POST['mobile']); $url = trim($_REQUEST['url']); if (empty($txt)) {
/* * 74cms 计划任务 * ============================================================================ * 版权所有: 骑士网络,并保留所有权利。 * 网站地址: http://www.74cms.com; * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ */ define('IN_QISHI', true); require_once dirname(__FILE__) . '/../data/config.php'; require_once dirname(__FILE__) . '/include/admin_common.inc.php'; require_once ADMIN_ROOT_PATH . 'include/admin_crons_fun.php'; $act = !empty($_GET['act']) ? trim($_GET['act']) : 'list'; check_permissions($_SESSION['admin_purview'], "crons"); $smarty->assign('pageheader', "计划任务"); if ($act == 'list') { require_once QISHI_ROOT_PATH . 'include/page.class.php'; $total_sql = "SELECT COUNT(*) AS num FROM " . table('crons'); $total_val = $db->get_total($total_sql); $page = new page(array('total' => $total_val, 'perpage' => $perpage, 'getarray' => $_GET)); $currenpage = $page->nowindex; $offset = ($currenpage - 1) * $perpage; $list = get_crons($offset, $perpage, $wheresql . $oederbysql); $smarty->assign('list', $list); $smarty->assign('page', $page->show(3)); $smarty->assign('navlabel', "list"); get_token(); $smarty->display('crons/admin_crons.htm'); } elseif ($act == 'add') {
$tpl->assign('group_name', stripslashes($group_name)); $tpl->assign('prio', $prio); $tpl->display('routes_groups_modify.tpl'); exit; } elseif ($_POST['confirm']) { if ($id_group) { $db->sql_query("update routes_groups set group_name='{$group_name}', id_tariff='{$id_tariff}', prio='{$prio}' where id='{$id_group}'"); } else { $db->sql_query("insert into routes_groups (group_name, id_tariff, prio) values('{$group_name}', '{$id_tariff}', '{$prio}')"); } header("location: routes_groups.php?id_tariff={$id_tariff}"); exit; } } if ($_POST['delselected'] || $_GET['delselected']) { check_permissions(CURR_SUBMENU, 2); $id = isset($_POST['id']) ? $_POST['id'] : $_GET['id']; if (count($id)) { foreach ($id as $value) { $value = intval($value); $db->sql_query("delete from routes where id_group='{$value}'"); $db->sql_query("delete from routes_groups where id='{$value}'"); } header("location: routes_groups.php?id_tariff={$id_tariff}"); } } $tariffs['ids'][] = 0; $tariffs['names'][] = $lang['all']; $sql_where = $id_tariff ? "and id_tariff='{$id_tariff}'" : ''; $tpl->assign('id_tariff', $id_tariff); $tpl->assign('tariffs', $tariffs);
<?php define('SQL_INC', 1); define('CURR_MENU', 'connections'); require 'inc/common.inc.php'; check_permissions(CURR_MENU, 1); $id_user = isset($_POST['id_user']) ? intval($_POST['id_user']) : intval($_GET['id_user']); $date1['year'] = $_POST['year1'] >= 2006 && $_POST['year1'] <= 2037 ? $_POST['year1'] : ($_GET['year1'] >= 2006 && $_GET['year1'] <= 2037 ? $_GET['year1'] : date('Y')); $date1['month'] = $_POST['month1'] >= 1 && $_POST['month1'] <= 12 ? $_POST['month1'] : ($_GET['month1'] >= 1 && $_GET['month1'] <= 12 ? $_GET['month1'] : date('n')); $date1['day'] = $_POST['day1'] >= 1 && $_POST['day1'] <= 31 ? $_POST['day1'] : ($_GET['day1'] >= 1 && $_GET['day1'] <= 31 ? $_GET['day1'] : date('j')); $date1['hour'] = isset($_POST['hour1']) && $_POST['hour1'] >= 0 && $_POST['hour1'] <= 23 ? $_POST['hour1'] : (isset($_GET['hour1']) && $_GET['hour1'] >= 0 && $_GET['hour1'] <= 23 ? $_GET['hour1'] : 0); $date1['min'] = isset($_POST['min1']) && $_POST['min1'] >= 0 && $_POST['min1'] <= 59 ? $_POST['min1'] : (isset($_GET['min1']) && $_GET['min1'] >= 0 && $_GET['min1'] <= 59 ? $_GET['min1'] : 0); $date2['year'] = $_POST['year2'] >= 2006 && $_POST['year2'] <= 2037 ? $_POST['year2'] : ($_GET['year2'] >= 2006 && $_GET['year2'] <= 2037 ? $_GET['year2'] : date('Y')); $date2['month'] = $_POST['month2'] >= 1 && $_POST['month2'] <= 12 ? $_POST['month2'] : ($_GET['month2'] >= 1 && $_GET['month2'] <= 12 ? $_GET['month2'] : date('n')); $date2['day'] = $_POST['day2'] >= 1 && $_POST['day2'] <= 31 ? $_POST['day2'] : ($_GET['day2'] >= 1 && $_GET['day2'] <= 31 ? $_GET['day2'] : date('j')); $date2['hour'] = isset($_POST['hour2']) && $_POST['hour2'] >= 0 && $_POST['hour2'] <= 23 ? $_POST['hour2'] : (isset($_GET['hour2']) && $_GET['hour2'] >= 0 && $_GET['hour2'] <= 23 ? $_GET['hour2'] : 23); $date2['min'] = isset($_POST['min2']) && $_POST['min2'] >= 0 && $_POST['min2'] <= 59 ? $_POST['min2'] : (isset($_GET['min2']) && $_GET['min2'] >= 0 && $_GET['min2'] <= 59 ? $_GET['min2'] : 59); $date1['day'] = cal_days_in_month(CAL_GREGORIAN, $date1['month'], $date1['year']) < $date1['day'] ? cal_days_in_month(CAL_GREGORIAN, $date1['month'], $date1['year']) : $date1['day']; $date2['day'] = cal_days_in_month(CAL_GREGORIAN, $date2['month'], $date2['year']) < $date2['day'] ? cal_days_in_month(CAL_GREGORIAN, $date2['month'], $date2['year']) : $date2['day']; $time_from = mktime($date1['hour'], $date1['min'], 1, $date1['month'], $date1['day'], $date1['year']); $time_to = mktime($date2['hour'], $date2['min'], 59, $date2['month'], $date2['day'], $date2['year']); $sql_where = $id_user ? "and history.id_user='******'" : ''; $db->sql_query("select users.login, history.id_user, inet_ntoa(history.addr) as \"address\", history.time_start, history.time_end from history, users where history.id_user=users.id {$sql_where} and (history.time_start between '{$time_from}' and '{$time_to}') order by history.time_start"); while ($connections[] = $db->sql_fetchrow()) { } unset($connections[count($connections) - 1]); $users = get_users(true); $tpl->assign('users', $users); $tpl->assign('id_user', $id_user); $tpl->assign('date11', $date1); $tpl->assign('date2', $date2);
check_permissions($_SESSION['admin_purview'], "consultant_edit"); $id = intval($_POST['id']); if (!$id) { adminmsg("请选择顾问!", 1); } $consultant = get_consultant_one($id); $setsqlarr['name'] = !empty($_POST['name']) ? trim($_POST['name']) : adminmsg('请填写姓名!', 1); $setsqlarr['qq'] = !empty($_POST['qq']) ? trim($_POST['qq']) : adminmsg('请填写QQ!', 1); if ($_FILES['pic']['name']) { $upload_image_dir = "../data/" . $_CFG['updir_images'] . "/" . date("Y/m/d/"); make_dir($upload_image_dir); require_once dirname(__FILE__) . '/include/upload.php'; $setsqlarr['pic'] = _asUpFiles($upload_image_dir, "pic", "2048", 'gif/jpg/bmp/png', true); $setsqlarr['pic'] = date("Y/m/d/") . $setsqlarr['pic']; @unlink("../data/" . $_CFG['updir_images'] . "/" . $consultant['pic']); } updatetable(table('consultant'), $setsqlarr, " id={$id} "); $link[0]['text'] = "返回列表"; $link[0]['href'] = "?act=consultant"; $link[1]['text'] = "查看修改结果"; $link[1]['href'] = "?act=consultant_edit&id={$id}"; adminmsg('修改成功!', 2, $link); } elseif ($act == "consultant_del") { check_permissions($_SESSION['admin_purview'], "consultant_del"); $id = intval($_GET['id']); if (!$id) { adminmsg("请选择顾问!", 1); } del_consultant($id); adminmsg("删除成功!", 2); }
/* * 74cms 支付方式 * ============================================================================ * 版权所有: 骑士网络,并保留所有权利。 * 网站地址: http://www.74cms.com; * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ */ define('IN_QISHI', true); require_once dirname(__FILE__) . '/../data/config.php'; require_once dirname(__FILE__) . '/include/admin_common.inc.php'; require_once ADMIN_ROOT_PATH . 'include/admin_pay_fun.php'; $act = !empty($_REQUEST['act']) ? trim($_REQUEST['act']) : 'list'; check_permissions($_SESSION['admin_purview'], "site_payment"); $smarty->assign('pageheader', "支付方式"); if ($act == 'list') { get_token(); $smarty->assign('payment', get_payment()); $smarty->display('pay/admin_payment_list.htm'); } elseif ($act == 'uninstall_payment') { check_token(); uninstall_payment($_GET['id']) ? adminmsg('成功卸载', 2) : adminmsg('卸载失败', 1); } elseif ($act == 'action_payment') { get_token(); $payment = get_payment_one($_GET['name']); if (!$payment) { adminmsg('获取失败', 1); } require_once "../include/payment/" . $payment['typename'] . ".php";
* * or use the following to to force a custom IP * php -f client.php 127.0.0.1 * * make sure you receive a success message before setting it up as a task * "Sun, 24 Jan 2016 11:54:33 +0100 - updating record with aaa.bbb.ccc.ddd" * */ // setup default values and load config file date_default_timezone_set('Europe/Berlin'); $PWD = dirname(realpath($argv[0])); $OS = strtoupper(substr(PHP_OS, 0, 3)); $DIR_SLASH = $OS === 'WIN' ? '\\' : '/'; $LF = $OS === 'WIN' ? "\r\n" : "\n"; require_once $PWD . $DIR_SLASH . 'config.php'; check_permissions(); //ensue that we can read and write to the cache file $cached_ip = get_cached_IP($PWD . $DIR_SLASH . $CONFIG['cache_ip']); $CONFIG['client_id'] = 'DNSmadeEasy.com Updater/2016.01.24 https://www.mysupportforum.com/kaisersoft/'; // get external IP of system $external_ip = get_external_ip($argv, $CONFIG['ipscript']); // update DNS if it changed if ($external_ip === $cached_ip) { echo date('r') . " - external IP has not changed: {$external_ip}{$LF}"; exit(0); } elseif ($external_ip == '') { echo date('r') . " - IP lookup server returned invalid data. {$external_ip}{$LF}"; exit(99); } elseif ($external_ip !== $cached_ip && strpos($external_ip, '.') !== false) { // update DNS record process_records($CONFIG, $RECORDS, $external_ip);
$arr[$i] = str_replace('DEFAULT CHARSET=' . str_replace('-', '', QISHI_CHARSET), '', $arr[$i]); } !$db->query($arr[$i]) ? adminmsg('还原失败', 0) : ""; } } $link[0]['text'] = "系统将自动继续..."; $link[0]['href'] = "?act=import&file_name={$_GET['file_name']}&filekey=" . ($filekey + 1); adminmsg("还原分卷 ({$backup_file}) 成功,系统将自动还原下一个分卷...", 1, $link, true, 2); } } elseif ($act == 'optimize') { get_token(); check_permissions($_SESSION['admin_purview'], "database"); $smarty->assign('list', get_optimize_list()); $smarty->assign('pageheader', "数据库"); $smarty->assign('navlabel', "optimize"); $smarty->display('database/admin_database_optimize.htm'); } elseif ($act == 'optimize_table') { check_token(); check_permissions($_SESSION['admin_purview'], "database"); $tablename = $_POST['tablename']; if (empty($tablename)) { adminmsg('您没有选择项目', 0); } if (is_array($tablename)) { $sqlstr = implode(",", $tablename); if ($db->query("OPTIMIZE TABLE {$sqlstr}")) { write_log("优化数据库成功", $_SESSION['admin_name'], 3); adminmsg('优化成功!', 2); } } }
/* * 74cms 邮件设置 * ============================================================================ * 版权所有: 骑士网络,并保留所有权利。 * 网站地址: http://www.74cms.com; * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ */ define('IN_QISHI', true); require_once dirname(__FILE__) . '/../data/config.php'; require_once dirname(__FILE__) . '/include/admin_common.inc.php'; $act = !empty($_GET['act']) ? trim($_GET['act']) : 'email_set'; check_permissions($_SESSION['admin_purview'], "site_mail"); $smarty->assign('pageheader', "邮件设置"); if ($act == 'email_set') { get_token(); $mailconfig = get_cache('mailconfig'); $mailconfig['smtpservers'] = explode('|-_-|', $mailconfig['smtpservers']); $mailconfig['smtpusername'] = explode('|-_-|', $mailconfig['smtpusername']); $mailconfig['smtppassword'] = explode('|-_-|', $mailconfig['smtppassword']); $mailconfig['smtpfrom'] = explode('|-_-|', $mailconfig['smtpfrom']); $mailconfig['smtpport'] = explode('|-_-|', $mailconfig['smtpport']); for ($i = 0; $i < count($mailconfig['smtpservers']); $i++) { $mailconfigli[] = array('smtpservers' => $mailconfig['smtpservers'][$i], 'smtpusername' => $mailconfig['smtpusername'][$i], 'smtppassword' => $mailconfig['smtppassword'][$i], 'smtpfrom' => $mailconfig['smtpfrom'][$i], 'smtpport' => $mailconfig['smtpport'][$i]); } $smarty->assign('mailconfig', $mailconfig); $smarty->assign('mailconfigli', $mailconfigli); $smarty->assign('navlabel', 'set');
} } elseif ($act == 'show_order') { get_token(); check_permissions($_SESSION['admin_purview'], "ord_show"); $smarty->assign('pageheader', "订单管理"); $smarty->assign('url', $_SERVER["HTTP_REFERER"]); $smarty->assign('payment', get_order_one($_GET['id'])); $smarty->display('hunter/admin_order_show.htm'); } elseif ($act == 'order_notes_save') { check_token(); $link[0]['text'] = "返回列表"; $link[0]['href'] = $_POST['url']; !$db->query("UPDATE " . table('order') . " SET notes='" . $_POST['notes'] . "' WHERE id='" . intval($_GET['id']) . "'") ? adminmsg('操作失败', 1) : adminmsg("操作成功!", 2, $link); } elseif ($act == 'order_del') { check_token(); check_permissions($_SESSION['admin_purview'], "ord_del"); $id = !empty($_REQUEST['id']) ? $_REQUEST['id'] : adminmsg("你没有选择项目!", 1); if (del_order($id)) { adminmsg("取消成功!", 2, $link); } else { adminmsg("取消失败!", 1); } } elseif ($act == 'meal_log_pie') { require_once ADMIN_ROOT_PATH . 'include/admin_flash_statement_fun.php'; $pie_type = !empty($_GET['pie_type']) ? intval($_GET['pie_type']) : 1; meal_hunter_log_pie($pie_type, 3); $smarty->assign('pageheader', "猎头顾问管理"); $smarty->assign('navlabel', 'meal_log_pie'); $smarty->display('hunter/admin_hunter_meal_log_pie.htm'); } elseif ($act == 'management') { $id = intval($_GET['id']);
/* * 74cms 系统日志 * ============================================================================ * 版权所有: 骑士网络,并保留所有权利。 * 网站地址: http://www.74cms.com; * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ */ define('IN_QISHI', true); require_once dirname(__FILE__) . '/../data/config.php'; require_once dirname(__FILE__) . '/include/admin_common.inc.php'; require_once ADMIN_ROOT_PATH . 'include/admin_syslog_fun.php'; $act = !empty($_REQUEST['act']) ? trim($_REQUEST['act']) : 'list'; check_permissions($_SESSION['admin_purview'], "syslog"); $smarty->assign('pageheader', "系统日志"); if ($act == 'list') { get_token(); require_once QISHI_ROOT_PATH . 'include/page.class.php'; $wheresql = ""; $oederbysql = " order BY l_id DESC "; if (isset($_GET['l_type']) && !empty($_GET['l_type'])) { $wheresql = " WHERE l_type='" . intval($_GET['l_type']) . "'"; } if (isset($_GET['settr']) && !empty($_GET['settr'])) { $settr = strtotime("-" . intval($_GET['settr']) . " day"); $wheresql = empty($wheresql) ? " WHERE l_time> " . $settr : $wheresql . " AND l_time> " . $settr; } $total_sql = "SELECT COUNT(*) AS num FROM " . table('syslog') . $wheresql; $total_val = $db->get_total($total_sql);
} $dararray[] = " tpl_dir!='{$str}' "; } if (!empty($dararray)) { $db->query("Delete from " . table('tpl') . " WHERE " . implode(" and ", $dararray) . " AND tpl_type='{$type}'"); } adminmsg('刷新成功', 2); } elseif ($act == 'resume_tpl') { get_token(); check_permissions($_SESSION['admin_purview'], "tpl_resume"); $smarty->assign('pageheader', "模板设置"); $smarty->assign('navlabel', "resume_tpl"); $smarty->assign('list', get_user_tpl(2, "tpl_resume")); $smarty->display('tpl/admin_resume_tpl_list.htm'); } elseif ($act == 'resume_tpl_save') { check_token(); check_permissions($_SESSION['admin_purview'], "tpl_resume"); $tpl_personal = trim($_POST['tpl_personal']); !$db->query("UPDATE " . table('config') . " SET value='{$tpl_personal}' WHERE name='tpl_personal'") ? adminmsg('更新站点设置失败', 1) : ""; refresh_cache('config'); $tpl_id = $_POST['tpl_id']; if (is_array($_POST['tpl_id']) && count($_POST['tpl_id']) > 0) { for ($i = 0; $i < count($_POST['tpl_id']); $i++) { $setsqlarr['tpl_name'] = trim($_POST['tpl_name'][$i]); $setsqlarr['tpl_display'] = intval($_POST['tpl_display'][$i]); $setsqlarr['tpl_val'] = intval($_POST['tpl_val'][$i]); !$db->updatetable(table('tpl'), $setsqlarr, " tpl_id=" . intval($_POST['tpl_id'][$i])) ? adminmsg("保存加失败!", 0) : ""; } } adminmsg("保存成功!", 2); }
/** * check_install * This checks folders + permissions, .php files and settings. */ function check_install() { global $config, $install_errors; // Error friendly messages $requirements_error = array('There is a problem regarding server requirements. This means that Chevereto can\'t run because of the following:', 'Please notice that this issue is because your server setup. If you want to run Chevereto please contact your hosting company or system admin regarding this report.'); $folder_error = array('There is a problem regarding folders. This means that Chevereto can\'t run because one or more folders required doesn\'t exists. The missing folders are:', 'Please double-check your current setup for the missing files.'); $admin_folder_error = array('There is a problem regarding the admin folder and Chevereto won\'t run because the admin folder doesn\'t exists.', 'Please double-check <code>$config[\'admin_folder\']</code> in the <code>includes/config.php</code> file.'); $htaccess = 'In some operating systems this files are hidden, therefore you can\'t upload them. You need to <a href="http://www.google.com/search?q=show+hidden+htaccess" target="_blank">show this file</a> and then upload it.'; $htaccess_error = array('Some <code>.htaccess</code> file(s) doesn\'t exists and the system can\'t create this files.', $htaccess); $root_htaccess_error = array('The <code>.htaccess</code> file doesn\'t exists in the Chevereto root directory. This file must be uploaded to run Chevereto.', $htaccess); $file_error = array(str_replace('folders', 'files', $folder_error[0]), str_replace('folders', 'files', $folder_error[1])); $permission_error = array('There is a problem regarding permissions. This means that Chevereto can\'t upload files because of the following:', 'Chevereto needs a way to write in this folders. You can do this by doing <a href="http://www.google.com/search?q=chmod+777" target="_blank">chmod 0777</a> on the above folders or use <a href="http://www.suphp.org/" target="_blank">suPHP</a> or <a href="http://httpd.apache.org/docs/current/suexec.html" target="_blank">suEXEC</a> on your server setup.'); $config_error = array('There is a problem regarding your config setup. This means that Chevereto won\'t run because the config is not valid:', 'Please double-check your settings in the <code>includes/config.php</code> file.'); $definitions_error = array('Please take note that you must edit the <code>definitions.php</code> file the first time that you install Chevereto.', 'Please double-check your definitions in the <code>includes/definitions.php</code> file.'); $theme_error = array('There is a problem regarding your current theme. This means that Chevereto won\'t run because <code>' . $config['theme'] . '</code> theme has missing files:', 'Please double-check the theme hierarchy.'); $theme_data_error = array('There is a problem regarding your current theme data. This means that Chevereto won\'t run because <code>' . $config['theme'] . '</code> theme has not valid theme data in <code>style.css</code> header comments:', 'Please double-check the <code>style.css</code> header comments and refer to the <a href="http://chevereto.com/docs#themes">theme documentation</a> page.'); $virtual_folder_error = array('There is a problem regarding your virtual folders setup:', 'Either you set different values for virtual folders in <code>includes/config.php</code> or you delete this directories.'); // Check for the server requirements if (!check_requirements()) { chevereto_die($install_errors, 'System error', $requirements_error); } // Check for the image folders $image_folders = array(__CHV_PATH_IMAGES__); if (!check_files_folders($image_folders, 'Directory')) { chevereto_die($install_errors, 'Folder error', $folder_error); } if (!check_permissions($image_folders)) { chevereto_die($install_errors, 'Permissions error', $permission_error); } // Check for virtual folders $virtual_folders = array(sanitize_path($config['virtual_folder_image']), sanitize_path($config['virtual_folder_uploaded'])); foreach ($virtual_folders as $folder) { if (file_exists(__CHV_ROOT_DIR__ . $folder)) { $install_errors[] = 'The directory <code>' . __CHV_RELATIVE_ROOT__ . $folder . '</code> must not exists'; } } if (count($install_errors) > 0) { chevereto_die($install_errors, 'Virtual folders error', $virtual_folder_error); } // Check for upload.php if (!file_exists(__CHV_ROOT_DIR__ . 'upload.php')) { chevereto_die('Can\'t find <code>upload.php</code>', 'Missing upload.php', $file_error); } // Check for the root .htaccess file if (!file_exists(__CHV_ROOT_DIR__ . '.htaccess')) { chevereto_die('', '.htaccess error', $root_htaccess_error); } // Admin folder if (!check_value($config["admin_folder"])) { $config["admin_folder"] = "admin"; } if (!file_exists(__CHV_PATH_ADMIN__)) { chevereto_die('', 'Admin folder doesn\'t exists', $admin_folder_error); } // Check for the other .htaccess files $htaccess_files = array(__CHV_PATH_IMAGES__, __CHV_PATH_INCLUDES__, __CHV_PATH_ADMIN_INCLUDES__); foreach ($htaccess_files as $dir) { if (!file_exists($dir . '.htaccess')) { switch ($dir) { case __CHV_PATH_IMAGES__: $rules = 'static'; break; case __CHV_PATH_INCLUDES__: case __CHV_PATH_ADMIN_INCLUDES__: $rules = 'deny'; break; } if (!htaccess($rules, $dir)) { $install_errors[] = 'Can\'t create <code>' . $dir . '.htaccess</code> file. Please upload the <code>.htaccess</code> file to the target dir'; } } } if (count($install_errors) > 0) { chevereto_die($install_errors, '.htaccess error', $htaccess_error); } // Files check $include_files = array('chevereto.php', 'uploader.php', 'shorturl.php', 'definitions.php', 'template.functions.php'); $classes_files = array('class.handler.php', 'class.db.php', 'class.upload.php', 'class.filelist.php', 'class.imageresize.php', 'class.imageconvert.php', 'class.minify.php', 'class.shorturl.php'); $system_files = array('login.php', 'error.php', 'style.css', 'img/chevereto.png', 'img/logo.png', 'img/ico-warn.png', 'img/background.png', 'img/bkg-content.png'); $system_files_minify = array('style.css'); $system_files = array_merge_minified($system_files, $system_files_minify); $system_js_files = array('uploadify.swf', 'ZeroClipboard.swf', 'pref.php'); $system_js_files_minify = array('jquery.js', 'chevereto.js', 'functions.js', 'jquery.uploadify-3.1_chevereto.js'); $system_js_files = array_merge_minified($system_js_files, $system_js_files_minify); // Admin files $admin_classes_files = array('class.adminhandler.php', 'class.manage.php'); $admin_system_files = array('header.php', 'filemanager.php'); $admin_system_files_minify = array('style.css', 'js/admin.js'); $admin_system_files = array_merge_minified($admin_system_files, $admin_system_files_minify); foreach ($include_files as $key => $value) { $include_files[$key] = __CHV_PATH_INCLUDES__ . $value; } foreach ($classes_files as $key => $value) { $classes_files[$key] = __CHV_PATH_CLASSES__ . $value; } foreach ($system_files as $key => $value) { $system_files[$key] = __CHV_PATH_SYSTEM__ . $value; } foreach ($system_js_files as $key => $value) { $system_js_files[$key] = __CHV_PATH_SYSTEM_JS__ . $value; } foreach ($admin_classes_files as $key => $value) { $admin_classes_files[$key] = __CHV_PATH_ADMIN_CLASSES__ . $value; } foreach ($admin_system_files as $key => $value) { $admin_system_files[$key] = __CHV_PATH_ADMIN_SYSTEM__ . $value; } /*** The complete file check array ***/ $check_files = array('Includes' => $include_files, 'Classes' => $classes_files, 'System Files' => array_merge($system_files, $system_js_files), 'Admin .htaccess' => array(__CHV_PATH_ADMIN_INCLUDES__ . '.htaccess'), 'Admin Classes' => $admin_classes_files, 'Admin System' => $admin_system_files); foreach ($check_files as $key => $value) { check_files_folders($value, 'File'); } if (count($install_errors) > 0) { chevereto_die($install_errors, 'Setup error', $file_error); } if (!check_config()) { chevereto_die($install_errors, 'Config error', $config_error); } if (!check_definitions()) { chevereto_die($install_errors, 'Please change definitions.php', $definitions_error); } if (!check_theme()) { chevereto_die($install_errors, 'Theme error', $theme_error); } if (!check_theme_data()) { chevereto_die($install_errors, 'Theme data error', $theme_data_error); } }
//Insert a log message into the error log function errorlog($msg, &$db) { $insert['msg'] = $msg; $insert['time'] = time(); $query = $db->autoexecute('log_errors', $insert, 'INSERT'); } //Insert a log message into the GM log function gmlog($msg, &$db) { $insert['msg'] = $msg; $insert['time'] = time(); $query = $db->autoexecute('log_gm', $insert, 'INSERT'); } //Get all settings variables function getSettings(&$db) { $query = $db->execute("select `name`, `value` from `settings`"); while ($set = $query->fetchrow()) { $setting->{$set}['name'] = $set['value']; } return $setting; } $setting = getSettings($db); //Get the player's IP address $ip = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; //Check that the player has the appropriate permission of a GM rank above 20 if (check_permissions($player, 21) == 0) { header("Location: ../logout.php"); exit; }
/* * 74cms 计划任务 * ============================================================================ * 版权所有: 骑士网络,并保留所有权利。 * 网站地址: http://www.74cms.com; * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ */ define('IN_QISHI', true); require_once dirname(__FILE__) . '/../data/config.php'; require_once dirname(__FILE__) . '/include/admin_common.inc.php'; require_once ADMIN_ROOT_PATH . 'include/admin_replace_fun.php'; $act = !empty($_GET['act']) ? trim($_GET['act']) : 'list'; check_permissions($_SESSION['admin_purview'], "upload_replace"); $smarty->assign('pageheader', "简历字段替换"); if ($act == 'list') { require_once QISHI_ROOT_PATH . 'include/page.class.php'; $wheresql = " WHERE 1=1 "; $oederbysql = " order BY id DESC "; $name = isset($_GET['name']) ? trim($_GET['name']) : ""; if ($name) { $wheresql .= " AND `name` like '{$name}%'"; $oederbysql = ""; } else { if (!empty($_GET['type'])) { if ($_GET['type'] == "1") { $wheresql .= " AND `type` = 1"; } elseif ($_GET['type'] == "2") { $wheresql .= " AND type = 2";
$link[1]['href'] = '?act=exhibitors'; adminmsg("添加成功!", 2, $link); } else { adminmsg("添加失败!", 0); } } elseif ($act == 'exhibitors_edit') { check_permissions($_SESSION['admin_purview'], "jobfair_exhibitors"); get_token(); $id = intval($_GET['id']); $sql = "select * from " . table('jobfair_exhibitors') . " where id='{$id}' LIMIT 1"; $info = $db->getone($sql); if ($info['uid'] > 0) { $info['company_url'] = url_rewrite('QS_companyshow', array('id' => $info['company_id'])); } $smarty->assign('info', $info); $smarty->assign('jobfair', get_jobfair_audit()); $smarty->assign('pageheader', "招聘会"); $smarty->display('jobfair/admin_jobfair_exhibitors_edit.htm'); } elseif ($act == 'exhibitors_edit_save') { check_permissions($_SESSION['admin_purview'], "jobfair_exhibitors"); check_token(); $id = intval($_POST['id']); $setsqlarr['companyname'] = !empty($_POST['companyname']) ? trim($_POST['companyname']) : adminmsg('您没有企业名称!', 1); $setsqlarr['audit'] = intval($_POST['audit']); $setsqlarr['etypr'] = intval($_POST['etypr']); $setsqlarr['note'] = trim($_POST['note']); $link[0]['text'] = "返回列表"; $link[0]['href'] = '?act=exhibitors'; write_log("修改id为:" . $id . "的参会企业信息", $_SESSION['admin_name'], 3); !$db->updatetable(table('jobfair_exhibitors'), $setsqlarr, " id=" . $id . "") ? adminmsg("修改失败!", 0) : adminmsg("修改成功!", 2, $link); }
} if ($num = report_audit($id, $audit, $type, $rid)) { write_log("设置举报信息审核状态,共影响{$num}行 ", $_SESSION['admin_name'], 3); adminmsg("设置成功!共影响 {$num}行 ", 2); } else { adminmsg("设置失败!", 0); } } } elseif ($act == 'del_report') { check_token(); check_permissions($_SESSION['admin_purview'], "report_del"); $id = !empty($_REQUEST['id']) ? $_REQUEST['id'] : adminmsg("你没有选择项目!", 1); $id = $_REQUEST['id']; if ($num = del_report($id)) { write_log("删除举报信息,共删除{$num}行 ", $_SESSION['admin_name'], 3); adminmsg("删除成功!共删除" . $num . "行", 2); } else { adminmsg("删除失败!", 0); } } elseif ($act == 'del_report_resume') { check_token(); check_permissions($_SESSION['admin_purview'], "report_del"); $id = !empty($_REQUEST['id']) ? $_REQUEST['id'] : adminmsg("你没有选择项目!", 1); $id = $_REQUEST['id']; if ($num = del_report_resume($id)) { write_log("删除举报简历信息,共删除{$num}行 ", $_SESSION['admin_name'], 3); adminmsg("删除成功!共删除" . $num . "行", 2); } else { adminmsg("删除失败!", 0); } }
* 版权所有: 骑士网络,并保留所有权利。 * 网站地址: http://www.74cms.com; * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ */ define('IN_QISHI', true); require_once dirname(__FILE__) . '/../data/config.php'; require_once dirname(__FILE__) . '/include/admin_common.inc.php'; $act = !empty($_GET['act']) ? trim($_GET['act']) : 'list'; $smarty->assign('act', $act); if ($_CFG['subsite_id'] > 0) { adminmsg('您没有管理权限!', 0); } check_permissions($_SESSION['admin_purview'], "hotword"); $smarty->assign('pageheader', "内容聚合关键字"); if ($act == 'list') { get_token(); require_once QISHI_ROOT_PATH . 'include/page.class.php'; $oederbysql = " order BY id DESC "; $key = isset($_GET['key']) ? trim($_GET['key']) : ""; if ($key) { $wheresql = " WHERE name like '%{$key}%'"; } $total_sql = "SELECT COUNT(*) AS num FROM " . table('content_key_link') . " " . $wheresql; $page = new page(array('total' => $db->get_total($total_sql), 'perpage' => $perpage)); $currenpage = $page->nowindex; $offset = ($currenpage - 1) * $perpage; $hotword = get_content_key_link($offset, $perpage, $wheresql . $oederbysql); $smarty->assign('hotword', $hotword);