This repository has been archived by the owner on Oct 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathroot.php
49 lines (42 loc) · 1.9 KB
/
root.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
45
46
47
48
49
<?php
/**
_ \_/ |\ | /¯¯\ \ / /\ |¯¯) |_¯ \ / /¯¯\ | | |´¯|¯` | /¯¯\ |\ |6
¯ /¯\ | \| \__/ \/ /--\ |¯¯\ |__ \/ \__/ |__ \_/ | | \__/ | \|Core Redesigned.
* @author: Copyright (C) 2011 by Brayan Narvaez (Prinick) developer of xNova Revolution
* @author: Copyright (C) 2017 by Yamil Readigos Hurtado (YamilRH) <[email protected]> Redesigned of xNova Revolution 6.1
* @author web: http://www.bnarvaez.com
* @link: http://www.xnovarev.com
* @package 2Moons
* @author Slaver <[email protected]>
* @copyright 2009 Lucky <[email protected]> (XGProyecto)
* @copyright 2011 Slaver <[email protected]> (Fork/2Moons)
* @license http://www.gnu.org/licenses/gpl.html GNU GPLv3 License
* @version 1.3 (2011-01-21)
* @link http://code.google.com/p/2moons/
* Please do not remove the credits
*/
define('INSIDE' , true);
define('ROOT' , true);
define('IN_ADMIN' , true);
define('ROOT_PATH' , str_replace('\\', '/',dirname(__FILE__)).'/');
require(ROOT_PATH . 'includes/common.php');
$LANG->includeLang(array('ADMIN'));
if(isset($_REQUEST['admin_pw']))
{
$login = $db->uniquequery("SELECT `id`, `username`, `dpath`, `authlevel`, `id_planet` FROM ".USERS." WHERE `id` = '1' AND `password` = '".md5($_REQUEST['admin_pw'])."';");
if(isset($login)) {
session_start();
$SESSION = new Session();
$SESSION->CreateSession($login['id'], $login['username'], $login['id_planet'], $UNI, $login['authlevel'], $login['dpath']);
$_SESSION['admin_login'] = md5($_REQUEST['admin_pw']);
redirectTo('admin.php');
}
}
$template = new template();
$template->assign_vars(array(
'adm_login' => $LNG['adm_login'],
'adm_password' => $LNG['adm_password'],
'adm_absenden' => $LNG['adm_absenden'],
));
$template->show('adm/LoginPage.tpl');
?>