mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-01-10 04:43:05 -08:00
16 lines
335 B
PHP
16 lines
335 B
PHP
<?php
|
|
error_reporting(NULL);
|
|
$TAB = 'SERVER';
|
|
header('Content-Type: application/json');
|
|
|
|
// Main include
|
|
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
|
|
|
$result = array(
|
|
'error' => $_SESSION['error_msg'],
|
|
'ok_msg' => $_SESSION['ok_msg']
|
|
);
|
|
|
|
echo json_encode($result);
|
|
unset($_SESSION['error_msg']);
|
|
unset($_SESSION['ok_msg']); |