123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- define('EmpireCMSAdmin','1');
- require("../../class/connect.php");
- require("../../class/db_sql.php");
- require("../../class/functions.php");
- $link=db_connect();
- $empire=new mysqlquery();
- $editor=1;
- //验证用户
- $lur=is_login();
- $logininid=$lur['userid'];
- $loginin=$lur['username'];
- $loginrnd=$lur['rnd'];
- $loginlevel=(int)$lur['groupid'];
- $loginadminstyleid=(int)$lur['adminstyleid'];
- //ehash
- $ecms_hashur=hReturnEcmsHashStrAll();
- $r=ReturnLeftLevel($loginlevel);
- //模板组
- $gid=(int)$_GET['gid'];
- if(!$gid)
- {
- if($ecms_config['sets']['deftempid'])
- {
- $gid=$ecms_config['sets']['deftempid'];
- }
- elseif($public_r['deftempid'])
- {
- $gid=$public_r['deftempid'];
- }
- else
- {
- $gid=1;
- }
- }
- $tempgroup="";
- $tgname="";
- $tgsql=$empire->query("select gid,gname,isdefault from {$dbtbpre}enewstempgroup order by gid");
- while($tgr=$empire->fetch($tgsql))
- {
- $tgselect="";
- if($tgr['gid']==$gid)
- {
- $tgname=$tgr['gname'];
- $tgselect=" selected";
- }
- $tempgroup.="<option value='".$tgr['gid']."'".$tgselect.">".$tgr['gname']."</option>";
- }
- if(empty($tgname))
- {
- printerror("ErrorUrl","");
- }
- if(!file_exists("../adminstyle/".$loginadminstyleid."/AdminTemp.php"))
- {
- exit();
- }
- require("../adminstyle/".$loginadminstyleid."/AdminTemp.php");
- db_close();
- $empire=null;
- ?>
|