<?php require_once '../login/login_check.php'; $adminno = $db->counter($met_admin_table, " where admin_type like '%metinfo%' and id<>'{$id}'", "*"); if ($adminno < 1) { metsave('-1', $lang_deleteJS); } if ($action == "del") { $allidlist = explode(',', $allid); foreach ($allidlist as $key => $val) { $query = "delete from {$met_admin_table} where id='{$val}'"; $db->query($query); } metsave('../admin/index.php?lang=' . $lang . '&anyid=' . $anyid); } else { $admin_list = $db->get_one("SELECT * FROM {$met_admin_table} WHERE id='{$id}'"); if (!$admin_list) { metsave('-1', $lang_loginNoid); } $query = "delete from {$met_admin_table} where id='{$id}'"; $db->query($query); metsave('../admin/index.php?lang=' . $lang . '&anyid=' . $anyid); }
if ($movelang != $lang) { $filname = "filename = '',"; } $query = "update {$met_job} SET"; $query = $query . "\n\t\t\t\t\t\t access = '{$access}',\n\t\t\t\t\t\t {$filname}\n\t\t\t\t\t\t lang = '{$movelang}'"; $query = $query . " where id='{$allidlist[$i]}'"; $db->query($query); } metsave($backurl, '', $depth); } else { $job_list = $db->get_one("SELECT * FROM {$met_job} WHERE id='{$id}'"); if (!$job_list) { metsave('-1', $lang_loginNoid, $depth); } $query = "update {$met_job} SET "; if (isset($top_ok)) { $top_ok = $top_ok == 1 ? 0 : 1; $query = $query . "top_ok = '{$top_ok}',"; } if (isset($displaytype)) { $displaytype = $displaytype == 1 ? 0 : 1; $query = $query . "displaytype = '{$displaytype}',"; } if (isset($wap_ok)) { $wap_ok = $wap_ok == 1 ? 0 : 1; $query = $query . "wap_ok = '{$wap_ok}',"; } $query = $query . "id='{$id}' where id='{$id}'"; $db->query($query); metsave($backurl . '&modify=' . $id . '&page=' . $page, '', $depth); }
delet_estat_cr(3, $met_stat_cr3); } if ($met_stat_cr4) { delet_estat_cr(4, $met_stat_cr4); } if ($met_stat_cr5) { delet_estat_cr(5, $met_stat_cr5); } if ($met_stat_max < 0) { $met_stat_max = 10000; } require_once $depth . '../include/config.php'; metsave('../app/stat/set.php?lang=' . $lang . '&anyid=' . $anyid, '', $depth); } elseif ($action == 'empty') { delet_estat_cr(1, 1); delet_estat_cr(2, 1); delet_estat_cr(3, 1); delet_estat_cr(4, 1); delet_estat_cr(5, 1); metsave('../app/stat/set.php?lang=' . $lang . '&anyid=' . $anyid, '', $depth); } else { $stat[$met_stat] = 'checked'; $stat_clear[$met_stat_clear] = 'checked'; $stat_cr1[$met_stat_cr1] = 'selected'; $stat_cr2[$met_stat_cr2] = 'selected'; $stat_cr3[$met_stat_cr3] = 'selected'; $stat_cr4[$met_stat_cr4] = 'selected'; $stat_cr5[$met_stat_cr5] = 'selected'; include template('app/stat/set'); footer(); }
$admin_list = $db->get_one("SELECT * FROM {$met_product} WHERE id='{$id}'"); if (!$admin_list) { metsave('-1', $lang_loginNoid, $depth); } $query = "update {$met_product} SET "; if (isset($new_ok)) { $new_ok = $new_ok == 1 ? 0 : 1; $query = $query . "new_ok = '{$new_ok}',"; } if (isset($com_ok)) { $com_ok = $com_ok == 1 ? 0 : 1; $query = $query . "com_ok = '{$com_ok}',"; } if (isset($displaytype)) { $displaytype = $displaytype == 1 ? 0 : 1; $query = $query . "displaytype = '{$displaytype}',"; } if (isset($top_ok)) { $top_ok = $top_ok == 1 ? 0 : 1; $query = $query . "top_ok = '{$top_ok}',"; } if (isset($wap_ok)) { $wap_ok = $wap_ok == 1 ? 0 : 1; $query = $query . "wap_ok = '{$wap_ok}',"; } $query = $query . "id='{$id}' where id='{$id}'"; $db->query($query); metsave("../content/product/index.php?anyid={$anyid}&lang={$lang}&class1={$class1}&class2={$class2}&class3={$class3}&page={$page}" . '&modify=' . $id . '&page=' . $page, '', $depth); } # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
<?php # MetInfo Enterprise Content Management System # Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. $depth = '../'; require_once $depth . '../login/login_check.php'; require_once ROOTPATH . 'public/php/searchhtml.inc.php'; if ($action == 'sendmail') { @ini_set("max_execution_time", "30000"); require_once ROOTPATH . 'include/jmail.php'; $emailok = jmailsend($met_fd_usename, $met_fd_fromname, $addressee, $title, $contents, $met_fd_usename, $met_fd_password, $met_fd_smtp); $re = $emailok ? $lang_setbasicok : $lang_setbasicno; metsave("../content/feedback/editor.php?anyid={$anyid}&id={$id}&lang={$lang}&class1={$class1}&classall={$classall}&customerid={$customerid}", $re, $depth); } $css_url = $depth . "../templates/" . $met_skin . "/css"; $img_url = $depth . "../templates/" . $met_skin . "/images"; include template('content/feedback/email'); footer(); # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
<?php # MetInfo Enterprise Content Management System # Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. $depth = '../'; require_once $depth . '../login/login_check.php'; $rurl = '../interface/flash/flash.php?anyid=' . $anyid . '&lang=' . $lang . '&module=' . $module . "&kuaijieskin={$kuaijieskin}"; $path = $met_flash_type == 2 ? "flash_path" : "img_path"; if (${$path} == '') { metsave('-1', $lang_js27, $depth); } if ($action == "add") { $module = $met_clumid_all == 10002 ? 'metinfo' : $f_columnlist; $query = "INSERT INTO {$met_flash} SET\n\t\tmodule = '{$module}',\n\t\timg_title = '{$img_title}',\n\t\timg_path = '{$img_path}',\n\t\timg_link = '{$img_link}',\n\t\tflash_path = '{$flash_path}',\n\t\tflash_back = '{$flash_back}',\n\t\tno_order = '{$no_order}',\n\t\twidth\t\t\t = '{$width}',\n\t\theight\t\t\t = '{$height}',\n\t\twap_ok\t\t\t = '0',\n\t\tlang = '{$lang}'"; $db->query($query); metsave($rurl, '', $depth); } elseif ($action == "editor") { $module = $met_clumid_all == 10002 ? 'metinfo' : $f_columnlist; $query = "update {$met_flash} SET\n\t\tmodule = '{$module}',\n\t\timg_title = '{$img_title}',\n\t\timg_path = '{$img_path}',\n\t\timg_link = '{$img_link}',\n\t\tflash_path = '{$flash_path}',\n\t\tflash_back = '{$flash_back}',\n\t\tno_order = '{$no_order}',\n\t\twidth\t\t\t = '{$width}',\n\t\theight\t\t\t = '{$height}',\n\t\twap_ok\t\t\t = '0',\n\t\tlang = '{$lang}'\n\t\twhere id='{$id}'"; $db->query($query); metsave($rurl, '', $depth); } # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
$met_wap_tpb = 1; } else { $met_wap_tpb = 0; } $met_wap_url = ereg_replace(" ", "", $met_wap_url); if (substr($met_wap_url, -1, 1) != "/") { $met_wap_url .= "/"; } if (!strstr($met_wap_url, "http://")) { $met_wap_url = "http://" . $met_wap_url; } if ($met_wap_url == 'http://' || $met_wap_url == 'http:///') { $met_wap_url = ''; } require_once $depth . '../include/config.php'; metsave('../app/wap/wap.php?lang=' . $lang . '&anyid=' . $anyid, '', $depth); } else { $met_wap1[$met_wap] = "checked"; $met_waplink1[$met_waplink] = "checked"; $met_wap_ok1[$met_wap_ok] = "checked"; $met_wap_tpa1[$met_wap_tpa] = "checked"; $met_wap_tpb1[$met_wap_tpb] = "checked"; $met_wapshowtype1[$met_wapshowtype] = "checked"; $webmpa = $_SERVER["PHP_SELF"]; $webmpa = dirname($webmpa); $webmpa = explode('/', $webmpa); $wnum = count($webmpa) - 2; for ($i = 1; $i < $wnum; $i++) { $webmp = $i == 1 ? $webmpa[$i] : $webmp . '/' . $webmpa[$i]; } if (substr($webmp, -1, 1) != "/") {
$query = "{$uptp} {$met_list} set\n\t\t\t\tinfo ='{$info}',\n\t\t\t\tno_order ='{$no_order}',\n\t\t\t\tbigid ='{$bigid}'\n\t\t\t\t{$upbp}"; $db->query($query); } metsave($backurl, '', $depth); } elseif ($action == "delete") { if ($action_type == "del") { $allidlist = explode(',', $allid); foreach ($allidlist as $key => $val) { $query = "delete from {$met_list} where id='{$val}'"; $db->query($query); } } else { $query = "delete from {$met_list} where id='{$id}'"; $db->query($query); } metsave($backurl, '', $depth); } else { $listinfo = ''; $bigid_info = $db->get_one("select * from {$met_parameter} where id='{$bigid}'"); if ($bigid_info['module'] == 8) { $listinfo = $db->get_one("select * from {$met_list} where bigid='{$bigid}' and no_order=99999"); $listinfoid = intval(trim($listinfo['info'])); } if ($listinfo) { $listmarknow = 'metinfo'; $classtype = $listinfo[info] == 'metinfoall' ? $listinfoid : ($met_class[$listinfoid][releclass] ? 'class1' : 'class' . $met_class[$listinfoid][classtype]); $query = "SELECT title FROM {$met_product} where {$classtype}={$listinfoid} and lang='{$lang}' and recycle='0' order BY updatetime desc"; $result = $db->query($query); $i = 0; while ($list = $db->fetch_array($result)) { $list['info'] = $list['title'];
$disname = 'dis-' . $val; $displayimg = ${$disname}; switch ($module) { case 2: $querysql = "imgurl='{$imgurl}',imgurls='{$imgurls}'"; break; case 3: $displayimg = fdisimg($displayimg); $querysql = "imgurl='{$imgurl}',imgurls='{$imgurls}',displayimg='{$displayimg}'"; break; case 4: $querysql = "downloadurl='{$flieurl}'"; break; case 5: $displayimg = fdisimg($displayimg); $querysql = "imgurl='{$imgurl}',imgurls='{$imgurls}',displayimg='{$displayimg}'"; break; } $query = "update {$table} set {$querysql},recycle='0' where id='{$val}'"; $db->query($query); } } } $page = $page + 1; if ($page * 5 - $numcsv >= 5) { metsave("../app/batch/contentup.php?anyid={$anyid}&lang={$lang}", $lang_jsok, $depth); } else { metsave("../app/batch/fileup.php?anyid={$anyid}&lang={$lang}&class1={$class1}&class2={$class2}&class3={$class3}&fid={$fid}&lid={$lid}&numcsv={$numcsv}&fileup={$fileup}&action=do&page={$page}", $lang_contentuppage, $depth); } # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
$list[fdtitle] = str_replace('\'', '\'\'', $list[fdtitle]); $list[fromurl] = str_replace('\'', '\'\'', $list[fromurl]); $list[useinfo] = str_replace('\'', '\'\'', $list[useinfo]); $list[customerid] = str_replace('\'', '\'\'', $list[customerid]); $query = "INSERT INTO {$met_feedback} SET class1='{$insert_id}',fdtitle='{$list['fdtitle']}',fromurl='{$list['fromurl']}',ip='{$list['ip']}',addtime='{$list['addtime']}',readok='{$list['readok']}',useinfo='{$list['useinfo']}',customerid='{$list['customerid']}',lang='{$copylang}'"; $db->query($query); } break; case 9: $query = "SELECT * FROM {$met_link} where lang='{$lang_now}'"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { $list[webname] = str_replace('\'', '\'\'', $list[webname]); $list[weburl] = str_replace('\'', '\'\'', $list[weburl]); $list[weblogo] = str_replace('\'', '\'\'', $list[weblogo]); $list[info] = str_replace('\'', '\'\'', $list[info]); $list[contact] = str_replace('\'', '\'\'', $list[contact]); $query = "INSERT INTO {$met_link} SET webname='{$list['webname']}',weburl='{$list['weburl']}',weblogo='{$list['weblogo']}',link_type='{$list['link_type']}',info='{$list['info']}',contact='{$list['contact']}',orderno='{$list['orderno']}',com_ok='{$list['com_ok']}',show_ok='{$list['show_ok']}',addtime='{$list['addtime']}',lang='{$copylang}',ip='{$list['ip']}'"; $db->query($query); } break; } } } if ($is_column) { $is_column = trim($is_column, ','); $re = $is_column . $lang_copyotherlang4; } $lang = $lang_now; metsave('../column/index.php?anyid=' . $anyid . '&lang=' . $lang, $re, $depth); die;
if ($action == "modify") { if ($met_adminfile != "" && $met_adminfile != $adminfile) { $met_adminfile_temp = $met_adminfile; $newname = '../../' . $met_adminfile; $met_adminfile_code = authcode($met_adminfile, 'ENCODE', $met_webkeys); require_once $depth . '../include/config.php'; if (rename("../../{$adminfile}", "../../{$met_adminfile_temp}")) { echo "<script type='text/javascript'> alert('{$lang_authTip11}'); document.write('{$lang_authTip12}'); top.location.href='{$newname}'; </script>"; die; } else { echo "<script type='text/javascript'> alert('{$lang_adminwenjian}'); top.location.reload(); </script>"; die; } } else { require_once $depth . '../include/config.php'; metsave('../system/safe.php?anyid=' . $anyid . '&lang=' . $lang); } } else { $localurl = "http://"; $localurl .= $_SERVER['HTTP_HOST'] . $_SERVER["PHP_SELF"]; $localurl_a = explode("/", $localurl); $localurl_count = count($localurl_a); $localurl_admin = $localurl_a[$localurl_count - 3]; $localurl_admin = $localurl_admin . "/system/safe"; $localurl_real = explode($localurl_admin, $localurl); $localurl = $localurl_real[0]; if (!is_dir('../../install')) { $installstyle = "display:none;"; } if (!is_dir('../../update')) { $updatestyle = "display:none;";
$paravalue1[] = $list1; } $i = 1; $infos = ""; foreach ($paravalue1 as $key => $val1) { $paras4_name = "para" . $val[id] . "_" . $i; $para_name = ${$paras4_name}; if ($infos) { if ($para_name) { $infos = $infos . "、" . $para_name; } } else { if ($para_name) { $infos = $para_name; } } $i = $i + 1; } if ($db->get_one("SELECT * FROM {$met_plist} WHERE listid='{$id}' and paraid='{$val['id']}' and module='10' and lang='{$lang}'")) { $query = "update {$met_plist} SET\tinfo='{$infos}' where listid='{$id}' and paraid='{$val['id']}' and module='10' and lang='{$lang}'"; $db->query($query); } else { $query = "INSERT INTO {$met_plist} SET info='{$infos}',listid='{$id}',paraid='{$val['id']}',imgname='{$val['name']}',module='10',lang='{$lang}'"; $db->query($query); } } } metsave('../member/index.php?lang=' . $lang . '&anyid=' . $anyid); } # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
<?php # MetInfo Enterprise Content Management System # Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. $depth = '../'; require_once $depth . '../login/login_check.php'; if (!isset($checkid)) { $checkid = 0; } if ($action == "editor") { if (isset($checkid) && $checkid == 1) { $approval_date = $m_now_date; } else { $approval_date = ''; } $query = "update {$met_admin_table} SET\n admin_id = '{$useid}',\n\t\t\t\t\t admin_name = '{$name}',\n\t\t\t\t\t admin_sex = '{$sex}',\n\t\t\t\t\t admin_tel = '{$tel}',\n\t\t\t\t\t admin_mobile = '{$mobile}',\n\t\t\t\t\t admin_email = '{$email}',\n\t\t\t\t\t admin_qq = '{$qq}',\n\t\t\t\t\t admin_msn = '{$msn}',\n\t\t\t\t\t admin_taobao = '{$taobao}',\n\t\t\t\t\t admin_introduction = '{$admin_introduction}',\n\t\t\t\t\t admin_approval_date= '{$approval_date}',\n\t\t\t\t\t usertype\t\t\t = '{$usertype}',\n\t\t\t\t\t companyname\t\t = '{$companyname}',\n\t\t\t\t\t companyaddress = '{$companyaddress}',\n\t\t\t\t\t companyfax\t = '{$companyfax}',\n\t\t\t\t\t companycode\t = '{$companycode}',\n\t\t\t\t\t companywebsite = '{$companywebsite}',\n\t\t\t\t\t checkid = '{$checkid}'"; if ($pass1) { $pass1 = md5($pass1); $query .= ", admin_pass = '******'"; } $query .= " where id='{$id}'"; $db->query($query); metsave('../mobile/member/index.php?lang=' . $lang . '&anyid=' . $anyid, '', $depth); } # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
die; } if ($met_fd_way == ssl) { $met_admin_smtp_ssl = "checked"; } if ($met_fd_way == tls) { $met_admin_smtp_tls = "checked"; } if ($action == 'modify') { if ($met_fd_password == 'passwordhidden') { $query = "select * from {$met_config} where name='met_fd_password' and lang='{$lang}'"; $value = $db->get_one($query); $met_fd_password = $value[value]; } require_once $depth . '../include/config.php'; metsave('../system/universal.php?anyid=' . $anyid . '&lang=' . $lang); } else { $met_recycle1[$met_recycle] = "checked='checked'"; if ($met_img_rename == 1) { $met_img_rename1 = "checked='checked'"; } if ($met_deleteimg == 1) { $met_deleteimg1 = "checked='checked'"; } if ($met_url_type == 1) { $met_url_type_yes = "checked"; } if ($met_url_type == 0) { $met_url_type_no = "checked"; } $met_smspass1[$met_smspass] = "checked='checked'";
} else { $admin_list = $db->get_one("SELECT * FROM {$met_column} WHERE id='{$id}'"); if (!$admin_list) { metsave('../column/index.php?anyid=' . $anyid . '&lang=' . $lang, $lang_dataerror); } $query1 = "select * from {$met_column} where bigclass='{$admin_list['id']}'"; $result1 = $db->query($query1); while ($list1 = $db->fetch_array($result1)) { if ($list1['releclass'] || $list1['classtype'] == 3) { delcolumn($list1); } else { $query2 = "select * from {$met_column} where bigclass='{$list1['id']}'"; $result2 = $db->query($query2); while ($list2 = $db->fetch_array($result2)) { delcolumn($list2); } delcolumn($list1); } } if ($admin_list[module] > 1000) { deldir("../../" . $admin_list[foldername]); $query = "delete from {$met_ifmember_left} where columnid='{$id}'"; $db->query($query); } delcolumn($admin_list); file_unlink("../../cache/column_{$lang}.inc.php"); $gent = '../../sitemap/index.php?lang=' . $lang . '&htmsitemap=' . $met_member_force; metsave('../column/index.php?anyid=' . $anyid . '&lang=' . $lang, '', '', '', $gent); } # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
<?php $depth = '../'; require_once $depth . '../login/login_check.php'; foreach ($met_langok as $key => $val) { $query = "delete from {$met_config} where name='met_jiathis_code' and lang='{$val['mark']}'"; $db->query($query); $query = "delete from {$met_config} where name='met_jiathis_ok' and lang='{$val['mark']}'"; $db->query($query); } deldir('../share'); $query = "delete from {$met_app} where no=6 and download=1"; $db->query($query); echo "卸载成功"; metsave('../app/dlapp/index.php?anyid=' . $anyid . '&lang=' . $lang, '', $depth);
} $classs = $_POST[class1] . "|" . $_POST[class2] . "|" . $_POST[class3]; if (!$menu_iconrgb) { $menu_iconrgb = '#ffffff'; } if (!$menu_wordrgb) { $menu_wordrgb = '#ffffff'; } if ($id != null) { $querys = "UPDATE {$met_wapmenu} SET `sequence`='{$menu_list_order}', `name`='{$menu_name}', `value`='{$values}',`columnicon`='{$met_icon}',`menu_iconrgb`='{$menu_iconrgb}' ,`menu_wordrgb`='{$menu_wordrgb}' , `values`='{$classs}',`type`='{$type}',`lang`='{$lang}' where id='{$id}'"; $menus = $db->query($querys); } else { $querys = "INSERT INTO {$met_wapmenu} SET `sequence`='{$menu_list_order}', `name`='{$menu_name}', `value`='{$values}',`columnicon`='{$met_icon}',`menu_iconrgb`='{$menu_iconrgb}' ,`menu_wordrgb`='{$menu_wordrgb}' , `values`='{$classs}',`type`='{$type}',`lang`='{$lang}'"; $menus = $db->query($querys); } metsave('../app/wap/custommenu.php?anyid=' . $anyid . '&cs=' . $cs . '&lang=' . $lang, '操作成功', $depth); } $querys = "SELECT value FROM {$met_config} where name='met_wapshowtype' and lang='{$lang}'"; $menus = $db->query($querys); while ($list = $db->fetch_array($menus)) { $sql = $list; } $sqls = ''; if ($sql[value] == 1) { $sqls = "and wap_ok='1'"; } $query = "SELECT * FROM {$met_column} where lang='{$lang}' {$sqls}"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { $clist[] = $list; if ($list['classtype'] == 1 || $list['releclass']) {
$db->query($query); $query = "update {$met_column} set classtype=2 where bigclass={$movenow['id']}"; $db->query($query); } else { if ($moveto['classtype'] == 1) { $query = "update {$met_column} set classtype=2,bigclass={$moveto['id']},releclass={$moveto['id']} where id='{$id}'"; $db->query($query); $query = "update {$met_column} set classtype=3 where bigclass={$movenow['id']}"; $db->query($query); } else { $query = "update {$met_column} set classtype=3,bigclass={$moveto['id']},releclass={$moveto['id']} where id='{$id}'"; $db->query($query); } } file_unlink("../../cache/column_{$lang}.inc.php"); metsave('../column/index.php?anyid=' . $anyid . '&lang=' . $lang); } } else { $query = "SELECT * FROM {$met_column} where lang='{$lang}'"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { if ($list['classtype'] == 1) { $purview = 'admin_pop' . $list['id']; $purview = ${$purview}; if ($metinfo_admin_pop == "metinfo" || $purview == 'metinfo') { $clist1[] = $list; } } if ($list['classtype'] == 2) { $clist2[] = $list; }
<?php # MetInfo Enterprise Content Management System # Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. $depth = '../'; require_once $depth . '../login/login_check.php'; require_once ROOTPATH . 'include/export.func.php'; if ($action == 'deqing') { $query = "delete from {$met_sms} "; $db->query($query); metsave('../app/sms/smsnotes.php?lang=' . $lang . '&anyid=' . $anyid . '&cs=' . $cs, '', $depth); } $total_pass = $db->get_one("SELECT * FROM {$met_otherinfo} WHERE lang='met_sms'"); if ($total_pass && $action == "getdate") { $met_file = '/sms/smsnotes.php'; $post = array('md5' => $total_pass['authpass']); $json = curl_post($post, 30); if ($json != 'not') { $list = json_decode($json, true); foreach ($list as $key => $val) { if ($val['content'] != '') { $query = "INSERT INTO {$met_sms} SET\n\t\t\t\t\ttime ='{$val['time']}',\n\t\t\t\t\ttype ='{$val['type']}',\n\t\t\t\t\tcontent ='{$val['content']}',\n\t\t\t\t\ttel ='{$val['tel']}',\n\t\t\t\t\tremark ='{$val['remark']}'"; $db->query($query); } } } echo 'ok'; die; } $serch_sql = " where time!='' "; if ($notes_type == NULL) {
$htmjs = indexhtm() . '$|$'; $htmjs .= contenthtm($class1, $id, 'showjob', $filename, 0, 'job', $addtime) . '$|$'; $htmjs .= classhtm($class1, 0, 0); $gent = '../../sitemap/index.php?lang=' . $lang . '&htmsitemap=' . $met_member_force; metsave('../content/job/index.php?anyid=' . $anyid . '&lang=' . $lang . '&class1=' . $class1, '', $depth, $htmjs, $gent); } if ($action == "editor") { if ($filename != '' && $filename != $filenameold) { $filenameok = $db->get_one("SELECT * FROM {$met_job} WHERE filename='{$filename}'"); if ($filenameok) { metsave('-1', $lang_modFilenameok, $depth); } } $query = "update {$met_job} SET \n\t\t\t\t\t\t position = '{$position}',\n\t\t\t\t\t\t place = '{$place}',\n\t\t\t\t\t\t deal = '{$deal}',\n\t\t\t\t\t\t content = '{$content}',\n\t\t\t\t\t\t count = '{$count}',\n\t\t\t\t\t\t useful_life = '{$useful_life}',\n\t\t\t\t\t\t addtime = '{$addtime}',\n\t\t\t\t\t\t access\t\t\t = '{$access}',\n\t\t\t\t\t\t no_order\t\t = '{$no_order}',\n\t\t\t\t\t\t displaytype = '{$displaytype}',"; if ($metadmin[pagename]) { $query .= "\n\t\t\t\t\t\t filename \t = '{$filename}',"; } $query .= "\n\t\t\t\t\t\t email = '{$email}',\n\t\t\t\t\t\t wap_ok = '{$wap_ok}',\n\t\t\t\t\t\t top_ok = '{$top_ok}'\n\t\t\t\t\t\t where id='{$id}'"; $db->query($query); $htmjs = indexhtm() . '$|$'; $htmjs .= contenthtm($class1, $id, 'showjob', $filename, 0, 'job', $addtime) . '$|$'; $htmjs .= classhtm($class1, 0, 0); if ($filenameold != $filename and $metadmin[pagename]) { deletepage($met_class[$class1][foldername], $id, 'showjob', $updatetimeold, $filenameold); } $turl = '../content/job/index.php?anyid=' . $anyid . '&lang=' . $lang . '&class1=' . $class1 . '&modify=' . $id . '&page=' . $page; $gent = '../../sitemap/index.php?lang=' . $lang . '&htmsitemap=' . $met_member_force; metsave($turl, '', $depth, $htmjs, $gent); } # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
$query = "delete from {$met_list} where bigid='{$val}'"; $db->query($query); } /*delete images*/ if ($type == 5) { $query = "select * from {$met_plist} where paraid='{$val}'"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { file_unlink("../../" . $list[info]); } } $query = "delete from {$met_plist} where paraid='{$val}'"; $db->query($query); $type = ''; } metsave('../column/parameter/parameter.php?anyid=' . $anyid . '&module=' . $module . '&lang=' . $lang . '&class1=' . $class1 . '&cs=' . $cs, '', $depth); } elseif ($action == "addsave") { $newslit = "<tr class='mouse newlist'>\n"; $newslit .= "<td class='list-text'><input name='id' type='checkbox' value='new{$lp}' checked='checked' /></td>\n"; $newslit .= "<td class='list-text'><input name='no_order_new{$lp}' type='text' class='text no_order' /></td>\n"; $newslit .= "<td class='list-text' style='padding-left:15px; text-align:left;'><input name='name_new{$lp}' type='text' class='text nonull' /></td></td>\n"; if ($module == 6 || $module == 8 || $module == 10 || $module == 7) { $newslit .= "<td class='list-text' style='padding-left:15px; text-align:left;'><input name='description_new{$lp}' type='text' class='text' /></td></td>\n"; } if ($module < 6) { $newslit .= "<td class='list-text v52fmbx_skined'>\n"; $newslit .= "<select name='class1_new{$lp}' >\n"; $newslit .= "<option value='0' selected='selected'>{$lang_allcategory}</option>\n"; foreach ($met_classindex[$module] as $key => $val1) { $newslit .= "<option value='{$val1['id']}|0|0)' class='c1'>=={$val1['name']}==</option>\n"; foreach ($met_class2[$val1['id']] as $key => $val2) {
if (substr($met_weburl, -1, 1) != "/") { $met_weburl .= "/"; } if (!strstr($met_weburl, "http://")) { $met_weburl = "http://" . $met_weburl; } } require_once $depth . '../include/config.php'; if ($cs == 1) { $query = "update {$met_lang} SET met_weburl = '{$met_weburl}' where lang='{$lang}'"; $db->query($query); } sitemap_robots(); $db->query("update {$met_otherinfo} set info1='',info2='' where id=1"); $gent = '../../include/404.php?lang=' . $lang . '&metinfonow=' . $met_member_force; metsave('../system/basic.php?anyid=' . $anyid . '&lang=' . $lang . '&cs=' . $cs . '&linkapi=1', '', '', '', $gent); } else { $localurl = "http://"; $localurl .= $_SERVER['HTTP_HOST'] . $_SERVER["PHP_SELF"]; $localurl_a = explode("/", $localurl); $localurl_count = count($localurl_a); $localurl_admin = $localurl_a[$localurl_count - 3]; $localurl_admin = $localurl_admin . "/system/basic"; $localurl_real = explode($localurl_admin, $localurl); $localurl = $localurl_real[0]; if ($met_weburl == "") { $met_weburl = $localurl; } $css_url = "../templates/" . $met_skin . "/css"; $img_url = "../templates/" . $met_skin . "/images"; if ($linkapi == 1) {
metsave($backurl, '', $depth, $htmjs, $gent); } elseif ($action == "editor") { $allidlist = explode(',', $allid); foreach ($allidlist as $key => $val) { $no_order = "no_order_{$val}"; $no_order = ${$no_order}; $query = "update {$met_job} SET\n\t\t\tno_order = '{$no_order}',\n\t\t\tlang = '{$lang}'\n\t\t\twhere id='{$val}'"; $db->query($query); } $htmjs = indexhtm() . '$|$'; $htmjs .= classhtm($class1, 0, 0); $gent = '../../sitemap/index.php?lang=' . $lang . '&htmsitemap=' . $met_member_force; metsave($backurl, '', $depth, $htmjs, $gent); } else { $job_list = $db->get_one("SELECT * FROM {$met_job} WHERE id='{$id}'"); if (!$job_list) { metsave('-1', $lang_dataerror, $depth); } if ($met_webhtm != 0 or $metadmin[pagename]) { if ($met_htmpagename == 1) { $updatetime = date('Ymd', strtotime($job_list[updatetime])); } deletepage($folder[foldername], $id, 'shownews', $updatetime, $job_list[filename]); } $query = "delete from {$met_job} where id='{$id}'"; $db->query($query); $htmjs = indexhtm() . '$|$'; $htmjs .= classhtm($class1, 0, 0); $gent = '../../sitemap/index.php?lang=' . $lang . '&htmsitemap=' . $met_member_force; metsave($backurl, '', $depth, $htmjs, $gent); }
require_once $depth . '../login/login_check.php'; require_once ROOTPATH . 'include/export.func.php'; if ($action == 'code') { $met_file = '/sms/code.php'; $post = array('total_pass' => $total_pass, 'total_email' => $total_email, 'total_weburl' => $total_weburl, 'total_code' => $total_code); $re = curl_post($post, 30); if ($re == 'error_no') { $lang_re = $lang_smstips79; } elseif ($re == 'error_use') { $lang_re = $lang_smstips80; } elseif ($re == 'error_time') { $lang_re = $lang_smstips81; } else { $lang_re = $lang_smstips82; } metsave("../app/sms/index.php?lang={$lang}&anyid={$anyid}&cs={$cs}", $lang_re, $depth); } $total_passok = $db->get_one("SELECT * FROM {$met_otherinfo} WHERE lang='met_sms'"); if ($total_passok['authpass'] == '') { if ($action == 'savedata') { $query = "delete from {$met_otherinfo} where lang='met_sms'"; $db->query($query); $query = "INSERT INTO {$met_otherinfo} SET \n\t\t\t\t\t\t\t authpass = '******',\n\t\t\t\t\t\t\t lang = 'met_sms'"; $db->query($query); echo 'ok'; die; } } if (!function_exists('fsockopen') && !function_exists('pfsockopen') && !get_extension_funcs('curl')) { $disable = "disabled=disabled"; $fstr .= $lang_smstips77;
$description = str_replace("\r", '', $description); $description = str_replace("\t", '', $description); $description = mb_substr($description, 0, 200, 'utf-8'); } $query = "update {$met_column} SET \n\t\t\t\t\t\t content = '{$content}',\n\t\t\t\t\t\t keywords = '{$keywords}',\n\t\t\t\t\t\t filename = '{$filename}',\n\t\t\t\t\t\t ctitle = '{$ctitle}',\n\t\t\t\t\t\t description = '{$description}'\n\t\t\t\t\t\t where id='{$id}'"; $db->query($query); $html = showhtm($id); if ($filenameold != $filename and $metadmin[pagename]) { deletepage($met_class[$id][foldername], $id, 'about', $updatetimeold, $filenameold); } $gent = '../../sitemap/index.php?lang=' . $lang . '&htmsitemap=' . $met_member_force; metsave('../content/about/about.php?anyid=' . $anyid . '&lang=' . $lang . '&id=' . $id, '', $depth, $html, $gent); } else { $about = $db->get_one("SELECT * FROM {$met_column} WHERE id='{$id}'"); if (!$about) { metsave('-1', $lang_dataerror, $depth); } $class1 = $about[bigclass] == 0 ? $id : $about[bigclass]; $class2 = $id; if ($about[classtype] == 3 || $about[classtype] == 2) { $ctp = 1; } $ctype = $about[classtype] == 2 && count($met_class3[$id]) ? 1 : 0; $ctype1 = $about[classtype] == 2 && count($met_class3[$id]) ? 1 : 0; if ($about[classtype] == 3) { $about2 = $db->get_one("SELECT * FROM {$met_column} WHERE id='{$about['bigclass']}'"); $class2 = $about2[id]; $class1 = $about2[bigclass]; $ctype1 = 1; } $nott = $class1 == $class2 || $class2 == $id ? 0 : 1;
metsave('../content/recycle/index.php?lang=' . $lang . '&anyid=' . $anyid, '', $depth); } else { $rid = explode('|', $id); switch ($rid[1]) { case 2: $recycle = $met_news; break; case 3: $recycle = $met_product; break; case 4: $recycle = $met_download; break; case 5: $recycle = $met_img; break; } $admin_list = $db->get_one("SELECT * FROM {$recycle} WHERE id='{$rid['0']}'"); if (!$admin_list) { metsave('-1', $lang_dataerror, $depth); } delimg($admin_list, 1, $rid[1]); if ($rid[1] != 2) { $query = "delete from {$met_plist} where listid='{$rid['0']}' and module='{$rid['1']}'"; $db->query($query); } $query = "delete from {$recycle} where id='{$rid['0']}'"; $db->query($query); metsave('../content/recycle/index.php?lang=' . $lang . '&anyid=' . $anyid, '', $depth); } }
$query = "delete from {$met_link} where id='{$val}'"; $db->query($query); } $htmjs = onepagehtm('link', 'index') . '$|$'; $htmjs .= indexhtm(); metsave($backurl, '', $depth, $htmjs); } elseif ($action == "delno") { $query = "delete from {$met_link} where show_ok=0 and lang='{$lang}'"; $db->query($query); $htmjs = onepagehtm('link', 'index') . '$|$'; $htmjs .= indexhtm(); metsave($backurl, '', $depth, $htmjs); } elseif ($action == "delall") { $query = "delete from {$met_link} where lang='{$lang}'"; $db->query($query); $htmjs = onepagehtm('link', 'index') . '$|$'; $htmjs .= indexhtm(); metsave($backurl, '', $depth, $htmjs); } else { $admin_list = $db->get_one("SELECT * FROM {$met_link} WHERE id='{$id}'"); if (!$admin_list) { metsave('-1', $lang_dataerror, $depth); } $query = "delete from {$met_link} where id='{$id}'"; $db->query($query); $htmjs = onepagehtm('link', 'index') . '$|$'; $htmjs .= indexhtm(); metsave($backurl, '', $depth, $htmjs); } # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
<?php # MetInfo Enterprise Content Management System # Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. require_once '../login/login_check.php'; $admin_list = $db->get_one("SELECT * FROM {$met_admin_array} WHERE id='{$id}'"); if (!$admin_list) { metsave('-1', $lang_dataerror); } $css_url = "../templates/" . $met_skin . "/css"; $img_url = "../templates/" . $met_skin . "/images"; include template('member/member_array_editor'); footer(); # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
<?php # MetInfo Enterprise Content Management System # Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. require_once '../login/login_check.php'; if ($action == 'modify') { if ($met_pseudo && $met_webhtm > 0) { metsave('-1', $lang_rewritefinfo2); die; } require_once $depth . '../include/config.php'; require_once 'pseudo.php'; $met_webhtm = $met_pseudo ? 3 : ($met_webhtm ? $met_webhtm : 0); $query = "update {$met_lang} SET met_webhtm = '{$met_webhtm}' where lang='{$lang}'"; $db->query($query); metsave('../seo/setpseudo.php?lang=' . $lang . '&anyid=' . $anyid . '&cs=' . $cs); } else { $cs = isset($cs) ? $cs : 1; $listclass[$cs] = 'class="now"'; $met_pseudo1[$met_pseudo] = 'checked'; $css_url = "../templates/" . $met_skin . "/css"; $img_url = "../templates/" . $met_skin . "/images"; include template('seo/setpseudo'); footer(); } # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
<?php # MetInfo Enterprise Content Management System # Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. $depth = '../'; require_once $depth . '../login/login_check.php'; if ($action == "add") { $access = $access != "" ? $access : "0"; $query = "INSERT INTO {$met_news} SET\n title = '{$title}',\n ctitle = '{$ctitle}',\n\t\t\t\t\t keywords = '{$keywords}',\n\t\t\t\t\t description = '{$description}',\n\t\t\t\t\t content = '{$content}',\n\t\t\t\t\t class1 = '{$class1}',\n\t\t\t\t\t class2 = '{$class2}',\n\t\t\t\t\t class3 = '{$class3}',\n\t\t\t\t\t img_ok = '{$img_ok}',\n\t\t\t\t\t imgurl = '{$imgurl}',\n\t\t\t\t\t imgurls = '{$imgurls}',\n\t\t\t\t com_ok = '{$com_ok}',\n\t\t\t\t wap_ok = '{$wap_ok}',\n\t\t\t\t\t issue = '{$issue}',\n\t\t\t\t\t hits = '{$hits}', \n\t\t\t\t\t addtime = '{$addtime}', \n\t\t\t\t\t updatetime = '{$updatetime}',\n\t\t\t\t\t access \t = '{$access}',\n\t\t\t\t\t filename \t = '{$filename}',\n\t\t\t\t\t no_order \t = '{$no_order}',\n\t\t\t\t\t lang \t = '{$lang}',\n\t\t\t\t\t top_ok = '{$top_ok}'"; $db->query($query); $later_news = $db->get_one("select * from {$met_news} where updatetime='{$updatetime}' and lang='{$lang}'"); $id = $later_news[id]; $htmjs = contenthtm($class1, $id, 'shownews', $filename) . '$|$'; $htmjs .= indexhtm() . '$|$'; $htmjs .= classhtm($class1, $class2, $class3); $turl = '../mobile/add/index.php?lang=' . $lang; metsave($turl, '', $depth, $htmjs); } # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.