Joywork/admin/ajax/getReservationUserData.php
2026-05-22 21:21:54 +03:00

22 lines
484 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($_SESSION['superadmin']) && $_POST['id']) {
$post = clearInputData($_POST);
$user = new User;
$user->get($post['id']);
if ($user) {
?>
<div>E-mail: <?php echo $user->email; ?></div>
<div>Тел.: <?php echo $user->phone; ?></div>
<?php
}
}