Beispiel #1
0
 function require_valid_app_key($appName, $user_api_key, $user_app_key)
 {
     if (AUTH::is_valid_app_key($appName, $user_api_key, $user_app_key) == false) {
         header('location: /202-account/app-key-required.php');
         die;
     }
 }
Beispiel #2
0
        //if no user_pass errors
        if (!$error) {
            $user_pass = salt_user_pass($_POST['new_user_pass']);
            $mysql['user_pass'] = mysql_real_escape_string($user_pass);
            $mysql['user_id'] = mysql_real_escape_string($_SESSION['user_id']);
            $user_sql = "\tUPDATE \t`202_users`\n\t\t\t\t\t\t\tSET    \t\t`user_pass`='" . $mysql['user_pass'] . "'\n\t\t\t\t\t\t\tWHERE  \t`user_id`='" . $mysql['user_id'] . "'";
            $user_result = _mysql_query($user_sql);
            $change_user_pass = true;
        }
    }
    $html = array_merge($html, array_map('htmlentities', $_POST));
}
$html['user_id'] = htmlentities($_SESSION['user_id'], ENT_QUOTES, 'UTF-8');
$html['user_username'] = htmlentities($_SESSION['user_username'], ENT_QUOTES, 'UTF-8');
//check to see if this user has stats202 enabled
$_SESSION['stats202_enabled'] = AUTH::is_valid_app_key('stats202', $_SESSION['user_api_key'], $_SESSION['user_stats202_app_key']);
template_top('User Profile', NULL, NULL, NULL);
?>
 

<style>
.my-account-tables { margin: 0px auto; }
.my-account-tables td { width: 150px; }
</style>

<form method="post"  action="" enctype="multipart/form-data">   
    <input type="hidden" name="update_profile" value="1" />                   
    <input type="hidden" name="token" value="<?php 
echo $_SESSION['token'];
?>
" />