Файл: ajax/users/picture/delete.php
Строк: 21
<?php
/**
* picture | delete
*
* @package Sngine
* @author Zamblek
*/
// fetch kernal
$depth = '../../../';
require($depth.'kernal.php');
// check AJAX Request
if(!IsAJAX()) {
header('Location: '.SITE_URL);
}
// check user exist
if(!$userExist) {
exit(PopupError('Please log in to continue.', 'Not Logged In'));
}
// check user verified
if($userArray['Verified'] == "N") {
VerifyError();
}
$db->query(sprintf("UPDATE users SET UserAvatarPath = 'content/themes/default/images/misc/no_avatar.jpg', UserAvatarPathMedium = 'content/themes/default/images/misc/no_avatar_medium.jpg', UserAvatarPathSmall = 'content/themes/default/images/misc/no_avatar_small.jpg' WHERE UserID = %s", Secure($userArray['UserID'], 'int') )) or die(PopupError(ReportError('sql error #1 @/ajax/users/delete')));
?>