</div> <input type="text" value="<?php echo get_current_hostname(); ?> " name="hostname" id="hostname"> <input type="submit" class="button" value="<?php echo _('Update'); ?> "> </form> <form action="admin/update_default_path" method="post"> <label for="default_path"><?php echo _('Default path'); ?> </label> <div class="help"><?php echo _('Where to redirect users by default'); ?> </div> <input type="text" value="<?php echo get_default_path(); ?> " name="default_path" id="default_path"> <input type="submit" class="button" value="<?php echo _('Update'); ?> "> </form> </fieldset> </div>
<?php if (defined('HOSTNAME') && strtolower($_SERVER['HTTP_HOST']) != HOSTNAME) { $path = ''; if (wispr_pong() == 'show-intro') { $path = 'intro'; } $hostname = HOSTNAME; header("Location: http://{$hostname}/{$path}"); exit; } $ssl_enabled = !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' || $_SERVER['SERVER_PORT'] == 443; $default_path = get_default_path(); $grid->response->redirect($default_path); exit;
<?php /** * User: loveyu * Date: 2015/12/8 * Time: 23:14 */ require_once "common.php"; check_login(); $path = isset($_GET['path']) ? $_GET['path'] : null; if (empty($path)) { header("Location: ?path=" . urlencode(get_default_path())); exit; } header("Content-Type: text/html; charset=utf-8"); if (!is_dir(get_sys_path($path))) { die("路径不存在"); } $map = get_path_list($path); ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>列表</title> <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet"> </head> <body> <div class="container">