level_info['level_profile_delete'] ) { header("Location: user_account.php"); exit(); } // DELETE THIS USER if( $task == "dodelete" ) { /*if( empty($_SESSION['delete_token']) || $_SESSION['delete_token']!=$delete_token || time()>$_SESSION['delete_token_expires'] ) { $result = FALSE; } else { $user->user_delete(); $user->user_setcookies(); $result = TRUE; }*/ $database->database_query("UPDATE se_users SET user_enabled='0', user_pdp_evc = 2 WHERE user_id='".$user->user_info["user_id"]."'"); $xml=' bateworld@gmail.com 405a1b48556d1ffd09416751a6c915a61a2beb2d subscribers deleteSubscriber
33624 '.$user->user_info["user_email"].'
'; /* $ch = curl_init(); // set url curl_setopt($ch, CURLOPT_URL, "https://www.ynotmail.com/clients/remote-api.php"); curl_setopt ($ch, CURLOPT_HTTPHEADER, array("Content-Type: text/xml")); //return the transfer as a string curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); // $output contains the output string $output = curl_exec($ch); */ header("Content-Type: application/json"); echo json_encode(array('result' => $result)); exit(); } // Nothing wrong with being extra safe, right? $_SESSION['delete_token'] = md5(uniqid(rand(), TRUE)); $_SESSION['delete_token_expires'] = time() + 300; // ASSIGN SMARTY VARIABLES AND INCLUDE FOOTER $smarty->assign('delete_token', $_SESSION['delete_token']); include "footer.php"; ?>