Primer commit del sistema avantika sin cambios
This commit is contained in:
21
ajax/login.php~
Executable file
21
ajax/login.php~
Executable file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
include_once('../init.php');
|
||||
include_once('../config.php');
|
||||
include_once(DOC_ROOT.'/libraries.php');
|
||||
print_r($_POST);
|
||||
$empresa->setEmail($_POST['email']);
|
||||
$empresa->setPassword($_POST['password']);
|
||||
$empresa->setEmpresaId(15);
|
||||
|
||||
if(!$empresa->DoLogin())
|
||||
{
|
||||
echo 'fail[#]';
|
||||
$smarty->display(DOC_ROOT.'/templates/boxes/status.tpl');
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'ok[#]';
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user