Esempio n. 1
0
        $_listdb[intval($value[orderlist])] = $value;
    }
    krsort($_listdb);
    unset($listdb);
    foreach ($_listdb as $key => $rs) {
        $listdb[$rs[field_name]] = $rs;
    }
    $array[field_db] = $listdb + $array[field_db];
    $config = addslashes(serialize($array));
    $db->query("UPDATE {$pre}article_module SET config='{$config}' WHERE id='{$id}' ");
    //生成缓存
    article_module_cache();
    jump("修改成功<br><a href='?lfj={$lfj}&job=tpl&id={$id}' style='color:red;font-size:25px'>务必注意!!你必须点击生成模板,模块才能生效</a> ", "?lfj={$lfj}&job=editfield&id={$id}&field_name={$postdb['field_name']}", 10);
} elseif ($job == "addfield" && $Apower[article_module]) {
    $rsdb = $db->get_one("SELECT * FROM {$pre}article_module WHERE id='{$id}' ");
    $group_view = group_box("postdb[allowview]", explode(",", $rsdb[allowview]));
    $_rs[field_type] = 'mediumtext';
    $field_type[$_rs[field_type]] = " selected ";
    $_rs[field_name] = "my_" . rand(1, 999);
    $_rs[title] = "我的字段{$_rs['field_name']}";
    $mustfill[0] = $search[0] = ' checked ';
    $_rs[form_type] = 'text';
    require "head.php";
    require "template/article_module/editfield.htm";
    require "foot.php";
} elseif ($action == "addfield" && $Apower[article_module]) {
    $postdb[allowview] = implode(",", $postdb[allowview]);
    if (!ereg("^([a-z])([a-z0-9_]{2,})\$", $postdb[field_name])) {
        showmsg("字段ID不符合规则");
    }
    if (table_field("{$pre}article", $postdb[field_name]) || table_field("{$pre}reply", $postdb[field_name]) || table_field("{$pre}article_content_{$id}", $postdb[field_name])) {
Esempio n. 2
0
    mod_sort_sons("{$pre}area", 0);
    //更新sons
    /*更新导航缓存*/
    cache_area();
    refreshto("?lfj={$lfj}&job=editsort&fid={$fid}", "创建成功");
} elseif ($job == "editsort") {
    $postdb[fid] && ($fid = $postdb[fid]);
    $rsdb = $db->get_one("SELECT * FROM {$pre}area WHERE fid='{$fid}'");
    $rsdb[config] = unserialize($rsdb[config]);
    $sort_fid = $Guidedb->Select("{$pre}area", "postdb[fid]", $fid, "?lfj={$lfj}&job={$job}");
    $sort_fup = $Guidedb->Select("{$pre}area", "postdb[fup]", $rsdb[fup]);
    $style_select = select_style('postdb[style]', $rsdb[style]);
    $group_post = group_box("postdb[allowpost]", explode(",", $rsdb[allowpost]));
    $group_viewtitle = group_box("postdb[allowviewtitle]", explode(",", $rsdb[allowviewtitle]));
    $group_viewcontent = group_box("postdb[allowviewcontent]", explode(",", $rsdb[allowviewcontent]));
    $group_download = group_box("postdb[allowdownload]", explode(",", $rsdb[allowdownload]));
    $typedb[$rsdb[type]] = " checked ";
    $forbidshow[intval($rsdb[forbidshow])] = " checked ";
    $allowcomment[intval($rsdb[allowcomment])] = " checked ";
    $tpl = unserialize($rsdb[template]);
    $listorder[$rsdb[listorder]] = " selected ";
    $sonListorder[$rsdb[config][sonListorder]] = " selected ";
    hack_admin_tpl('editsort');
} elseif ($action == "editsort") {
    //检查父栏目是否有问题
    check_fup("{$pre}area", $postdb[fid], $postdb[fup]);
    $postdb[allowpost] = @implode(",", $postdb[allowpost]);
    $postdb[allowviewtitle] = @implode(",", $postdb[allowviewtitle]);
    $postdb[allowviewcontent] = @implode(",", $postdb[allowviewcontent]);
    $postdb[allowdownload] = @implode(",", $postdb[allowdownload]);
    $postdb[template] = @serialize($postdb[tpl]);
Esempio n. 3
0
<?php

!function_exists('html') && exit('ERR');
if ($job == "send" && $Apower[mail_send]) {
    $group_send = group_box("Group", '');
    hack_admin_tpl('send');
} elseif ($job == "set" && $Apower[mail_send]) {
    $sms_type[$webdb[sms_type]] = ' checked ';
    hack_admin_tpl('set');
} elseif ($job == "test" && $Apower[mail_send]) {
    hack_admin_tpl('test');
} elseif ($action == "set" && $Apower[mail_send]) {
    write_config_cache($webdbs);
    jump("设置成功", $FROMURL);
} elseif ($action == "send" && $Apower[mail_send]) {
    if (!$IS_BIZPhp168) {
        showerr("免费版无此功能");
    }
    if (!$Group) {
        showerr("请选择一个用户组");
    }
    if ($page < 1) {
        $page = 1;
        if (!$Group) {
            showmsg("你必须选择一个用户组");
        }
        $Group = implode(",", $Group);
        if ($Num < 1) {
            $Num = 1;
        }
        if (!$Title) {
Esempio n. 4
0
if ($job) {
    $query = $db->query(" SELECT * FROM {$_pre}config ");
    while ($rs = $db->fetch_array($query)) {
        $webdb[$rs[c_key]] = $rs[c_value];
    }
}
if ($job == "label") {
    echo "<META HTTP-EQUIV=REFRESH CONTENT='0;URL=../{$dirname}/index.php?jobs=show'>";
    exit;
} elseif ($job == "config") {
    $showNoPassComment[intval($webdb[showNoPassComment])] = ' checked ';
    $webdb[Info_webOpen] ? $Info_webOpen1 = 'checked' : ($Info_webOpen0 = 'checked');
    $Info_webOpen[intval($webdb[Info_webOpen])] = ' checked ';
    $yzImgGuestBook[intval($webdb[yzImgGuestBook])] = ' checked ';
    $viewNoPassGuestBook[intval($webdb[viewNoPassGuestBook])] = ' checked ';
    $ifOpenGuestBook[intval($webdb[ifOpenGuestBook])] = ' checked ';
    $groupPassPassGuestBook = group_box("webdbs[groupPassPassGuestBook]", explode(",", $webdb[groupPassPassGuestBook]));
    $module_close[intval($webdb[module_close])] = " checked ";
    get_admin_html('config');
} elseif ($action == "config") {
    if (isset($webdbs[Info_webadmin])) {
        $webdbs[Info_webadmin] = filtrate($webdbs[Info_webadmin]);
        $db->query("UPDATE {$pre}module SET adminmember='{$webdbs['Info_webadmin']}' WHERE id='{$webdb['module_id']}'");
    }
    if (isset($webdbs[Info_weburl])) {
        $webdbs[Info_weburl] = filtrate($webdbs[Info_weburl]);
        $db->query("UPDATE {$pre}module SET domain='{$webdbs['Info_weburl']}' WHERE id='{$webdb['module_id']}'");
    }
    module_write_config_cache($webdbs);
    refreshto($FROMURL, "修改成功");
}
Esempio n. 5
0
"置顶信息设置"=>"$admin_path&job=top"
);
*/
if ($job) {
    $query = $db->query("SELECT * FROM {$_pre}config");
    while ($rs = $db->fetch_array($query)) {
        $webdb[$rs[c_key]] = $rs[c_value];
    }
}
if ($job == "label" && ck_power('center_label')) {
    echo "<META HTTP-EQUIV=REFRESH CONTENT='0;URL={$Murl}/index.php?jobs=show'>";
    exit;
} elseif ($job == "config" && ck_power('center_config')) {
    $showNoPassComment[intval($webdb[showNoPassComment])] = ' checked ';
    $CommentPass_group = group_box("webdbs[CommentPass_group]", explode(",", $webdb[CommentPass_group]));
    $GroupPassYz = group_box("webdbs[GroupPassYz]", explode(",", $webdb[GroupPassYz]));
    $webdb[Info_webOpen] ? $Info_webOpen1 = 'checked' : ($Info_webOpen0 = 'checked');
    $Info_DelEndtime[intval($webdb[Info_DelEndtime])] = ' checked ';
    $Info_allowGuesSearch[intval($webdb[Info_allowGuesSearch])] = ' checked ';
    $Info_Searchkeyword[intval($webdb[Info_Searchkeyword])] = ' checked ';
    $Info_ShowNoYz[intval($webdb[Info_ShowNoYz])] = ' checked ';
    $showNoPassComment[intval($webdb[showNoPassComment])] = ' checked ';
    $Info_webOpen[intval($webdb[Info_webOpen])] = ' checked ';
    $order_send_msg[intval($webdb[order_send_msg])] = ' checked ';
    $order_send_mail[intval($webdb[order_send_mail])] = ' checked ';
    $Info_index_cache[intval($webdb[Info_index_cache])] = ' checked ';
    $module_close[intval($webdb[module_close])] = " checked ";
    $Info_HYpost[intval($webdb[Info_HYpost])] = " checked ";
    get_admin_html('config');
} elseif ($action == "config" && ck_power('center_config')) {
    if ($GroupPassYz) {
Esempio n. 6
0
    } elseif ($postdb[groupid] == '3' && $userdb[groupid] != 3 && !$founder) {
        showmsg("你无权限选择超级管理员用户组,请更换其他的用户组");
    } elseif ($postdb[groupid] == '4' && $userdb[groupid] != 3 && $userdb[groupid] != 4 && !$founder) {
        showmsg("你无权限选择此用户组,请更换其他的用户组");
    }
    $array = array('password' => $postdb[passwd], 'username' => $postdb[username], 'groupid' => $postdb[groupid], 'email' => $postdb[email]);
    $uid = $userDB->register_user($array);
    if (!is_numeric($uid)) {
        showmsg($uid);
    }
    jump("创建成功", "index.php?lfj=member&job=list", 3);
} elseif ($job == "editmember" && $Apower[member_list]) {
    $rsdb = $userDB->get_allInfo($uid);
    $rsdb[money] = get_money($rsdb[uid]);
    $select_group = select_group("postdb[groupid]", $rsdb[groupid]);
    $select_group2 = group_box("postdb[groups]", explode(",", $rsdb[groups]), 1);
    $sexdb[intval($rsdb[sex])] = ' checked ';
    $yzdb[intval($rsdb[yz])] = ' checked ';
    $ConfigDB = unserialize($rsdb[config]);
    $rsdb[totalspace] = floor($rsdb[totalspace] / (1024 * 1024));
    $ConfigDB[begintime] && ($ConfigDB[begintime] = date("Y-m-d H:i:s", $ConfigDB[begintime]));
    $ConfigDB[endtime] && ($ConfigDB[endtime] = date("Y-m-d H:i:s", $ConfigDB[endtime]));
    $email_yz[$rsdb[email_yz]] = ' checked ';
    $mob_yz[$rsdb[mob_yz]] = ' checked ';
    $idcard_yz[$rsdb[idcard_yz]] = ' checked ';
    require dirname(__FILE__) . "/" . "head.php";
    require dirname(__FILE__) . "/" . "template/member/menu.htm";
    require dirname(__FILE__) . "/" . "template/member/editmember.htm";
    require dirname(__FILE__) . "/" . "foot.php";
} elseif ($action == "editmember" && $Apower[member_list]) {
    $rsdb = $userDB->get_info($uid);
Esempio n. 7
0
    refreshto("{$admin_path}&job=listsort", "创建成功");
} elseif ($job == "editsort") {
    $rsdb = $db->get_one("SELECT S.*,M.name AS m_name FROM {$_pre}sort S LEFT JOIN {$_pre}module M ON S.mid=M.id WHERE S.fid='{$fid}'");
    if ($rsdb[type]) {
        $smallsort = 'none;';
    } else {
        $bigsort = 'none;';
    }
    $_module = "<select name='postdb[mid]'><option value=''>请选择所属模型</option>";
    $query = $db->query("SELECT * FROM {$_pre}module ORDER BY list DESC");
    while ($rs = $db->fetch_array($query)) {
        $ckk = $rs[id] == $rsdb[mid] ? ' selected ' : '';
        $_module .= "<option value='{$rs['id']}' {$ckk}>{$rs['name']}</option>";
    }
    $_module .= "</select>";
    $group_post = group_box("postdb[allowpost]", explode(",", $rsdb[allowpost]));
    //$group_viewtitle=group_box("postdb[allowviewtitle]",explode(",",$rsdb[allowviewtitle]));
    //$group_viewcontent=group_box("postdb[allowviewcontent]",explode(",",$rsdb[allowviewcontent]));
    //$group_download=group_box("postdb[allowdownload]",explode(",",$rsdb[allowdownload]));
    $typedb[$rsdb[type]] = " checked ";
    $index_show[$rsdb[index_show]] = " checked ";
    $forbidshow[intval($rsdb[forbidshow])] = " checked ";
    $allowcomment[intval($rsdb[allowcomment])] = " checked ";
    $ifcolor[intval($rsdb[ifcolor])] = " checked ";
    $listorder[$rsdb[listorder]] = " selected ";
    $tpl = unserialize($rsdb[template]);
    //if($db->get_one(" SELECT * FROM {$_pre}content WHERE fid='$fid' limit 1 ")){
    //	$moresons="none;";
    //}
    //$photo_fid=$Guidedb->Select("{$pre}sort","postdb[photo_fid]",$rsdb[photo_fid]);
    //$article_fid=$Guidedb->Select("{$pre}sort","postdb[article_fid]",$rsdb[article_fid]);
Esempio n. 8
0
    $emailOnly[intval($webdb[emailOnly])] = ' checked ';
    require dirname(__FILE__) . "/" . "head.php";
    require dirname(__FILE__) . "/" . "template/center/menu.htm";
    require dirname(__FILE__) . "/" . "template/center/user_reg.htm";
    require dirname(__FILE__) . "/" . "foot.php";
} elseif ($job == "ftp" && $Apower[center_config]) {
    $UseFtp[intval($webdb[UseFtp])] = " checked ";
    require dirname(__FILE__) . "/" . "head.php";
    require dirname(__FILE__) . "/" . "template/center/menu.htm";
    require dirname(__FILE__) . "/" . "template/center/ftp.htm";
    require dirname(__FILE__) . "/" . "foot.php";
} elseif ($job == "contribute" && $Apower[center_config]) {
    $webdb[ifContribute] === '0' || ($webdb[ifContribute] = 1);
    $ifContribute[$webdb[ifContribute]] = " checked ";
    $webdb[groupPassContribute] = "{$webdb['groupPassContribute']},3";
    $groupPassContribute = group_box("webdbs[groupPassContribute]", explode(",", $webdb[groupPassContribute]));
    require dirname(__FILE__) . "/" . "head.php";
    require dirname(__FILE__) . "/" . "template/center/menu.htm";
    require dirname(__FILE__) . "/" . "template/center/contribute.htm";
    require dirname(__FILE__) . "/" . "foot.php";
} elseif ($job == "money" && $Apower[center_config]) {
    require dirname(__FILE__) . "/" . "head.php";
    require dirname(__FILE__) . "/" . "template/center/menu.htm";
    require dirname(__FILE__) . "/" . "template/center/money.htm";
    require dirname(__FILE__) . "/" . "foot.php";
} elseif ($action == "config" && ($Apower[center_config] || $Apower[center_cache] || $Apower[user_reg])) {
    if ($webdb[NewsMakeHtml] == 1 && $webdbs[RewriteUrl] == 1) {
        showmsg('你已经选择了真静态,就不能选择伪静态,要使用伪静态,请先取消真静态!!');
    }
    if ($ifmakeindexhtml == 'N') {
        $webdbs[MakeIndexHtmlTime] = 0;
Esempio n. 9
0
    //更新class
    mod_sort_sons("{$_pre}sort", 0);
    //更新sons
    fid_wn_cache();
    refreshto("{$admin_path}&job=editsort&fid={$fid}", "创建成功");
} elseif ($job == "editsort") {
    $postdb[fid] && ($fid = $postdb[fid]);
    $rsdb = $db->get_one("SELECT S.* FROM {$_pre}sort S WHERE S.fid='{$fid}'");
    if ($rsdb[type]) {
        $smallsort = 'none;';
    } else {
        $bigsort = 'none;';
    }
    $group_post = group_box("postdb[allowpost]", explode(",", $rsdb[allowpost]));
    //$group_viewtitle=group_box("postdb[allowviewtitle]",explode(",",$rsdb[allowviewtitle]));
    $group_viewcontent = group_box("postdb[allowviewcontent]", explode(",", $rsdb[allowviewcontent]));
    //$group_download=group_box("postdb[allowdownload]",explode(",",$rsdb[allowdownload]));
    $typedb[$rsdb[type]] = " checked ";
    $index_show[$rsdb[index_show]] = " checked ";
    $forbidshow[intval($rsdb[forbidshow])] = " checked ";
    $allowcomment[intval($rsdb[allowcomment])] = " checked ";
    $listorder[$rsdb[listorder]] = " selected ";
    $tpl = unserialize($rsdb[template]);
    if ($db->get_one(" SELECT * FROM {$_pre}content WHERE fid='{$fid}' limit 1 ")) {
        $moresons = "none;";
    }
    //$photo_fid=$Guidedb->Select("{$pre}sort","postdb[photo_fid]",$rsdb[photo_fid]);
    //$article_fid=$Guidedb->Select("{$pre}sort","postdb[article_fid]",$rsdb[article_fid]);
    $select_fid = select_wn_bigsort("postdb[fup]", $rsdb[fup]);
    $array = unserialize($rsdb[config]);
    $sonListorder[$array[sonListorder]] = " selected ";