<tr> <th width="150">站点类型:</th> <td> <select id="site_type" name="site_type" style="border:1px solid #CCC;height:24px;width:150px;"> <option value="enterprise">企业站</option> <option value="default">无初始数据</option> </select> * 选择合适的站点类型 </td> </tr> <tr> <th>前台模板风格:</th> <td> <select id="site_tpl" name="site_tpl" style="border:1px solid #CCC;height:24px;width:150px;"> <?php $dir_arr = get_file_names("../templates/pc"); foreach ($dir_arr as $v) { ?> <option value="<?php echo $v; ?> " <?php if (TEMPLATE == $v) { echo 'selected'; } ?> ><?php echo $v; ?> </option> <?php
* 3.配置文件是否可写 */ /* 1,根目录有创建目录的权限(cache) 2,cache 目录有没有写入文件的权限 3,upload 目录要有写入文件的权限 4,core 目录的2个文件(config.conn.php,config.php)要有写入权限 5,install 目录有没有写权限 install.lock.php 6,根目录的 .htaccess 和 httpd.ini 要有写权限 */ if (!is_dir(dirname(__FILE__) . '/../cache')) { mkdir(dirname(__FILE__) . '/../cache'); } $is_right = 1; //需要确认那些文件是必须有读写权限的 再做判断 $dir = get_file_names('../'); array_unshift($dir, './'); $dirs = array(); foreach ($dir as $k => $v) { $dirs[$v] = array('path' => dirname(__FILE__) . '/../' . $v, 'iswrite' => 0); } $dirs['数据库配置文件'] = array('path' => dirname(__FILE__) . '/../core/config.conn.php', 'iswrite' => 0); $dirs['网站配置文件'] = array('path' => dirname(__FILE__) . '/../core/config.php', 'iswrite' => 0); foreach ($dirs as $key => $val) { if (is_dir($val['path'])) { $iswrite = @fopen($val['path'] . '/dd.txt', 'w'); if ($iswrite) { $dirs[$key]['iswrite'] = 1; fclose($iswrite); unlink($val['path'] . '/dd.txt'); } else {
</head> <body> <!-- 顶部开始 --> <div class="header-wrapper" id="top"> <div class="header"> <div class="logo" style="background:none;"> <div style="height: 50px;margin-left: 8px;width: 270px;"><img src="<?php echo ADMIN_TOP_LOGO; ?> "></a></div> </div> <div class="top-nav"> <?php $file_name = get_file_names(dirname(__FILE__) . '/css/'); $str = ''; $arr = array('blue' => '055B8A', 'cyan' => '009591', 'default' => '888888', 'green' => '096B01', 'orange' => 'E26101', 'purple' => '4a124f', 'red' => '6a0000'); foreach ($file_name as $v) { if (in_array($v, array('js', 'img'))) { continue; } $str .= '<a href="javascript:void(0);" onclick="check_skin(\'' . $v . '\')" style="margin-right:6px;width:15px;height:15px;line-height:10px; text-align:center;;background:#' . $arr[$v] . ';"> </a>'; } echo $str; ?> <span><?php echo $_SESSION['admin']['gname']; ?> : <?php echo $_SESSION['admin']['aname']; ?>