-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtop.php
More file actions
26 lines (20 loc) · 764 Bytes
/
Copy pathtop.php
File metadata and controls
26 lines (20 loc) · 764 Bytes
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
<?php
/*
* Copyright (c) 2017 António 'Tó' Godinho <to@isec.pt>.
* This program is free software; Distributed under the terms of the GNU GPL v3.
*/
$starttime = microtime();
$startarray = explode(" ", $starttime);
$starttime = $startarray[1] + $startarray[0];
include './config.php';
include './functions.php';
include './colours.php';
if (isset($_COOKIE['ossecdbjs']) && $glb_ossecdb[$_COOKIE['ossecdbjs']] <> '' && file_exists('./' . $glb_ossecdb[$_COOKIE['ossecdbjs']])) {
# If a database cookie is set AND it exists in $glb_ossecdb[] AND the database file exists
$useossecdb = './' . $glb_ossecdb[$_COOKIE['ossecdbjs']];
} else {
# Otherwise just use the main one
$useossecdb = './' . $glb_ossecdb['Main'];
}
include $useossecdb;
?>