forked from filipi/onde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcleanUp.php
44 lines (34 loc) · 931 Bytes
/
cleanUp.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
35
36
37
38
39
40
41
42
43
44
<?PHP
$headerTitle = "Cleaning all open session...";
error_reporting(1);
ini_set('session.save_path',"./session_files");
//session_save_path('./session_files');
session_name('onde');
session_start();
$PHPSESSID = $_GET[PHPSESSID];
if($_SESSION['h_log'] && $_SESSION['matricula']){
session_destroy();
}
$command = "rm -rfv ./session_files/simulation" . $_GET['PHPSESSID'];
exec($command);
include "./include/page_header.inc";
echo "<PRE>\n";
passthru("rm -rf session_files/s*", $erro);
echo "</PRE>\n";
echo "
<!-- Retorna à página de LOGIN -->
<meta HTTP-EQUIV='Refresh' CONTENT='1; URL=./frm_login.php' TARGET='_self'>
<div class=coment>
<center>
<img src=./images/application-exit";
if (stripos("_" . $_theme, 'fancy') || stripos("_" . $_theme, 'tron')) echo "-glow";
echo ".png>
<br>
<b>Limpando sessões abertas...</b>
<br>
Por favor, aguarde...
</center>
</div>
";
include "./include/page_footer.inc";
?>