mirror of https://github.com/helloxz/imgurl.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
736 B
27 lines
736 B
7 years ago
|
<?php
|
||
|
// 控制器
|
||
|
// 载入类
|
||
|
include_once("class/class.user.php");
|
||
|
$type = $_GET['type'];
|
||
|
switch ($type) {
|
||
|
case 'login':
|
||
|
// 用户登录时输入的信息
|
||
|
$user = array(
|
||
|
"user" => $_POST['user'],
|
||
|
"password" => $_POST['password']
|
||
|
);
|
||
|
// 配置文件里面的用户信息
|
||
|
$admin = array(
|
||
|
"user" => $config['user'],
|
||
|
"password" => $config['password']
|
||
|
);
|
||
|
$basis->login($user,$admin);
|
||
|
break;
|
||
|
case 'check':
|
||
|
$basis->check($config);
|
||
|
break;
|
||
|
default:
|
||
|
# code...
|
||
|
break;
|
||
|
}
|
||
|
?>
|