You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
605 B
22 lines
605 B
<?php
|
|
require_once('../ajax_asm.php');
|
|
$UID = intval( $CUser->Data['id'] );
|
|
$ACCESS = intval( $CUser->Data['access'] );
|
|
$Data = array();
|
|
$Data['sattus']='ERRROR';
|
|
if( $UID > 1 ){
|
|
if( isset( $_POST['MID'] ) ){
|
|
$MID = intval($_POST['MID']);
|
|
if( $MID ){
|
|
$QS = "DELETE FROM `location_maps` WHERE `id`={$MID} AND `persistent`=0";
|
|
$DATABASE->Query( $QS );
|
|
$QS = "UPDATE `system_props` SET `map_id`=1, `local_binding`=0 WHERE `id`=1";
|
|
$DATABASE->Query( $QS );
|
|
$Data['sattus']='OK';
|
|
};
|
|
}
|
|
} else {
|
|
|
|
};
|
|
echo json_encode( $Data );
|
|
?>
|