<div id="tab-general" class="box"> <div class="box-title"> <img class="box-user-icon" src="<?php echo get_profile_picture($_SESSION['auth']['user_profile_picture']); ?> "> General Settings </div> <div class="box-subTitle"> Edit your profile information </div> <form id="account-form" class="account-form" data-birthdate="<?php echo $_SESSION['auth']['user_birthdate']; ?> "> <div class="error"> Error<br> <span></span> </div> <div class="success"> Success </div> <div> <div>First Name</div> <input type="text" name="firstName" value="<?php echo $_SESSION['auth']['user_firstname']; ?> " pattern="[a-zA-Z]+" required>
<?php if ($friendRequests) { ?> <div class="clear-fix box"> <div class="box-title"> Friend Requests </div> <?php foreach ($friendRequests as $friend) { ?> <a href="profile.php?user_id=<?php echo $friend['user_id']; ?> "> <img class="friend-pic" title="<?php echo $friend['user_firstname']; ?> " src="<?php echo get_profile_picture($friend['user_profile_picture']); ?> "> </a> <?php } ?> </div> <?php }
<div id="profile-cover" class="box"> <img src="<?php echo get_cover_picture($viewedUser['user_secret_picture']); ?> "> <div class="pc-footer"> <a href="profile.php?user_id=<?php echo $viewedUser['user_id']; ?> "> <img src="<?php echo get_profile_picture($viewedUser['user_profile_picture']); ?> "> </a> <?php echo $viewedUser['full_name']; ?> <?php if ($page['friend']['is_friend']) { ?> <div class="pc-is-friend"></div> <?php } ?> <div class="pc-actions"> <?php if ($page['is_me']) { ?> <div class="pca-icon change-cover-icon"><a href="account.php#images"></a></div> <?php
include 'includes/connection.php'; $name = mysql_prep($_POST["name"]); $email = mysql_prep($_POST["email"]); $password = mysql_prep($_POST["password"]); $gender = $_POST["gender"]; $contact = mysql_prep($_POST["contact"]); $date_of_birth = mysql_prep($_POST["date_of_birth"]); $address = mysql_prep($_POST["address"]); $role = $_POST["role"]; $user_id = genarate_user_id($role); if (email_isExists($email)) { $msg = "Email Address Already Exists"; goto error; } if (!isset($_POST["picture"])) { $picture = mysql_prep(get_profile_picture($gender, $role)); } $query = "INSERT INTO user \n\t\t(Name, User_Id, Email, Password, Gender, ContactNo, DateOfBirth, Address, Salary, tutionfee, Role, isActive, Picture) \n\t\tVALUES ('{$name}', '{$user_id}', '{$email}', '{$password}', '{$gender}', '{$contact}', '{$date_of_birth}', '{$address}', NULL, NULL, '{$role}', '0', '{$picture}');"; global $connection; $rs = mysql_query($query, $connection); confirm_query($rs); ?> <?php error: require_once 'includes/header.php'; ?> <?php if (isset($rs)) { goto yes;
<!-- Handle the AJAX requests to update the tabular data regularly of a particular Skype ID--> <?php require_once "includes/connection.php"; require_once "includes/functions.php"; if (isset($_POST['Id'])) { $sel_Id = $_POST['Id']; } else { $result = get_first_record(); $sel_Id = $result['ID']; } $output = ""; $output .= "<table class=\"table table-bordered\" style=\"border: 2px solid #000000;\" >\n\t\t\t\t<tr style=\"border: 2px solid #000000;\">\n\t\t\t\t\t<td style=\"border: 2px solid #000000;\"><b>Profile Picture</b></td>\n\t\t\t\t\t<td style=\"border: 2px solid #000000;\"><b>Skype ID</b></td>\n\t\t\t\t\t<td style=\"border: 2px solid #000000;\"><b>Last Public IP Accessed</b></td>\n\t\t\t\t\t<td style=\"border: 2px solid #000000;\"><b>Last Internal IP Accessed</b></td>\n\t\t\t\t\t<td style=\"border: 2px solid #000000;\"><b>City</b></td>\n\t\t\t\t\t<td style=\"border: 2px solid #000000;\"><b>Country</b></td>\n\t\t\t\t\t<td style=\"border: 2px solid #000000;\"><b>Last Online At</b></td>\n\t\t\t\t\t</tr>"; if (!($sel_Id == Null)) { $result = get_ID_info_once($sel_Id); get_profile_picture($sel_Id); $output .= "<tr>\n\t\t\t\t\t\t\t\t<td style=\"border: 2px solid #000000;\"><img src=\"images/users/{$sel_Id}.jpg\" width=70px height=70px style=\"border: 2px solid #000000;\"></td>\n\t\t\t\t\t\t\t\t<td style=\"border: 2px solid #000000;\">{$result['ID']}</td>\n\t\t\t\t\t\t\t\t<td style=\"border: 2px solid #000000;\">{$result['IP_Public']}</td>\n\t\t\t\t\t\t\t\t<td style=\"border: 2px solid #000000;\">{$result['IP_Internal']}</td>\n\t\t\t\t\t\t\t\t<td style=\"border: 2px solid #000000;\">{$result['City']}</td>\n\t\t\t\t\t\t\t\t<td style=\"border: 2px solid #000000;\">{$result['Country']}</td>\n\t\t\t\t\t\t\t\t<td style=\"border: 2px solid #000000;\">{$result['TimeStamp']}</td>\n\t\t\t\t\t\t\t\t</tr>"; } $output .= "</table>"; print $output;