示例#1
0
文件: me.php 项目: rubulh/delta_music
require_once("/var/www/take/files/thekey.php");
require_once("/var/www/take/files/functions/trackker.php");
require_once("/var/www/take/files/functions/randomstring.php");
require_once("/var/www/take/files/functions/profilestring.php");
require_once("/var/www/take/files/functions/unlogger.php");
require_once("/var/www/take/files/functions/restrictor.php")  ;
//ONE HAS TO FIX THIS LINE;;SEE IF IT CAN BE DONE WITHOUT USING DIRECT FILE NAMES AND FOLDER NAMES
//here i need some extra code so as to account and check for cookies sessions
// $THEEMAILIDINSESSION=$_SESSION['email_id'];
// $connection_welcome=mysqli_connect($_SERVER['HTTP_HOST'],$sqlusername,$sqlpassword,$databasename);
//  $query_THE_LEAD=mysqli_query($connection_welcome,"select profile_string from users_basic where email_id='$THEEMAILIDINSESSION'")or die(mysqli_error($connectiom_welcome));
// $fetch_the_lead=mysqli_fetch_array($query_THE_LEAD);
// $profile_string_this_is=$fetch_the_lead['profile_string'];


trackker();//ONE HAS TO FIX THIS LINE;;SEE IF IT CAN BE DONE WITHOUT USING DIRECT FILE NAMES AND FOLDER NAMES
?>
<?php
//code_to extract the registration timestamp of the user

//var_dump($_SESSION);
$connection_me=mysqli_connect($_SERVER['HTTP_HOST'],$sqlusername,$sqlpassword,$databasename);
$email_id_me=$_SESSION['email_id'];//email_id unique
$query_to_me="select registration_timestamp, username,friends,profile_string from users_basic where email_id='$email_id_me'";
$result_to_me=mysqli_query($connection_me,$query_to_me);
$answer_to_me=mysqli_fetch_array($result_to_me);
$registration_timestamp_me=$answer_to_me['registration_timestamp'];
$username_me=$answer_to_me['username'];
$allfriends_string=$answer_to_me['friends'];
$my_profile_string=$answer_to_me['profile_string'];
$database_me=$username_me.'___'.$email_id_me.'___'.$registration_timestamp_me;
示例#2
0
require_once("/var/www/take/files/thekey.php");
require_once("/var/www/take/files/functions/trackker.php");
require_once("/var/www/take/files/functions/randomstring.php");
require_once("/var/www/take/files/functions/profilestring.php");
require_once("/var/www/take/files/functions/unlogger.php");
require_once("/var/www/take/files/functions/restrictor.php")  ;
//ONE HAS TO FIX THIS LINE;;SEE IF IT CAN BE DONE WITHOUT USING DIRECT FILE NAMES AND FOLDER NAMES
//here i need some extra code so as to account and check for cookies sessions
// $THEEMAILIDINSESSION=$_SESSION['email_id'];
// $connection_welcome=mysqli_connect($_SERVER['HTTP_HOST'],$sqlusername,$sqlpassword,$databasename);
//  $query_THE_LEAD=mysqli_query($connection_welcome,"select profile_string from users_basic where email_id='$THEEMAILIDINSESSION'")or die(mysqli_error($connectiom_welcome));
// $fetch_the_lead=mysqli_fetch_array($query_THE_LEAD);
// $profile_string_this_is=$fetch_the_lead['profile_string'];


trackker();
?>


<?php

$email_id_currently_logged_in=$_SESSION['email_id'];
//sanitise the get variable
//get if it is not a email_id
//echo no such user exists
//else take to this page
//
$permission_viewprofile=70;//arbit
$connection_viewprofile=mysqli_connect($_SERVER['HTTP_HOST'],$sqlusername,$sqlpassword);
$_GET['profile']=mysqli_real_escape_string($connection_viewprofile,htmlentities($_GET['profile']));
//$after_filter_get_string=filter_var($GET['email_id'],FILTER_VALIDATE_EMAIL);;;;;new idea hides the email