Skip to content

Commit 95face5

Browse files
committed
更新
1 parent 37941c5 commit 95face5

File tree

11 files changed

+22
-285
lines changed

11 files changed

+22
-285
lines changed

App/Bootstrap.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ public function __construct() {
1010
define('APP_PATH', str_replace('\\', '/', realpath(dirname(__FILE__) . '/')) . "/");
1111
define('ROOT_PATH', str_replace('\\', '/', realpath(dirname(__FILE__, 2) . '/')) . "/");
1212
define('PUBLIC_PATH', ROOT_PATH . 'Public');
13-
$whoops = new \Whoops\Run;
14-
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
15-
$whoops->register();
13+
1614
define('PHP_CONFIG_AUTO_PATH', APP_PATH . 'config/');
1715
define('PHP_CONFIG_PATH', APP_PATH . 'config/');
16+
// 调试模式
17+
// $whoops = new \Whoops\Run;
18+
// $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
19+
// $whoops->register();
1820
}
1921
public static function Auth_Config($key = null) {
2022
if (self::$app == null) {

App/Router.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@
77

88
Route::get('/', 'App\Home\Controller\HomeController@main');
99
Route::get('/login', 'App\Home\Member\Login@index');
10-
Route::get('/phpinit', function() {
11-
phpinfo();
12-
});
1310
Route::get('/code', 'App\Home\Controller\QrodeController@index');
1411
Route::get('/captcha', 'App\Home\Member\Captcha@index');
15-
Route::get('/about', function() {
16-
echo 'about!';
17-
});
1812
Route::error(function() {
1913
echo '404 !';
2014
});

App/admin/controller/CommonController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ class CommonController {
55
protected $templateEngine;
66
protected $_medoo_mysql;
77
public function __construct() {
8-
ini_set('session.save_path', realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/App/file/tmp'));
9-
ini_set('session.auto_start', 0);
10-
ini_set('session.gc_probability', 1);
11-
ini_set('session.gc_maxlifetime', 1500);
8+
// ini_set('session.save_path', realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/App/file/tmp'));
9+
// ini_set('session.auto_start', 0);
10+
// ini_set('session.gc_probability', 1);
11+
// ini_set('session.gc_maxlifetime', 1500);
1212
session_start();
1313
$loader = new \Twig\Loader\FilesystemLoader(APP_PATH . 'admin/view');
1414
$this->templateEngine = new \Twig\Environment($loader, ['debug' => true, 'cache' => APP_PATH . './file/cache_admin', 'auto_reload' => true, ]);

App/admin/view/include/js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<script src="{{ PUBLIC_ADMIN }}/js/jquery.min.js"></script>
22
<script src="{{ PUBLIC_ADMIN }}/js/popper.min.js"></script>
33
<script src="{{ PUBLIC_ADMIN }}/js/bootstrap.min.js"></script>
4-
<script type="text/javascript" src="https://v1.cnzz.com/z_stat.php?id=1279338078&web_id=1279338078"></script>
4+
<div style="display: none;"><script type="text/javascript" src="https://v1.cnzz.com/z_stat.php?id=1279338078&web_id=1279338078"></script></div>

App/admin/view/user/login.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ <h2>Admin Login</h2>
121121

122122

123123
</script>
124-
125-
<script type="text/javascript" src="https://v1.cnzz.com/z_stat.php?id=1279338078&web_id=1279338078"></script>
124+
<div style="display: none;"><script type="text/javascript" src="https://v1.cnzz.com/z_stat.php?id=1279338078&web_id=1279338078"></script>
125+
</div>
126126
</body>
127127
</html>

App/admin/view/user/user_group_add copy.html

Lines changed: 0 additions & 36 deletions
This file was deleted.

App/home/member/Login.php

Lines changed: 0 additions & 20 deletions
This file was deleted.

App/home/member/LoginController.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@
55
use App\home\member\_Validate;
66
class LoginController {
77
public function index() {
8+
89
}
910
public function login() {
10-
$data = ['name' => 'thinkphp', 'email' => 'thinkphp', 'age' => 'thinkphp@qq.com222', ];
11-
$validateNew = new _Validate();
12-
if (!$validateNew->check($data)) {
13-
var_dump($validateNew->getError());
14-
}
11+
1512
}
1613
}
1714

App/library/Auth.class.php

Lines changed: 0 additions & 199 deletions
This file was deleted.

Public/.htaccess

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
RewriteEngine On
2-
RewriteBase /
3-
4-
# Allow any files or directories that exist to be displayed directly
5-
RewriteCond %{REQUEST_FILENAME} !-f
6-
RewriteCond %{REQUEST_FILENAME} !-d
7-
8-
RewriteRule ^(.*)$ index.php?$1 [QSA,L]
1+
<IfModule mod_rewrite.c>
2+
Options +FollowSymlinks -Multiviews
3+
RewriteEngine On
4+
5+
RewriteCond %{REQUEST_FILENAME} !-d
6+
RewriteCond %{REQUEST_FILENAME} !-f
7+
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
8+
</IfModule>

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"App\\": "App"
1818
},
1919
"files":[
20-
"App/library/Auth.class.php",
2120
"App/library/Validatecode.php",
2221
"App/library/File.class.php"
2322
]

0 commit comments

Comments
 (0)