Вход Регистрация
Файл: Boomchat 7.1/system/email_change.php
Строк: 23
<?php
/**
* Boomchat
*
* @package Boomchat
* @author www.myboomchat.com
* @copyright 2015
* @terms any use of this script without a legal license is prohibited
* all the content of Boomchat is the propriety of BoomCoding and Cannot be 
* used for another project.
*/
$load_data 'setting.timezone, setting.allow_theme, setting.default_theme, setting.language, users.user_theme, users.user_id';
require_once(
"config1.php");

$me $data['user_id'];

if(isset(
$_POST['new_email']) && $access == 'on'){

    
$my_email $mysqli->real_escape_string(trim($_POST['new_email']));
    
    if (
filter_var($my_emailFILTER_VALIDATE_EMAIL) && !empty( $_POST['new_email'])){
        
$my_email $my_email;
        
$mysqli->query("UPDATE `users` SET `user_email` = '$my_email' WHERE `user_id` = '$me'");
        echo 
2;
    }
    else {
        echo 
1;
    }
}
else {
    die();
}
?>
Онлайн: 2
Реклама