mirror of https://github.com/helloxz/onenav.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
540 B
27 lines
540 B
2 years ago
|
<?php
|
||
|
/**
|
||
|
* 手机后台入口文件
|
||
|
*/
|
||
|
// 载入辅助函数
|
||
|
require('functions/helper.php');
|
||
|
|
||
|
//检查认证
|
||
|
check_auth($site_setting['user'],$site_setting['password']);
|
||
|
|
||
|
//获取版本号
|
||
|
$version = new_get_version();
|
||
|
|
||
|
/**
|
||
|
* 检查授权
|
||
|
*/
|
||
|
|
||
|
function check_auth($user,$password){
|
||
|
if ( !is_login() ) {
|
||
|
$msg = "<h3>认证失败,请<a href = 'index.php?c=login'>重新登录</a>!</h3>";
|
||
|
require('templates/admin/403.php');
|
||
|
exit;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 载入前台首页模板
|
||
|
require('templates/mobile/index.php');
|