Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['user']) && !isset($_GET['user']))
- {
- echo "<script>window.location='view_profile.php?user=$_POST[user]';</script>";
- exit();
- }
- if(isset($_GET['user']))
- {
- $_POST['user'] = $_GET['user'];
- }
- if(isset($_POST['user']))
- {
- $_POST['user'] = htmlentities($_POST['user']);
- $title="3DSPlaza - $_POST[user]s profile";
- $keywords="3DSPlaza $_POST[user] profile";
- }
- else
- {
- $title = 'Home4DSi - View a profile';
- $keywords = '3DSPlaza profile';
- }
- $location = 'profile';
- include("header.php");
- include("db_leden.php");
- ?>
- <?php
- mysql_connect("$dbhost","$dbuser","$dbpass");
- mysql_select_db($db);
- if(isset($inlogbericht))
- {
- if (strtolower($user) == strtolower($gebruikersnaam)){
- ?>
- <?php echo $user;
- echo $_SESSION['user']; ?>
- <a href="../members/send_pm.php?to=<?php echo urlencode($user); ?>">Send <?php echo htmlentities($user);?>
- a PM.</a><br><br>
- <?php
- }}
- ?>
- <?php
- if(isset($_POST['user']))
- {
- $user=$_POST['user'];
- if($user==$gebruikersnaam )
- {
- $viewself="ja";
- }
- $select_profile_info_request = mysql_query(" select about_me from ledengegevens where gebruikersnaam='$user'");
- $row=mysql_fetch_row($select_profile_info_request);
- if(empty($row))
- {
- $bestaatniet="ja";
- }
- else
- {
- $col = $row[0];
- include("replacer.php");
- $about_me=$bericht;
- if($friendcode != "none")
- {
- $hasfc = "yes";
- }
- echo "<center><h2>".$user."'s profile</h2>";
- if(isset($viewself))
- {
- echo ' (<a href="profile_edit.php">edit</a>)';
- }
- echo "</h2>";
- echo "<br><br>";
- echo "</center><span style='color: blue;'>About $user:</span><br>";
- if(!empty($about_me))
- {
- echo "$about_me<br>";
- }
- else
- {
- echo "$user has not filled this in yet<br>";
- }
- echo "<br>";
- if($user == "ursamajor")
- {
- echo "<font color=\"blue\">Accomplishments:</font><br><img src=\"http://fc03.deviantart.net/fs70/f/2013/270/a/6/super_smash_bros__logo_vector_by_starjamlegend-d6o640q.png\" width=\"19px\" height=\"19px\"> <u>Won 3rd place in the \"Battle For Mewtwo (B4M2)\" Super Smash Bros. for 3DS tournament</u>";
- }
- if($user == "Michael94")
- {
- echo "<font color=\"blue\">Accomplishments:</font><br><img src=\"http://fc03.deviantart.net/fs70/f/2013/270/a/6/super_smash_bros__logo_vector_by_starjamlegend-d6o640q.png\" width=\"19px\" height=\"19px\"> <u>Won 1st place in the \"Battle For Mewtwo (B4M2)\" Super Smash Bros. for 3DS tournament</u>";
- }
- if($user == "DrakeJericho")
- {
- echo "<font color=\"blue\">Accomplishments:</font><br><img src=\"http://fc03.deviantart.net/fs70/f/2013/270/a/6/super_smash_bros__logo_vector_by_starjamlegend-d6o640q.png\" width=\"19px\" height=\"19px\"> <u>Won 2nd place in the \"Battle For Mewtwo (B4M2)\" Super Smash Bros. for 3DS tournament</u>";
- }
- }
- if(!isset($bestaatniet))
- {
- echo "<br><br><hr>";
- }
- }
- ?>
- <form action="<?php echo $_SERVER['PHP_SELF'];?>" method="POST">
- <?php if(isset($bestaatniet))
- {
- echo "<center><font color=\"red\">The username $user doesn't exist!</font></center><br><br>";
- }
- ?>
- <center><h4>View the profile of:</h4><input type="text" maxlength=15 name="user"><input type="submit" value="View"></center></form>
- <?php
- include("footer.php");
- ?>
Add Comment
Please, Sign In to add comment