-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
39 lines (34 loc) · 915 Bytes
/
index.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
<?php
/******************************
* EQdkp
* Copyright 2002-2003
* Licensed under the GNU GPL. See COPYING for full terms.
* ------------------
* index.php
* Began: Mon December 23 2002
*
* $Id: index.php 46 2007-06-19 07:29:11Z tsigo $
*
******************************/
define('EQDKP_INC', true);
$eqdkp_root_path = './';
include_once($eqdkp_root_path . 'common.php');
$mode = ( isset($_GET['mode']) ) ? $_GET['mode'] : 'redirect';
switch ( $mode )
{
case 'redirect':
// Fall through
default:
if ( isset($eqdkp->config['start_page']) )
{
$start_page = preg_replace('#\?' . URI_SESSION . '=([A-Za-z0-9]{32})?#', $SID, $eqdkp->config['start_page']);
redirect($start_page);
}
else
{
redirect('viewnews.php' . $SID);
}
break;
}
// Thassit
?>