29 lines
554 B
PHP
29 lines
554 B
PHP
<?php
|
|
require_once($_SERVER['DOCUMENT_ROOT']."/config.php");
|
|
$get = clearInputData($_GET);
|
|
if(is_numeric($get['id']))
|
|
{
|
|
$client = new Clients_jw;
|
|
$client->del($get['id']);
|
|
}
|
|
if(is_numeric($get['restore']))
|
|
{
|
|
$client = new Clients_jw;
|
|
$client->restore($get['restore']);
|
|
}
|
|
|
|
/*if(is_numeric($get['reason']))
|
|
{
|
|
$client = new Clients();
|
|
$get['id_del_client'] = $get['reason'];
|
|
$client->delReason($get);
|
|
}*/
|
|
|
|
if($_POST['id_del_client'])
|
|
{
|
|
$post = clearInputData($_POST);
|
|
$client = new Clients_jw;
|
|
$client->delReason($post);
|
|
|
|
}
|
|
?>
|