예제 #1
0
파일: head.php 프로젝트: nanfs/lt
$class2 = $index == 'index' ? 0 : ($class2 == '' ? 0 : $class2);
$class3 = $index == 'index' ? 0 : ($class3 == '' ? 0 : $class3);
$classnow = $classnow == '' ? $class3 ? $class3 : ($class2 ? $class2 : $class1) : $classnow;
$class_list[10001]['module'] = 10001;
$tempfie = ROOTPATH . "templates/" . $met_skin_user . "/database.inc.php";
$conffie = ROOTPATH . 'config/database.inc.php';
require_once file_exists($tempfie) ? $tempfie : $conffie;
$pagemark = $class_list[$classnow]['module'];
/*Standby field */
if (!isset($dataoptimize[$pagemark]['otherinfo'])) {
    $dataoptimize[$pagemark]['otherinfo'] = $dataoptimize[10000]['otherinfo'];
}
if ($dataoptimize[$pagemark]['otherinfo']) {
    $otherinfo = met_cache('otherinfo_' . $lang . '.inc.php');
    if (!$otherinfo) {
        $otherinfo = cache_otherinfo();
    }
    if ($index == "index") {
        $otherinfo['imgurl1'] = explode("../", $otherinfo['imgurl1']);
        $otherinfo['imgurl1'] = $otherinfo['imgurl1'][1];
        $otherinfo['imgurl2'] = explode("../", $otherinfo['imgurl2']);
        $otherinfo['imgurl2'] = $otherinfo['imgurl2'][1];
    }
}
/*Flash*/
$bannernid = $met_bannerpagetype ? 10001 : $classnow;
if ($met_bannerpagetype && $classnow != 10001) {
    $met_flasharray[$classnow] = $met_flasharray[10001];
}
if ($metview_flash == $met_member_force) {
    $met_flasharray[$classnow]['type'] = $metview_flash_type;
예제 #2
0
    if ($info10 != "" or $infoname[10][2]) {
        $query .= "info10      = '{$info10}',";
    }
    if ($imgurl1 != "" or $imgurlname[1][2]) {
        $query .= "imgurl1     = '{$imgurl1}',";
    }
    if ($imgurl2 != "" or $imgurlname[2][2]) {
        $query .= "imgurl2     = '{$imgurl2}',";
    }
    $query .= " lang='{$lang}' where id={$id}";
    if ($id == "") {
        $query = "INSERT INTO {$met_otherinfo} SET \n\t\t\t\t\t\t  info1       = '{$info1}',\n\t\t\t\t\t\t  info2       = '{$info2}',\n\t\t\t\t\t\t  info3       = '{$info3}',\n\t\t\t\t\t\t  info4       = '{$info4}',\n\t\t\t\t\t\t  info5       = '{$info5}',\n\t\t\t\t\t\t  info6       = '{$info6}',\n\t\t\t\t\t\t  info7       = '{$info7}',\n\t\t\t\t\t\t  info8       = '{$info8}',\n\t\t\t\t\t\t  info9       = '{$info9}',\n\t\t\t\t\t\t  info10      = '{$info10}',\n\t\t\t\t\t\t  imgurl1     = '{$imgurl1}',\n\t\t\t\t\t\t  imgurl2     = '{$imgurl2}',\n\t\t\t\t\t\t  lang='{$lang}'";
    }
    $db->query($query);
    require_once '../../include/cache.func.php';
    if (cache_otherinfo(0)) {
        $relang = $lang_jsok;
        $relang .= $met_webhtm == 0 ? '' : $lang_otherinfocache1;
        metsave('../content/other_info.php?lang=' . $lang . '&anyid=' . $anyid, $relang);
    } else {
        metsave('../content/other_info.php?lang=' . $lang . '&anyid=' . $anyid, $lang_otherinfocache2);
    }
} else {
    $otherinfo = $db->get_one("SELECT * FROM {$met_otherinfo} where lang='{$lang}'");
}
if (count($infoname) == 0 and count($imgurlname) == 0) {
    $lang_setotherItemSet = $lang_setotherTip2;
    $lang_setotherTip1 = "";
}
$rooturl = "..";
$css_url = "../templates/" . $met_skin . "/css";