Skip to content

Commit 2b68156

Browse files
authoredMar 31, 2017
Create headeur.php
1 parent 6dde739 commit 2b68156

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
 

‎headeur.php

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
if (!isset($_SESSION['debug'])) {
3+
$_SESSION['debug'] = True;
4+
$_SESSION['debug'] = False;
5+
}
6+
7+
include('RevCrypt.inc.php');
8+
$crypto = new RevCrypt($_COOKIE['PHPSESSID'].$_COOKIE['PHPSESSID']);
9+
if ($_SESSION['debug']) {print "<br>userCode: ".$_COOKIE['username']."/".$_COOKIE['password'];};
10+
if ($_SESSION['debug']) {print "<br>userdecode: ".$crypto->decode($_COOKIE['Username']).'/'. $crypto->decode($_COOKIE['Password']);};
11+
12+
$conn = mysqli_connect("10.236.245.96", $crypto->decode($_COOKIE['Username']), $crypto->decode($_COOKIE['Password']), "CloudSecu")
13+
or die (
14+
print "<script type='text/javascript'>document.location.replace('login.php');</script>"
15+
);
16+
17+
include 'function.inc.php';
18+
include 'template/Headeur.html';
19+
?>
20+

0 commit comments

Comments
 (0)
Please sign in to comment.