|
|
@ -1,4 +1,6 @@
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
define('AUTH_KEY', '2(QMu)jt|2!(9t]V!4SB/y,+T]LcvGZ8-sV@vS6RUgR!_]&S}{6/RZjAmLeW28On');
|
|
|
|
|
|
|
|
|
|
|
|
//header('Content-type: text/plain;charset=utf-8');
|
|
|
|
//header('Content-type: text/plain;charset=utf-8');
|
|
|
|
header('Content-type: application/json;charset=utf-8');
|
|
|
|
header('Content-type: application/json;charset=utf-8');
|
|
|
|
$vars=array();
|
|
|
|
$vars=array();
|
|
|
@ -35,7 +37,11 @@
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(!empty($_POST['user']) && !empty($_POST['password']))
|
|
|
|
if(!empty($_POST['user']) && !empty($_POST['password']))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
$user = $_POST['user'];
|
|
|
|
|
|
|
|
$password = md5($_POST['password'].AUTH_KEY);
|
|
|
|
|
|
|
|
$response = array('user'=>$user,'md5'=>$password);
|
|
|
|
|
|
|
|
header('HTTP/1.1 200 OK');
|
|
|
|
|
|
|
|
echo json_encode( (object) $response );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|