mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-26 14:36:06 +00:00
report for admin
need foldert notice not upload the folder as notice I try to do
This commit is contained in:
@@ -2,30 +2,58 @@
|
|||||||
#################################################################################
|
#################################################################################
|
||||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||||
## --------------------------------------------------------------------------- ##
|
## --------------------------------------------------------------------------- ##
|
||||||
## Filename msg.tpl ##
|
## Filename report.tpl ##
|
||||||
## Developed by: Dzoki ##
|
## Developed by: Armando ##
|
||||||
## License: TravianX Project ##
|
## License: TravianX Project ##
|
||||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
## Copyright: TravianX (c) 2010-2014. All rights reserved. ##
|
||||||
## ##
|
## ##
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
include_once("../GameEngine/Generator.php");
|
||||||
$sql = "SELECT * FROM ".TB_PREFIX."ndata WHERE id = ".$_GET['bid']."";
|
include_once("../GameEngine/Technology.php");
|
||||||
|
include_once("../GameEngine/Message.php");
|
||||||
|
if ($_GET['bid']){
|
||||||
|
$rep = $database->getNotice4($_GET['bid']);
|
||||||
|
}else
|
||||||
|
$sql = "SELECT * FROM ".TB_PREFIX."ndata ORDER BY time DESC ";
|
||||||
$result = mysql_query($sql);
|
$result = mysql_query($sql);
|
||||||
$rep = mysql_fetch_assoc($result);
|
$rep1 = $database->mysql_fetch_all($result);
|
||||||
if($rep)
|
if($rep1)
|
||||||
{
|
{
|
||||||
$att = $database->getUserArray($rep['uid'],1);
|
//$att = $database->getUserArray($rep1['uid'],1);
|
||||||
?>
|
?>
|
||||||
|
<link href="../<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7c" rel="stylesheet" type="text/css">
|
||||||
|
<link href="../<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
|
||||||
|
<link href="../<?php echo GP_LOCATE; ?>travian.css?e21d2" rel="stylesheet" type="text/css">
|
||||||
|
<link href="../<?php echo GP_LOCATE; ?>lang/en/lang.css?e21d2" rel="stylesheet" type="text/css">
|
||||||
<h1>Under Construction</h1>
|
<h1>Under Construction</h1>
|
||||||
<div id="content" class="reports" style="padding: 0;">
|
<div id="content" class="reports" style="padding: 0;">
|
||||||
<?php
|
<?php
|
||||||
include("report/".$rep['ntype'].".tpl");
|
include("Notice/all.tpl");
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
if($rep)
|
||||||
|
{ ?>
|
||||||
|
<link href="../<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7c" rel="stylesheet" type="text/css">
|
||||||
|
<link href="../<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
|
||||||
|
<link href="../<?php echo GP_LOCATE; ?>travian.css?e21d2" rel="stylesheet" type="text/css">
|
||||||
|
<link href="../<?php echo GP_LOCATE; ?>lang/en/lang.css?e21d2" rel="stylesheet" type="text/css">
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<span class="b">reporte de</span>: <?php echo $database->getUserField($rep[0]['uid'],'username',0);?><br />
|
||||||
|
|
||||||
|
<div id="content" class="reports">
|
||||||
|
<h1>Reporte</h1>
|
||||||
|
<?php
|
||||||
|
$type = $rep[0]['ntype'];
|
||||||
|
include("Notice/".$type.".tpl");
|
||||||
|
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo "Report ID ".$_GET['bid']." doesn't exist!";
|
echo "Report ID ".$_GET['bid']." doesn't exist!";
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user