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); }
} elseif ($action == "delall" || $action == "delno" || $action == "delyes" || $action == "delnoreply" || $action == "delreply") { $mesql = $action == "delno" ? "and readok=0" : $mesql; $mesql = $action == "delyes" ? "and readok=1" : $mesql; $mesql = $action == "delnoreply" ? "and useinfo is null" : $mesql; $mesql = $action == "delreply" ? "and useinfo is not null" : $mesql; $query = "delete from {$met_message} where lang='{$lang}' {$mesql}"; $db->query($query); $result = mysql_query("SELECT distinct listid FROM {$met_mlist} where lang='{$lang}'"); while ($row = mysql_fetch_array($result)) { if (!$db->get_one("SELECT * FROM {$met_message} where id='{$row['listid']}' and lang='{$lang}'")) { $query = "delete from {$met_mlist} where listid='{$row['listid']}' and module='7' and lang='{$lang}'"; $db->query($query); } } $htmjs = classhtm('message', 0, 0); metsave($backurl, '', $depth, $htmjs); } else { $admin_list = $db->get_one("SELECT * FROM {$met_message} WHERE id='{$id}'"); if (!$admin_list) { metsave('-1', $lang_dataerror, $depth); } $query = "delete from {$met_message} where id='{$id}'"; $db->query($query); $query = "delete from {$met_mlist} where listid='{$id}' and module='7' and lang='{$lang}'"; $db->query($query); $htmjs = classhtm('message', 0, 0); metsave($backurl, '', $depth, $htmjs); } ?>
case 2: $recycle = $met_news; $defilename = 'shownews'; break; case 3: $recycle = $met_product; $defilename = 'showproduct'; break; case 4: $recycle = $met_download; $defilename = 'showdownload'; break; case 5: $recycle = $met_img; $defilename = 'showimg'; break; } $admin_list = $db->get_one("SELECT * FROM {$recycle} WHERE id='{$rid['0']}'"); if (!$admin_list) { metsave('-1', $lang_dataerror, $depth); } $query = "update {$recycle} set recycle='0',updatetime='" . date('Y-m-d H:i:s') . "' where id='{$rid['0']}'"; $db->query($query); $htmjs = contenthtm($admin_list['class1'], $rid[0], $defilename, $admin_list['filename'], 0, '', $admin_list['addtime']) . '$|$'; $htmjs .= classhtm($admin_list['class1'], $admin_list['class2'], $admin_list['class3']) . '$|$'; $htmjs .= indexhtm(); metsave('../content/recycle/index.php?lang=' . $lang . '&anyid=' . $anyid, '', $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.
$download_list = $db->get_one("SELECT * FROM {$met_download} WHERE id='{$id}'"); if (!$download_list) { metsave('-1', $lang_dataerror, $depth); } if ($met_webhtm != 0 or $metadmin[pagename]) { if ($met_htmpagename == 1) { $updatetime = date('Ymd', strtotime($download_list[updatetime])); } deletepage($folder[foldername], $id, 'showdownload', $updatetime, $download_list[filename]); } if (!$met_recycle) { $query = "delete from {$met_plist} where listid='{$id}' and module='4'"; $db->query($query); } $query = $met_recycle ? "update {$met_download} set recycle='4',updatetime='" . date('Y-m-d H:i:s') . "' where id='{$id}'" : "delete from {$met_download} where id='{$id}'"; $db->query($query); if (!$met_recycle) { if ($download_list) { delimg($download_list, 1, 2); } else { delimg($id, 3, 2); } } $htmjs = indexhtm() . '$|$'; $class1 = $download_list[class1]; $class2 = $download_list[class2]; $class3 = $download_list[class3]; $htmjs .= classhtm($class1, $class2, $class3); $gent = '../../sitemap/index.php?lang=' . $lang . '&htmsitemap=' . $met_member_force; metsave($backurl, '', $depth, $htmjs, $gent); }
} if ($module == 6) { if ($listall == "all") { $methtmx .= classhtm($class1, 0, 0, 1) . '$|$'; } else { $query = "select * from {$met_job} where lang='{$lang}'"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { $methtm[] = contenthtm($class1, $list[id], 'showjob', $list['filename'], 1, 'job', $list[addtime]); } $methtm[] = onepagehtm('job', 'cv', 1); } } if ($module == 7) { if ($listall == "all") { $methtmx .= classhtm($class1, 0, 0, 1) . '$|$'; } else { $methtm[] = onepagehtm('message', 'message', 1); } } if ($module == 8) { foreach ($met_classindex[8] as $key => $val) { if ($val['id'] == $class1) { $methtm[] = onepagehtm($val['foldername'], 'index', 1, $htmpack, $val['filename'], $class1); } } } if ($module == 9) { $methtm[] = onepagehtm('link', 'index', 1); $methtm[] = onepagehtm('link', 'addlink', 1); }