forked from davidgeorgiev/DYH
-
Notifications
You must be signed in to change notification settings - Fork 0
/
you_are_not_friends.php
34 lines (29 loc) · 1.03 KB
/
you_are_not_friends.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
session_start();
echo '<html lang="en" class="no-js">';
include "head.php";
include "config.php";
$query = $_SERVER['PHP_SELF'];
$path = pathinfo( $query );
$MyCurrentPhpPage = $path['basename'];
if (($MyCurrentPhpPage != "index.php") && ($MyCurrentPhpPage != "acc_added.php")){
if (Get_Logged_users_id() == 0){
header('Location: index.php') and exit;
}
}
?>
<?php
include "start_check.php";
// if ($_SESSION['page'] != 'check_width'){
// header('Location: check_width_and_send_to.php?user='.$username.'&page='.$current_page_is) and exit;
// }
$_SESSION['page'] = "other";
?>
<body>
<div class="container">
<?php include "main_menu.php";
?>
<div id = "my_page" style = "background: rgba(243, 243, 243, 0.4);">
<h1 id = "urlTitleForm">Не можете да видите това съдържание понеже не сте приятели с <?php $SecuredUserInfo = ReturnALLUserInfoByIdOrByName($_GET["secured_user"]); echo $SecuredUserInfo["FirstName"]." ".$SecuredUserInfo["LastName"];?></h1>
</div>
</body>