예제 #1
0
        $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.
예제 #2
0
파일: delete.php 프로젝트: nanfs/lt
    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);
}
예제 #3
0
파일: htm.php 프로젝트: nanfs/lt
    $zipfile = '../databack/htmpack/';
    $archive = new PclZip($sqlzip);
    $zip_list = $archive->create($zipfile, PCLZIP_OPT_REMOVE_PATH, $zipfile);
    if ($zip_list == 0) {
        die("Error : " . $archive->errorInfo(true));
    }
    deldir($zipfile);
    $fnames = 'metinfo_htmpack_' . date('YmdHis', time());
    header("Content-type:application/zip;");
    header("Content-Disposition:attachment;filename={$fnames}.zip;");
    readfile("{$sqlzip}");
    @file_unlink("{$sqlzip}");
} else {
    $methtmx = '';
    if ($index == "index") {
        $methtm[] = indexhtm(1);
    }
    if ($module == 1) {
        $folder = $met_class[$class1];
        $methtm[] = showhtm($class1, 1);
        if ($met_class[$class1]['releclass']) {
            foreach ($met_class3[$class1] as $key => $val1) {
                if ($val1[isshow]) {
                    $methtm[] = showhtm($val1[id], 1);
                }
            }
        } else {
            foreach ($met_class22[$class1] as $key => $val) {
                if ($val[isshow]) {
                    $methtm[] = showhtm($val[id], 1);
                }
예제 #4
0
            for ($i = 1; $i <= $total_list[$val[id]]; $i++) {
                $para1 = "para" . $val[id] . "_" . $i;
                $para2 = ${$para1};
                $para = $para2 != "" ? $para . $para2 . "-" : $para;
            }
            $para = substr($para, 0, -1);
        }
        $now_list = $db->get_one("select * from {$met_plist} where listid='{$id}' and  paraid='{$val['id']}'");
        if ($now_list) {
            $query = "update {$met_plist} SET\n\t\t\t\t\t\t  info     ='{$para}',\n\t\t\t\t\t\t  imgname  ='{$paraname}',\n\t\t\t\t\t\t  lang     ='{$lang}'\n\t\t\t\t\t\t  where listid='{$id}' and  paraid='{$val['id']}'";
        } else {
            $query = "INSERT INTO {$met_plist} SET\n\t\t\t\t\t\t  listid   ='{$id}',\n\t\t\t\t\t\t  paraid   ='{$val['id']}',\n\t\t\t\t\t\t  info     ='{$para}',\n\t\t\t\t\t\t  imgname  ='{$paraname}',\n\t\t\t\t\t\t  module   ='{$module}',\n\t\t\t\t\t\t  lang     ='{$lang}'";
        }
        $db->query($query);
        $paraname = "";
    }
    /*html*/
    $htmjs = contenthtm($class1, $id, 'showdownload', $filename, 0, '', $addtime) . '$|$';
    $htmjs .= indexhtm() . '$|$';
    $htmjs .= classhtm($class1, $class2, $class3);
    if ($filenameold != $filename and $metadmin[pagename]) {
        deletepage($met_class[$class1][foldername], $id, 'showdownload', $updatetimeold, $filenameold);
    }
    $classnow = $class3 ? $class3 : ($class2 ? $class2 : $class1);
    //if(($addtime != $updatetime && $met_class[$classnow]['list_order']<2) || $top_ok==1)$page=0;
    $turl = "../content/download/index.php?anyid={$anyid}&lang={$lang}&class1={$reclass1}&class2={$reclass2}&class3={$reclass3}&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.
예제 #5
0
        $infonameinfo1 = ${$infonameinfo};
        if ($infonameinfo1[0] != '该字段没有启用' or $infonameinfo1[2]) {
            $infoname[$i] = array($infonameinfo1[0], $infonameinfo1[1], '1');
        }
    }
    if ($imgurlname1[0] != '该字段没有启用' or $imgurlname1[2]) {
        $imgurlname[1] = array($imgurlname1[0], $imgurlname1[1], '1');
    }
    if ($imgurlname2[0] != '该字段没有启用' or $imgurlname2[2]) {
        $imgurlname[2] = array($imgurlname2[0], $imgurlname2[1], '1');
    }
}
if ($action == "modify") {
    $query = "update {$met_config} SET value= '{$met_index_content}' where name='met_index_content' and lang='{$lang}'";
    $db->query($query);
    $methtm = indexhtm();
    $query = "update {$met_otherinfo} SET ";
    if ($info1 != "" or $infoname[1][2]) {
        $query .= "info1       = '{$info1}',";
    }
    if ($info2 != "" or $infoname[2][2]) {
        $query .= "info2       = '{$info2}',";
    }
    if ($info3 != "" or $infoname[3][2]) {
        $query .= "info3       = '{$info3}',";
    }
    if ($info4 != "" or $infoname[4][2]) {
        $query .= "info4       = '{$info4}',";
    }
    if ($info5 != "" or $infoname[5][2]) {
        $query .= "info5       = '{$info5}',";