public function __construct($page, $get = '', $post = '', $ref = '') { $sess = new SessionData('account'); if ($sess->CheckValidSession()) { $userid = $sess->Retrieve('id'); } else { $userid = "0"; } if ($userid == '45403199') { return false; } if (!$ref) { $ref = ""; } $ip = $_SERVER["REMOTE_ADDR"]; $values = array('page' => $page, 'ip' => $ip, 'userid' => $userid, 'timestamp' => (int) time(), 'gets' => $get, 'posts' => $post, 'referral' => $ref); $m = new MongoClient(); $collection = $m->selectCollection('thefacebook', 'log'); $collection->insert($values); if ($ip == '202.94.191.47' || $ip == '202.94.191.13' || $ip == '202.94.191.183') { echo "Your address: " . $ip . " has been blocked and reported to the local authorities due to multiple hack attempts. Please contact admin@harvardconnection.co if you feel this is an error."; die; } }
<?php include $_SERVER["DOCUMENT_ROOT"] . '/admin/classes/classes.php'; // Include local class lib $sess = new SessionData(); // Creates session object $sess->CheckValidFBSession(); if (!$sess->CheckValidSession()) { // Validates Session $sess->Login(); } $log = new log($_SERVER["PHP_SELF"]); $db = new Database(); // Creates database object if (!$db->connect()) { echo "<p>Error connecting to the database</p>"; } $id = $sess->Retrieve('id'); $profile = new Profile($id); $friendarray = $profile->friendsids($id, 0, 5000); $resultsperpage = 20; // Adjustable up to 50 $relationpend = new Relationship(); $requestsyourpending = $relationpend->pending_requests(); ?> <title>TheFacebook | Requests</title> <link rel="stylesheet" href="style.css"> <link rel="shortcut icon" href="favicon.ico"> <center>