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 pathCombatReport.php
55 lines (42 loc) · 1.7 KB
/
CombatReport.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
50
51
52
53
54
55
<?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) <ireadigos@gmail.com> Redesigned of xNova Revolution 6.1
* @author web: http://www.bnarvaez.com
* @link: http://www.xnovarev.com
* @package 2Moons
* @author Slaver <slaver7@gmail.com>
* @copyright 2009 Lucky <douglas@crockford.com> (XGProyecto)
* @copyright 2011 Slaver <slaver7@gmail.com> (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('AJAX', true );
define('ROOT_PATH', str_replace('\\', '/',dirname(__FILE__)).'/');
require(ROOT_PATH . 'includes/common.php');
require(ROOT_PATH . 'includes/classes/class.template.php');
if(isset($_SESSION['USER']))
$LANG->setUser($_SESSION['USER']['lang']);
else
$LANG->GetLangFromBrowser();
$LANG->includeLang(array('FLEET', 'TECH'));
$RID = request_var('raport', '');
/*if(file_exists(ROOT_PATH.'raports/raport_'.$RID.'.php'))
require_once(ROOT_PATH.'raports/raport_'.$RID.'.php'); OLD CODE*/
$template = new template();
#$template->isPopup(true); viejo
if(file_exists(ROOT_PATH.'raports/raport_'.$RID.'.php')) {
require_once(ROOT_PATH.'raports/raport_'.$RID.'.php');
} else {
$template->message($LNG['sys_raport_not_found'], 0, false, true);
exit;
}
$template->isPopup(true);
$template->assign_vars(array('raport' => $raport));
$template->show('raport.tpl');
?>