本文整理汇总了PHP中metsave函数的典型用法代码示例。如果您正苦于以下问题:PHP metsave函数的具体用法?PHP metsave怎么用?PHP metsave使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了metsave函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: metsave
<?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);
}
示例2: metsave
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);
}
示例3: delet_estat_cr
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();
}
示例4: metsave
$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.
示例5: Copyright
<?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.
示例6: Copyright
<?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.
示例7: ereg_replace
$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) != "/") {
示例8: metsave
$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'];
示例9: switch
$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.
示例10: str_replace
$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;
示例11: authcode
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;";
示例12: foreach
$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.
示例13: Copyright
<?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 = '{$pass1}'";
}
$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.
示例14: metsave
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'";
示例15: metsave
} 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.