Пример #1
0
Файл: about.php Проект: nanfs/lt
        if ($filenameok) {
            metsave('-1', $lang_modFilenameok, $depth);
        }
    }
    if (!$description) {
        $description = strip_tags($content);
        $description = str_replace("\n", '', $description);
        $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;
Пример #2
0
    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
        $db->query($query);
    }
    $htmjs = indexhtm() . '$|$';
    $htmjs .= classhtm($class1, $class2, $class3);
    $gent = '../../sitemap/index.php?lang=' . $lang . '&htmsitemap=' . $met_member_force;
    metsave($backurl, '', $depth, $htmjs, $gent);
} else {
    $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() . '$|$';
Пример #4
0
        $db->query($query);
    }
    $htmjs = indexhtm() . '$|$';
    $htmjs .= classhtm($class1, $class2, $class3);
    $gent = '../../sitemap/index.php?lang=' . $lang . '&htmsitemap=' . $met_member_force;
    metsave($backurl, '', $depth, $htmjs, $gent);
} else {
    $product_list = $db->get_one("SELECT * FROM {$met_product} WHERE id='{$id}'");
    if (!$product_list) {
        metsave('-1', $lang_dataerror, $depth);
    }
    if ($met_webhtm != 0 or $metadmin[pagename]) {
        if ($met_htmpagename == 1) {
            $updatetime = date('Ymd', strtotime($product_list[updatetime]));
        }
        deletepage($folder[foldername], $id, 'showproduct', $updatetime, $product_list[filename]);
    }
    if (!$met_recycle) {
        $query = "delete from {$met_plist} where listid='{$id}' and module='3'";
        $db->query($query);
    }
    $query = $met_recycle ? "update {$met_product} set recycle='3',updatetime='" . date('Y-m-d H:i:s') . "' where id='{$id}'" : "delete from {$met_product} where id='{$id}'";
    $db->query($query);
    if (!$met_recycle) {
        if ($product_list) {
            delimg($product_list, 1, 2);
        } else {
            delimg($id, 3, 2);
        }
    }
    $htmjs = indexhtm() . '$|$';
Пример #5
0
    $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.
Пример #6
0
        $db->query($query);
    }
    $htmjs = indexhtm() . '$|$';
    $htmjs .= classhtm($class1, $class2, $class3);
    $gent = '../../sitemap/index.php?lang=' . $lang . '&htmsitemap=' . $met_member_force;
    metsave($backurl, '', $depth, $htmjs, $gent);
} else {
    $img_list = $db->get_one("SELECT * FROM {$met_img} WHERE id='{$id}'");
    if (!$img_list) {
        metsave('-1', $lang_dataerror, $depth);
    }
    if ($met_webhtm != 0 or $metadmin[pagename]) {
        if ($met_htmpagename == 1) {
            $updatetime = date('Ymd', strtotime($img_list[updatetime]));
        }
        deletepage($folder[foldername], $id, 'showimg', $updatetime, $img_list[filename]);
    }
    if (!$met_recycle) {
        $query = "delete from {$met_plist} where listid='{$id}' and module='5'";
        $db->query($query);
    }
    $query = $met_recycle ? "update {$met_img} set recycle='5',updatetime='" . date('Y-m-d H:i:s') . "' where id='{$id}'" : "delete from {$met_img} where id='{$id}'";
    $db->query($query);
    if (!$met_recycle) {
        if ($img_list) {
            delimg($img_list, 1, 2);
        } else {
            delimg($id, 3, 2);
        }
    }
    $htmjs = indexhtm() . '$|$';