function EditAdminStyle($add, $userid, $username)
{
    global $empire, $dbtbpre;
    $styleid = (int) $add['styleid'];
    $path = RepPathStr($add['path']);
    $path = (int) $path;
    if (!$styleid || empty($path) || empty($add['stylename'])) {
        printerror("EmptyAdminStyle", "history.go(-1)");
    }
    //验证权限
    CheckLevel($userid, $username, $classid, "adminstyle");
    //目录是否存在
    if (!file_exists("../adminstyle/" . $path)) {
        printerror("EmptyAdminStylePath", "history.go(-1)");
    }
    $sql = $empire->query("update {$dbtbpre}enewsadminstyle set stylename='{$add['stylename']}',path={$path} where styleid={$styleid}");
    if ($sql) {
        UpAdminstyle();
        //操作日志
        insert_dolog("styleid={$styleid}&stylename={$add['stylename']}");
        printerror("EditAdminStyleSuccess", "AdminStyle.php");
    } else {
        printerror("DbError", "history.go(-1)");
    }
}
Example #2
0
function EditSpaceStyle($add,$userid,$username){
	global $empire,$dbtbpre;
	$styleid=intval($add[styleid]);
	if(empty($add[stylename])||empty($add[stylepath])||!$styleid)
	{
		printerror('EmptySpaceStyle','history.go(-1)');
	}
	$add[stylepath]=RepPathStr($add[stylepath]);
	$add['stylepath']=RepPostStr($add['stylepath'],1);
	//目录是否存在
	if(!file_exists("../../space/template/".$add[stylepath]))
	{
		printerror("EmptySpaceStylePath","history.go(-1)");
	}
	$mg=ReturnSpaceStyleMemberGroup($add['membergroup']);
	$sql=$empire->query("update {$dbtbpre}enewsspacestyle set stylename='$add[stylename]',stylepic='$add[stylepic]',stylesay='$add[stylesay]',stylepath='$add[stylepath]',membergroup='$mg' where styleid='$styleid'");
	if($sql)
	{
		insert_dolog("styleid=$styleid&stylename=$add[stylename]");//操作日志
		printerror("EditSpaceStyleSuccess","ListSpaceStyle.php".hReturnEcmsHashStrHref2(1));
	}
	else
	{
		printerror("DbError","history.go(-1)");
	}
}
Example #3
0
function Ebak_SetDb($add)
{
    global $phome_db_password, $set_password, $phome_db_dbname;
    if (empty($add['outtime'])) {
        $add['outtime'] = 60;
    }
    //修改密码
    if (empty($add['dbpassword'])) {
        $add['dbpassword'] = $phome_db_password;
    } elseif ($add['dbpassword'] == 'null') {
        $add['dbpassword'] = '';
    }
    $dblocalhost = $add['dbhost'];
    //端口
    if ($add['dbport']) {
        $dblocalhost .= ":" . $add['dbport'];
    }
    $link = @mysql_connect($dblocalhost, $add['dbusername'], $add['dbpassword']);
    if (empty($link)) {
        printerror("FailDbuser", "history.go(-1)");
    }
    //默认数据库
    if ($add['dbname']) {
        if ($add['dbname'] != $phome_db_dbname) {
            $usedb = @mysql_query("use `" . $add['dbname'] . "`");
            if (!$usedb) {
                printerror("NotDb", "history.go(-1)");
            }
        }
    }
    //修改密码
    if ($add['adminpassword']) {
        $add['adminpassword'] = md5($add['adminpassword']);
        $a = "\$set_password=\"" . addslashes($add['adminpassword']) . "\";\r\n";
    } else {
        $add['adminpassword'] = $set_password;
    }
    //目录
    if (empty($add['sbakpath'])) {
        $add['sbakpath'] = "bdata";
    }
    if (!file_exists(RepPathStr($add['sbakpath']))) {
        printerror("NotBakpath", "history.go(-1)");
    }
    if (empty($add['sbakzippath'])) {
        $add['sbakzippath'] = "zip";
    }
    if (!file_exists(RepPathStr($add['sbakzippath']))) {
        printerror("NotZippath", "history.go(-1)");
    }
    if (empty($add['sebaklang'])) {
        $add['sebaklang'] = 'gb,gbk';
    }
    $langr = explode(',', $add['sebaklang']);
    $string = "<?php\r\n//Database\r\n\$phome_db_ver=\"" . addslashes($add['mysqlver']) . "\";\r\n\$phome_db_server=\"" . addslashes($add['dbhost']) . "\";\r\n\$phome_db_port=\"" . addslashes($add['dbport']) . "\";\r\n\$phome_db_username=\"" . addslashes($add['dbusername']) . "\";\r\n\$phome_db_password=\"" . addslashes($add['dbpassword']) . "\";\r\n\$phome_db_dbname=\"" . addslashes($add['dbname']) . "\";\r\n\$baktbpre=\"" . addslashes($add['sbaktbpre']) . "\";\r\n\$phome_db_char=\"" . addslashes($add['dbchar']) . "\";\r\n\r\n//USER\r\n\$set_username=\"" . addslashes($add['adminusername']) . "\";\r\n\$set_password=\"" . addslashes($add['adminpassword']) . "\";\r\n\$set_outtime=\"" . addslashes($add['outtime']) . "\";\r\n\$set_loginkey=\"" . addslashes($add['loginkey']) . "\";\r\n\r\n//COOKIE\r\n\$phome_cookiedomain=\"" . addslashes($add['ckdomain']) . "\";\r\n\$phome_cookiepath=\"" . addslashes($add['ckpath']) . "\";\r\n\$phome_cookievarpre=\"" . addslashes($add['ckvarpre']) . "\";\r\n\r\n//LANGUAGE\r\n\$langr=@ReturnUseEbakLang();\r\n\$ebaklang=\$langr['lang'];\r\n\$ebaklangchar=\$langr['langchar'];\r\n\r\n//BAK\r\n\$bakpath=\"" . addslashes($add['sbakpath']) . "\";\r\n\$bakzippath=\"" . addslashes($add['sbakzippath']) . "\";\r\n\$filechmod=\"" . addslashes($add['sfilechmod']) . "\";\r\n\$phpsafemod=\"" . addslashes($add['sphpsafemod']) . "\";\r\n\$php_outtime=\"" . addslashes($add['sphp_outtime']) . "\";\r\n\$limittype=\"" . addslashes($add['slimittype']) . "\";\r\n\$canlistdb=\"" . addslashes($add['scanlistdb']) . "\";\r\n\r\n//------------ SYSTEM ------------\r\n@HeaderIeChar();\r\n?>";
    $filename = "class/config.php";
    WriteFiletext_n($filename, $string);
    printerror("SetDbSuccess", "SetDb.php");
}
Example #4
0
function EditWapStyle($add, $userid, $username)
{
    global $empire, $dbtbpre;
    $styleid = (int) $add['styleid'];
    $path = RepPathStr($add['path']);
    $path = (int) $path;
    if (!$styleid || empty($path) || empty($add['stylename'])) {
        printerror("EmptyWapStyle", "history.go(-1)");
    }
    //目录是否存在
    if (!file_exists("../../wap/template/" . $path)) {
        printerror("EmptyWapStylePath", "history.go(-1)");
    }
    $sql = $empire->query("update {$dbtbpre}enewswapstyle set stylename='{$add['stylename']}',path={$path} where styleid={$styleid}");
    if ($sql) {
        //操作日志
        insert_dolog("styleid={$styleid}&stylename={$add['stylename']}");
        printerror("EditWapStyleSuccess", "WapStyle.php" . hReturnEcmsHashStrHref2(1));
    } else {
        printerror("DbError", "history.go(-1)");
    }
}
Example #5
0
function SetEnews($add, $userid, $username)
{
    global $empire, $dbtbpre;
    //操作权限
    CheckLevel($userid, $username, $classid, "public");
    $add[newsurl] = ehtmlspecialchars($add[newsurl], ENT_QUOTES);
    if (empty($add[indextype])) {
        $add[indextype] = ".html";
    }
    if (empty($add[searchtype])) {
        $add[searchtype] = ".html";
    }
    //备份目录
    if (empty($add[bakdbpath])) {
        $add[bakdbpath] = "bdata";
    }
    if (!file_exists("ebak/" . RepPathStr($add[bakdbpath]))) {
        printerror("NotBakDbPath", "");
    }
    if (empty($add[bakdbzip])) {
        $add[bakdbzip] = "zip";
    }
    if (!file_exists("ebak/" . RepPathStr($add[bakdbzip]))) {
        printerror("NotbakZipPath", "");
    }
    //函数是否存在
    if (!function_exists($add['listpagefun']) || !function_exists($add['textpagefun']) || !function_exists($add['listpagelistfun'])) {
        printerror("NotPageFun", "history.go(-1)");
    }
    //adfile
    $add['adfile'] = RepFilenameQz($add['adfile']);
    //修改ftp密码
    if ($add[ftppassword]) {
        $a = "ftppassword='******'ftppassword']}',";
    }
    //变量处理
    $add[filesize] = (int) $add[filesize];
    $add[hotnum] = (int) $add[hotnum];
    $add[newnum] = (int) $add[newnum];
    $add[relistnum] = (int) $add[relistnum];
    $add[renewsnum] = (int) $add[renewsnum];
    $add[min_keyboard] = (int) $add[min_keyboard];
    $add[max_keyboard] = (int) $add[max_keyboard];
    $add[search_num] = (int) $add[search_num];
    $add[search_pagenum] = (int) $add[search_pagenum];
    $add[newslink] = (int) $add[newslink];
    $add[checked] = (int) $add[checked];
    $add[searchtime] = (int) $add[searchtime];
    $add[loginnum] = (int) $add[loginnum];
    $add[logintime] = (int) $add[logintime];
    $add[addnews_ok] = (int) $add[addnews_ok];
    $add[register_ok] = (int) $add[register_ok];
    $add[goodlencord] = (int) $add[goodlencord];
    $add[goodnum] = (int) $add[goodnum];
    $add[exittime] = (int) $add[exittime];
    $add[smalltextlen] = (int) $add[smalltextlen];
    $add[defaultgroupid] = (int) $add[defaultgroupid];
    $add[phpmode] = (int) $add[phpmode];
    $add[install] = (int) $add[install];
    $add[hotplnum] = (int) $add[hotplnum];
    $add[dorepnum] = (int) $add[dorepnum];
    $add[loadtempnum] = (int) $add[loadtempnum];
    $add[firstnum] = (int) $add[firstnum];
    $add[min_userlen] = (int) $add[min_userlen];
    $add[max_userlen] = (int) $add[max_userlen];
    $add[min_passlen] = (int) $add[min_passlen];
    $add[max_passlen] = (int) $add[max_passlen];
    $add[filechmod] = (int) $add[filechmod];
    $add[sametitle] = (int) $add[sametitle];
    $add[addrehtml] = (int) $add[addrehtml];
    $add[loginkey_ok] = (int) $add[loginkey_ok];
    $add[limittype] = (int) $add[limittype];
    $add[redodown] = (int) $add[redodown];
    $add[candocode] = (int) $add[candocode];
    $add[opennotcj] = (int) $add[opennotcj];
    $add[reuserpagenum] = (int) $add[reuserpagenum];
    $add[revotejsnum] = (int) $add[revotejsnum];
    $add[readjsnum] = (int) $add[readjsnum];
    $add[qaddtran] = (int) $add[qaddtran];
    $add[qaddtransize] = (int) $add[qaddtransize];
    $add[ebakthisdb] = (int) $add[ebakthisdb];
    $add[delnewsnum] = (int) $add[delnewsnum];
    $add[markpos] = (int) $add[markpos];
    $add[adminloginkey] = (int) $add[adminloginkey];
    $add[php_outtime] = (int) $add[php_outtime];
    $add[addreinfo] = (int) $add[addreinfo];
    $add[rssnum] = (int) $add[rssnum];
    $add[rsssub] = (int) $add[rsssub];
    $add[dorepdlevelnum] = (int) $add[dorepdlevelnum];
    $add[listpagelistnum] = (int) $add[listpagelistnum];
    $add[infolinknum] = (int) $add[infolinknum];
    $add[searchgroupid] = (int) $add[searchgroupid];
    $add[opencopytext] = (int) $add[opencopytext];
    $add[reuserjsnum] = (int) $add[reuserjsnum];
    $add[reuserlistnum] = (int) $add[reuserlistnum];
    $add[opentitleurl] = (int) $add[opentitleurl];
    $add['qaddtranfile'] = (int) $add['qaddtranfile'];
    $add['qaddtranfilesize'] = (int) $add['qaddtranfilesize'];
    $add['sendmailtype'] = (int) $add['sendmailtype'];
    $add['loginemail'] = (int) $add['loginemail'];
    $add['feedbacktfile'] = (int) $add['feedbacktfile'];
    $add['feedbackfilesize'] = (int) $add['feedbackfilesize'];
    $add['searchtempvar'] = (int) $add['searchtempvar'];
    $add['showinfolevel'] = (int) $add['showinfolevel'];
    $add['spicwidth'] = (int) $add['spicwidth'];
    $add['spicheight'] = (int) $add['spicheight'];
    $add['spickill'] = (int) $add['spickill'];
    $add['jpgquality'] = (int) $add['jpgquality'];
    $add['markpct'] = (int) $add['markpct'];
    $add['redoview'] = (int) $add['redoview'];
    $add['reggetfen'] = (int) $add['reggetfen'];
    $add['regbooktime'] = (int) $add['regbooktime'];
    $add['revotetime'] = (int) $add['revotetime'];
    $add['fpath'] = (int) $add['fpath'];
    $add['openmembertranimg'] = (int) $add['openmembertranimg'];
    $add['memberimgsize'] = (int) $add['memberimgsize'];
    $add['openmembertranfile'] = (int) $add['openmembertranfile'];
    $add['memberfilesize'] = (int) $add['memberfilesize'];
    $add['openspace'] = (int) $add['openspace'];
    $add['realltime'] = (int) $add['realltime'];
    $add['textpagelistnum'] = (int) $add['textpagelistnum'];
    $add['memberlistlevel'] = (int) $add['memberlistlevel'];
    $add['ebakcanlistdb'] = (int) $add['ebakcanlistdb'];
    $add['keytog'] = (int) $add['keytog'];
    $add['keytime'] = (int) $add['keytime'];
    $add['regkey_ok'] = (int) $add['regkey_ok'];
    $add['opengetdown'] = (int) $add['opengetdown'];
    $add['gbkey_ok'] = (int) $add['gbkey_ok'];
    $add['fbkey_ok'] = (int) $add['fbkey_ok'];
    $add['newaddinfotime'] = (int) $add['newaddinfotime'];
    $add['classnavline'] = (int) $add['classnavline'];
    $add['docnewsnum'] = (int) $add['docnewsnum'];
    $add['dtcanbq'] = (int) $add['dtcanbq'];
    $add['dtcachetime'] = (int) $add['dtcachetime'];
    $add['regretime'] = (int) $add['regretime'];
    $add['regemailonly'] = (int) $add['regemailonly'];
    $add['repkeynum'] = (int) $add['repkeynum'];
    $add['getpasstime'] = (int) $add['getpasstime'];
    $add['acttime'] = (int) $add['acttime'];
    $add['regacttype'] = (int) $add['regacttype'];
    $add['opengetpass'] = (int) $add['opengetpass'];
    $add['hlistinfonum'] = (int) $add['hlistinfonum'];
    if (empty($add['hlistinfonum'])) {
        $add['hlistinfonum'] = 30;
    }
    $add['qlistinfonum'] = (int) $add['qlistinfonum'];
    if (empty($add['qlistinfonum'])) {
        $add['qlistinfonum'] = 30;
    }
    $add['dtncanbq'] = (int) $add['dtncanbq'];
    $add['dtncachetime'] = (int) $add['dtncachetime'];
    $add['readdinfotime'] = (int) $add['readdinfotime'];
    $add['qeditinfotime'] = (int) $add['qeditinfotime'];
    $add['ftpmode'] = (int) $add['ftpmode'];
    $add['ftpssl'] = (int) $add['ftpssl'];
    $add['ftppasv'] = (int) $add['ftppasv'];
    $add['ftpouttime'] = (int) $add['ftpouttime'];
    $add['onclicktype'] = (int) $add['onclicktype'];
    $add['onclickfilesize'] = (int) $add['onclickfilesize'];
    $add['onclickfiletime'] = (int) $add['onclickfiletime'];
    $add['closeqdt'] = (int) $add['closeqdt'];
    $add['settop'] = (int) $add['settop'];
    $add['qlistinfomod'] = (int) $add['qlistinfomod'];
    $add['gb_num'] = (int) $add['gb_num'];
    $add['member_num'] = (int) $add['member_num'];
    $add['space_num'] = (int) $add['space_num'];
    $add['infolday'] = (int) $add['infolday'];
    $add['filelday'] = (int) $add['filelday'];
    $add['baktempnum'] = (int) $add['baktempnum'];
    $add['dorepkey'] = (int) $add['dorepkey'];
    $add['dorepword'] = (int) $add['dorepword'];
    $add['indexpagedt'] = (int) $add['indexpagedt'];
    $add['closeqdtmsg'] = AddAddsData($add['closeqdtmsg']);
    $add['openfileserver'] = (int) $add['openfileserver'];
    $add['fieldandtop'] = (int) $add['fieldandtop'];
    $add['fieldandclosetb'] = $add['fieldandclosetb'] ? ',' . $add['fieldandclosetb'] . ',' : '';
    $add['firsttitlename'] = ehtmlspecialchars(str_replace("\r\n", "|", $add['firsttitlename']));
    $add['isgoodname'] = ehtmlspecialchars(str_replace("\r\n", "|", $add['isgoodname']));
    $add['closelisttemp'] = ehtmlspecialchars($add['closelisttemp']);
    $add['ipaddinfonum'] = (int) $add['ipaddinfonum'];
    $add['ipaddinfotime'] = (int) $add['ipaddinfotime'];
    $add['indexaddpage'] = (int) $add['indexaddpage'];
    $add['modmemberedittran'] = (int) $add['modmemberedittran'];
    $add['modinfoedittran'] = (int) $add['modinfoedittran'];
    //提交IP
    $doiptypes = '';
    $doiptype = $add['doiptype'];
    $doiptypecount = count($doiptype);
    if ($doiptypecount) {
        $doiptypes = ',';
        for ($di = 0; $di < $doiptypecount; $di++) {
            $doiptypes .= $doiptype[$di] . ',';
        }
    }
    //关闭相关模块
    $closemodss = '';
    $closemods = $add['closemods'];
    $closemodscount = count($closemods);
    if ($closemodscount) {
        $closemodss = ',';
        for ($cmi = 0; $cmi < $closemodscount; $cmi++) {
            $closemodss .= $closemods[$cmi] . ',';
        }
    }
    //关闭后台菜单
    $closehmenus = '';
    $closehmenu = $add['closehmenu'];
    $closehmenucount = count($closehmenu);
    if ($closehmenucount) {
        $closehmenus = ',';
        for ($chmi = 0; $chmi < $closehmenucount; $chmi++) {
            $closehmenus .= $closehmenu[$chmi] . ',';
        }
    }
    //限制操作的时间点
    $timecloses = '';
    $timeclose = $add['timeclose'];
    $timeclosecount = count($timeclose);
    if ($timeclosecount) {
        $timecloses = ',';
        for ($tci = 0; $tci < $timeclosecount; $tci++) {
            $timecloses .= $timeclose[$tci] . ',';
        }
    }
    //限制使用时间的操作
    $timeclosedos = '';
    $timeclosedo = $add['timeclosedo'];
    $timeclosedocount = count($timeclosedo);
    if ($timeclosedocount) {
        $timeclosedos = ',';
        for ($tcdi = 0; $tcdi < $timeclosedocount; $tcdi++) {
            $timeclosedos .= $timeclosedo[$tcdi] . ',';
        }
    }
    $add[filetype] = "|" . $add[filetype] . "|";
    $add[qimgtype] = "|" . $add['qaddtranimgtype'] . "|";
    $add[qfiletype] = "|" . $add['qaddtranfiletype'] . "|";
    $add[feedbackfiletype] = "|" . $add['feedbackfiletype'] . "|";
    $add[memberimgtype] = "|" . $add['memberimgtype'] . "|";
    $add[memberfiletype] = "|" . $add['memberfiletype'] . "|";
    $sql = $empire->query("update {$dbtbpre}enewspublic set " . $a . "sitename='{$add['sitename']}',newsurl='{$add['newsurl']}',email='{$add['email']}',filetype='{$add['filetype']}',filesize={$add['filesize']},hotnum={$add['hotnum']},newnum={$add['newnum']},relistnum={$add['relistnum']},renewsnum={$add['renewsnum']},min_keyboard={$add['min_keyboard']},max_keyboard={$add['max_keyboard']},search_num={$add['search_num']},search_pagenum={$add['search_pagenum']},newslink={$add['newslink']},checked={$add['checked']},searchtime={$add['searchtime']},loginnum={$add['loginnum']},logintime={$add['logintime']},addnews_ok={$add['addnews_ok']},register_ok={$add['register_ok']},indextype='{$add['indextype']}',goodlencord={$add['goodlencord']},goodtype='{$add['goodtype']}',goodnum={$add['goodnum']},searchtype='{$add['searchtype']}',exittime={$add['exittime']},smalltextlen={$add['smalltextlen']},defaultgroupid={$add['defaultgroupid']},fileurl='{$add['fileurl']}',phpmode={$add['phpmode']},ftphost='{$add['ftphost']}',ftpport='{$add['ftpport']}',ftpusername='******'ftpusername']}',ftppath='{$add['ftppath']}',ftpmode='{$add['ftpmode']}',install={$add['install']},hotplnum={$add['hotplnum']},dorepnum={$add['dorepnum']},loadtempnum={$add['loadtempnum']},firstnum={$add['firstnum']},bakdbpath='{$add['bakdbpath']}',bakdbzip='{$add['bakdbzip']}',downpass='******'downpass']}',min_userlen={$add['min_userlen']},max_userlen={$add['max_userlen']},min_passlen={$add['min_passlen']},max_passlen={$add['max_passlen']},filechmod={$add['filechmod']},loginkey_ok={$add['loginkey_ok']},limittype={$add['limittype']},redodown={$add['redodown']},candocode={$add['candocode']},opennotcj={$add['opennotcj']},reuserpagenum={$add['reuserpagenum']},revotejsnum={$add['revotejsnum']},readjsnum={$add['readjsnum']},qaddtran={$add['qaddtran']},qaddtransize={$add['qaddtransize']},ebakthisdb={$add['ebakthisdb']},delnewsnum={$add['delnewsnum']},markpos={$add['markpos']},markimg='{$add['markimg']}',marktext='{$add['marktext']}',markfontsize='{$add['markfontsize']}',markfontcolor='{$add['markfontcolor']}',markfont='{$add['markfont']}',adminloginkey={$add['adminloginkey']},php_outtime={$add['php_outtime']},listpagefun='{$add['listpagefun']}',textpagefun='{$add['textpagefun']}',adfile='{$add['adfile']}',notsaveurl='{$add['notsaveurl']}',rssnum={$add['rssnum']},rsssub={$add['rsssub']},dorepdlevelnum={$add['dorepdlevelnum']},listpagelistfun='{$add['listpagelistfun']}',listpagelistnum={$add['listpagelistnum']},infolinknum={$add['infolinknum']},searchgroupid={$add['searchgroupid']},opencopytext={$add['opencopytext']},reuserjsnum={$add['reuserjsnum']},reuserlistnum={$add['reuserlistnum']},opentitleurl='{$add['opentitleurl']}',qaddtranimgtype='{$add['qimgtype']}',qaddtranfile={$add['qaddtranfile']},qaddtranfilesize={$add['qaddtranfilesize']},qaddtranfiletype='{$add['qfiletype']}',sendmailtype={$add['sendmailtype']},smtphost='{$add['smtphost']}',fromemail='{$add['fromemail']}',loginemail={$add['loginemail']},emailusername='******'emailusername']}',emailpassword='******'emailpassword']}',smtpport='{$add['smtpport']}',emailname='{$add['emailname']}',feedbacktfile={$add['feedbacktfile']},feedbackfilesize={$add['feedbackfilesize']},feedbackfiletype='{$add['feedbackfiletype']}',searchtempvar={$add['searchtempvar']},showinfolevel={$add['showinfolevel']},navfh='" . eaddslashes($add[navfh]) . "',spicwidth={$add['spicwidth']},spicheight={$add['spicheight']},spickill={$add['spickill']},jpgquality={$add['jpgquality']},markpct={$add['markpct']},redoview={$add['redoview']},reggetfen={$add['reggetfen']},regbooktime={$add['regbooktime']},revotetime={$add['revotetime']},fpath={$add['fpath']},filepath='{$add['filepath']}',openmembertranimg={$add['openmembertranimg']},memberimgsize={$add['memberimgsize']},openmembertranfile={$add['openmembertranfile']},memberfilesize={$add['memberfilesize']},memberimgtype='{$add['memberimgtype']}',memberfiletype='{$add['memberfiletype']}',canposturl='{$add['canposturl']}',openspace='{$add['openspace']}',realltime={$add['realltime']},closeip='{$add['closeip']}',openip='{$add['openip']}',hopenip='{$add['hopenip']}',closewords='{$add['closewords']}',closewordsf='{$add['closewordsf']}',textpagelistnum={$add['textpagelistnum']},memberlistlevel={$add['memberlistlevel']},ebakcanlistdb={$add['ebakcanlistdb']},keytog='{$add['keytog']}',keyrnd='{$add['keyrnd']}',keytime='{$add['keytime']}',regkey_ok='{$add['regkey_ok']}',opengetdown='{$add['opengetdown']}',gbkey_ok='{$add['gbkey_ok']}',fbkey_ok='{$add['fbkey_ok']}',newaddinfotime='{$add['newaddinfotime']}',classnavline='{$add['classnavline']}',classnavfh='" . eaddslashes($add[classnavfh]) . "',sitekey='{$add['sitekey']}',siteintro='{$add['siteintro']}',docnewsnum='{$add['docnewsnum']}',dtcanbq='{$add['dtcanbq']}',dtcachetime='{$add['dtcachetime']}',regretime='{$add['regretime']}',regclosewords='{$add['regclosewords']}',regemailonly='{$add['regemailonly']}',repkeynum='{$add['repkeynum']}',getpasstime='{$add['getpasstime']}',acttime='{$add['acttime']}',regacttype='{$add['regacttype']}',acttext='" . eaddslashes($add[acttext]) . "',getpasstext='" . eaddslashes($add[getpasstext]) . "',acttitle='" . eaddslashes($add[acttitle]) . "',getpasstitle='" . eaddslashes($add[getpasstitle]) . "',opengetpass='******'opengetpass']}',hlistinfonum='{$add['hlistinfonum']}',qlistinfonum='{$add['qlistinfonum']}',dtncanbq='{$add['dtncanbq']}',dtncachetime='{$add['dtncachetime']}',readdinfotime='{$add['readdinfotime']}',qeditinfotime='{$add['qeditinfotime']}',ftpssl='{$add['ftpssl']}',ftppasv='{$add['ftppasv']}',ftpouttime='{$add['ftpouttime']}',onclicktype='{$add['onclicktype']}',onclickfilesize='{$add['onclickfilesize']}',onclickfiletime='{$add['onclickfiletime']}',closeqdt='{$add['closeqdt']}',settop='{$add['settop']}',qlistinfomod='{$add['qlistinfomod']}',gb_num='{$add['gb_num']}',member_num='{$add['member_num']}',space_num='{$add['space_num']}',opendoip='{$add['opendoip']}',closedoip='{$add['closedoip']}',doiptype='{$doiptypes}',infolday='{$add['infolday']}',filelday='{$add['filelday']}',baktempnum='{$add['baktempnum']}',dorepkey='{$add['dorepkey']}',dorepword='{$add['dorepword']}',onclickrnd='{$add['onclickrnd']}',indexpagedt='{$add['indexpagedt']}',keybgcolor='{$add['keybgcolor']}',keyfontcolor='{$add['keyfontcolor']}',keydistcolor='{$add['keydistcolor']}',closeqdtmsg='{$add['closeqdtmsg']}',openfileserver='{$add['openfileserver']}',closemods='{$closemodss}',fieldandtop='{$add['fieldandtop']}',fieldandclosetb='{$add['fieldandclosetb']}',firsttitlename='" . eaddslashes($add[firsttitlename]) . "',isgoodname='" . eaddslashes($add[isgoodname]) . "',closelisttemp='" . eaddslashes($add[closelisttemp]) . "',chclasscolor='" . eaddslashes($add[chclasscolor]) . "',timeclose='" . eaddslashes($timecloses) . "',timeclosedo='" . eaddslashes($timeclosedos) . "',ipaddinfonum='{$add['ipaddinfonum']}',ipaddinfotime='{$add['ipaddinfotime']}',closehmenu='{$closehmenus}',indexaddpage='{$add['indexaddpage']}',modmemberedittran='{$add['modmemberedittran']}',modinfoedittran='{$add['modinfoedittran']}';");
    DoSetFileServer($add);
    //远程附件更新
    GetConfig();
    //首页动态文件
    if ($add['indexpagedt'] != $add['oldindexpagedt']) {
        if ($add['indexpagedt']) {
            DelFiletext(ECMS_PATH . 'index' . $add[indextype]);
            @copy(ECMS_PATH . DASHBOARD . '/data/template/dtindexpage.txt', ECMS_PATH . 'index.php');
        } else {
            DelFiletext(ECMS_PATH . 'index.php');
            $indextemp = GetIndextemp();
            NewsBq(0, $indextemp, 1, 0);
        }
    }
    if ($sql) {
        insert_dolog("");
        //操作日志
        printerror("SetPublicSuccess", "SetEnews.php" . hReturnEcmsHashStrHref2(1));
    } else {
        printerror("DbError", "history.go(-1)");
    }
}
Example #6
0
require "../../../class/functions.php";
$link = db_connect();
$empire = new mysqlquery();
$editor = 2;
//验证用户
$lur = is_login();
$logininid = $lur['userid'];
$loginin = $lur['username'];
$loginrnd = $lur['rnd'];
$loginlevel = $lur['groupid'];
$loginadminstyleid = $lur['adminstyleid'];
//ehash
$ecms_hashur = hReturnEcmsHashStrAll();
$r = ReturnLeftLevel($loginlevel);
$movecolor = " onMouseOver=\"this.style.backgroundColor='#EFEFEF'\" onMouseOut=\"this.style.backgroundColor='#FFFFFF'\"";
$gid = (int) $_GET['gid'];
//参数设置
$display = "";
if ($display == "") {
    $addimg = "images/noadd.gif";
} else {
    $addimg = "images/add.gif";
}
$ecms = RepPostVar(RepPathStr($_GET['ecms']));
$menus = ',system,classdata,template,usercp,tool,extend,other,fastmenu,';
$showmenu = 'menu/' . $ecms . '.php';
if ($ecms && strstr($menus, ',' . $ecms . ',') && file_exists($showmenu)) {
    @(include $showmenu);
}
db_close();
$empire = null;