Profile Page Encrypted Messenger PHP
Profile Page
Encrypted Messenger PHP
A user profile is a visual display of personal data associated with a specific user, or a customized desktop environment.
A profile refers therefore to the explicit digital representation of a person’s identity.
A user profile can also be considered as the computer representation of a user model.
A profile can be used to store the description of the characteristics of person.
This information can be exploited by systems taking into account the persons’ characteristics and preferences.
Profiling is the process that refers to construction of a profile via the extraction from a set of data.
User profiles can be found on operating systems, computer programs, recommender systems, or dynamic websites (such as online social networking sites or bulletin boards)
A profile refers therefore to the explicit digital representation of a person’s identity.
A user profile can also be considered as the computer representation of a user model.
A profile can be used to store the description of the characteristics of person.
This information can be exploited by systems taking into account the persons’ characteristics and preferences.
Profiling is the process that refers to construction of a profile via the extraction from a set of data.
User profiles can be found on operating systems, computer programs, recommender systems, or dynamic websites (such as online social networking sites or bulletin boards)
fetch_assoc
mysqli_result::fetch_assoc And mysqli_fetch_assoc
Fetch a result row as an associative array
Create a file named index.php
<?php
function secured_error () { die("Secured By Omid Bahrami"); }
set_error_handler("secured_error");
require '../secured/secured-structure.php';
require '../secured/secured-database.php';
require '../secured/secured-encryption.php';
require '../secured/secured-validation.php';
session_start();
gns_check_https();
if(!isset($_SESSION["secured"]))
header('location:../sign-in/');
$e1=$e2=FALSE;
if(isset($_POST["update"]))
{
$gt=array("email"=>"email" );
if(gns_check_form($gt))
{
$xex=gns_encode($_POST["email"]);
$xux=gns_hash_fix($_SESSION["secured"]);
gns_update_email($xex,$xux);
$e1=TRUE;
}
else
$e2=TRUE;
}
$xux=gns_hash_fix($_SESSION["secured"]);
$xrx=gns_get_email($xux);
$xcx=$xrx->fetch_assoc();
?>
<?php
$t=$_SESSION["secured"];
gns_head_pro($t);
?>
<div class="jumbotron">
<?php
if($e1)
echo '<p class="text-primary text-center"> Your Info Has Been Updated </p>';
else if($e2)
echo '<p class="text-primary text-center"> Check your Input </p>';
else
gns_welcome("Information");
?>
</div>
<div class="jumbotron">
<form id="form1" name="form1" method="post">
<table class="table table-condensed" style="max-width: 500px" align="center">
<tbody>
<tr>
<td><?php echo $_SESSION["secured"]; ?></td>
</tr>
<tr>
<td>
<input type="email" name="email" id="email" class="form-control" placeholder="<?php if(!gns_show_error("email")) echo "Email"; ?>" value="<?php echo gns_decode($xcx["email"]); ?>">
</td>
</tr>
<tr>
<td> <input type="submit" name="update" id="update" value="Update" class=" btn btn-primary"> </td>
</tr>
</tbody>
</table>
</form>
</div>
<?php gns_foot(); ?>
Full structure is available at Encrypted Messenger PHP