11 lines
327 B
PHP
11 lines
327 B
PHP
|
|
<?php
|
||
|
|
require_once($_SERVER['DOCUMENT_ROOT'] . "/config.php");
|
||
|
|
//ini_set('display_errors', 1);
|
||
|
|
//error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE);
|
||
|
|
if ($_SESSION['id'] && isset($_POST['ok_agent_id'])) {
|
||
|
|
$post = clearInputData($_POST);
|
||
|
|
$user = new User;
|
||
|
|
echo json_encode($user->edit_agent($post));
|
||
|
|
}
|
||
|
|
|
||
|
|
?>
|