Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.1.0.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ Official site : http://DeZender.Net
- *
- */
- namespace home\controller;
- class index
- {
- public function __construct()
- {
- $auth = new softauth();
- $auth->checkAuth();
- }
- public function index()
- {
- tools::getUser();
- header('location:list');
- exit(1);
- }
- public function login()
- {
- v();
- }
- public function loginajax()
- {
- $u = $_POST['username'];
- $p = md5($_POST['password']);
- $isuser = m('user')->where(['username' => $u, 'password' => $p])->find();
- if ($isuser) {
- cookie('username', $u);
- cookie('password', $p);
- $ret['ret'] = 1;
- }
- else {
- $ret['ret'] = 0;
- $ret['message'] = '用户名或密码错误!';
- }
- echoJson($ret);
- ..................................................................
- ..............................................
- ............
Add Comment
Please, Sign In to add comment