mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
admin panel fix
This commit is contained in:
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename editAdditional.tpl ##
|
||||
## Developed by: ronix ##
|
||||
## License: TravianZ Project ##
|
||||
## Copyright: TravianZ (c) 2010-2014. All rights reserved. ##
|
||||
## ##
|
||||
#################################################################################
|
||||
if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
|
||||
$id = $_GET['uid'];
|
||||
$user = $database->getUserArray($id,1);
|
||||
$dur=$user['protect']-time();
|
||||
$protect=0;
|
||||
if($dur>43200) {
|
||||
$protect=intval($dur/86400)+1;
|
||||
}
|
||||
if(isset($id))
|
||||
{
|
||||
?>
|
||||
<form action="../GameEngine/Admin/Mods/additional.php" method="POST">
|
||||
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
|
||||
<input type="hidden" name="id" value="<?php echo $id; ?>" />
|
||||
<br />
|
||||
<table id="profile" cellpadding="0" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Edit Additional Info For: <a href="admin.php?p=player&uid=<?php echo $user['id']; ?>"><?php echo $user['username']; ?></a></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
Change Access
|
||||
</td>
|
||||
<td>
|
||||
<select name="access" class="dropdown">
|
||||
<option value="0" <?php if($user['access'] == 0) { echo 'selected="selected"'; } else { echo ''; } ?>>Banned</option>
|
||||
<option value="2" <?php if($user['access'] == 2) { echo 'selected="selected"'; } else { echo ''; } ?>>Normal User</option>
|
||||
<option value="8" <?php if($user['access'] == 8) { echo 'selected="selected"'; } else { echo ''; } ?>>Multihunter</option>
|
||||
<option value="9" <?php if($user['access'] == 9) { echo 'selected="selected"'; } else { echo ''; } ?>>Admin</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Edit Gold</td>
|
||||
<td>
|
||||
<input class="give_gold" name="gold" value="<?php echo $user['gold'];?>"> <img src="../img/admin/gold.gif">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sitter 1</td>
|
||||
<td>
|
||||
<input class="fm" name="sitter1" value="<?php echo $user['sit1']; ?>"><br />
|
||||
<?php
|
||||
$sitter1 = $database->getUserArray($user['sit1'], 1);
|
||||
if($user['sit1'] ==0)
|
||||
{
|
||||
echo 'No Sitter';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<a href="admin.php?p=player&uid='.$sitter1['id'].'">'.$sitter1['username'].'</a>';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sitter 2</td>
|
||||
<td>
|
||||
<input class="fm" name="sitter2" value="<?php echo $user['sit2']; ?>"><br />
|
||||
<?php
|
||||
$sitter2 = $database->getUserArray($user['sit2'], 1);
|
||||
if($user['sit2'] ==0)
|
||||
{
|
||||
echo 'No Sitter';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<a href="admin.php?p=player&uid='.$sitter2['id'].'">'.$sitter2['username'].'</a>';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Give Protection For</td>
|
||||
<td>
|
||||
<input class="fm" name="protect" value="<?php echo $protect;?>" style="width: 60%;"> Days
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Edit Culture Points</td>
|
||||
<td>
|
||||
<input class="fm" name="cp" value="<?php echo round($user['cp'], 0); ?>" style="width: 60%;"> Points
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Edit Attack Points</td>
|
||||
<td>
|
||||
<input class="fm" name="off" value="<?php echo $user['ap']; ?>" style="width: 60%;"> Points
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Edit Defence Points</td>
|
||||
<td>
|
||||
<input class="fm" name="def" value="<?php echo $user['dp']; ?>" style="width: 60%;"> Points
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Edit Resources Raided</td>
|
||||
<td>
|
||||
<input class="fm" name="res" value="<?php echo $user['RR']; ?>" style="width: 60%;"> Points
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Total Attack Points</td>
|
||||
<td>
|
||||
<input class="fm" name="ooff" value="<?php echo $user['apall']; ?>" style="width: 60%;"> Points
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Total Defence Points</td>
|
||||
<td>
|
||||
<input class="fm" name="odef" value="<?php echo $user['dpall']; ?>" style="width: 60%;"> Points
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<center><input type="image" value="submit" src="../img/admin/b/ok1.gif"></center>
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
include("404.tpl");
|
||||
}
|
||||
?>
|
||||
@@ -14,7 +14,12 @@ if(isset($id))
|
||||
{
|
||||
include("../GameEngine/Ranking.php");
|
||||
$varmedal = $database->getProfileMedal($id);
|
||||
$user = $database->getUserArray($id,1);
|
||||
$displayarray = $database->getUserArray($id,1);
|
||||
$user=$displayarray;
|
||||
$profiel="".$user['desc1']."".md5('skJkev3')."".$user['desc2']."";
|
||||
$separator="../";
|
||||
require("../Templates/Profile/medal.php");
|
||||
$profiel=explode("".md5('skJkev3')."", $profiel);
|
||||
$varray = $database->getProfileVillages($id);
|
||||
$refreshicon = "<img src=\"data:image/png;base64,
|
||||
iVBORw0KGgoAAAANSUhEUgAAAAkAAAAKCAIAAADpZ+PpAAAAAXNSR0IArs4c6QAAAARnQU1BAACx
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<table id="member">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Additional Information</th>
|
||||
<th colspan="2">Additional Information <a href='admin.php?p=editAdditional&uid=<?php echo $id; ?>'><img src="../img/admin/edit.gif" title="Edit Player Additional Info"></a></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -25,46 +25,16 @@
|
||||
{
|
||||
echo "<b>Administrator</b>";
|
||||
}
|
||||
?> <a href="admin.php?p=editAccess&uid=<?php echo $_GET['uid']; ?>"><img src="../img/admin/edit.gif" title="Give Gold"></a>
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gold</td>
|
||||
<td><img src="../img/admin/gold.gif"> <?php echo $user['gold']; ?> <a href='admin.php?p=player&uid=<?php echo $id; ?>&g'><img src="../img/admin/edit.gif" title="Give Gold"></a>
|
||||
</tr>
|
||||
<?php
|
||||
if($_SESSION['access'] == ADMIN)
|
||||
{
|
||||
if($_GET['g'] == 'ok')
|
||||
{
|
||||
echo '';
|
||||
}
|
||||
else
|
||||
{
|
||||
if(isset($_GET['g']))
|
||||
{ ?>
|
||||
<form action="../GameEngine/Admin/Mods/gold_1.php" method="POST">
|
||||
<input type="hidden" name="id" value="<?php echo $id; ?>">
|
||||
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
|
||||
<tr>
|
||||
<td>Give how much Gold?</td>
|
||||
<td>
|
||||
<input class="give_gold" name="gold" value="0">
|
||||
<input type="image" src="../gpack/travian_default/img/new/tick.png" value="submit">
|
||||
<a href="admin.php?p=player&uid=<?php echo $id; ?>"><img src="../img/admin/del.gif" title="Cancel"></a></td>
|
||||
</tr>
|
||||
</form><?php
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td><img src="../img/admin/gold.gif"> <?php echo $user['gold']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sitter 1</td>
|
||||
<td><a href="?p=editSitter&uid=<?php echo $user['id']; ?>"><img src="../img/admin/edit.gif" title="Edit Sitters"></a>
|
||||
<td>
|
||||
<?php
|
||||
if($user['sit1'] >= 1)
|
||||
{
|
||||
@@ -79,7 +49,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sitter 2</td>
|
||||
<td><a href="?p=editSitter&uid=<?php echo $user['id']; ?>"><img src="../img/admin/edit.gif" title="Edit Sitters"></a>
|
||||
<td>
|
||||
<?php
|
||||
if($user['sit2'] >= 1)
|
||||
{
|
||||
@@ -92,10 +62,6 @@
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Beginners Protection</td>
|
||||
<td>
|
||||
@@ -122,120 +88,36 @@
|
||||
echo "<font color=\"blue\"> $timetoecho</font>";
|
||||
}
|
||||
}
|
||||
/*if(date('d.m.Y H:i',$user['protect']) == '01.01.1970 00:00')
|
||||
{
|
||||
echo "Not enabled!</tr></th>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$ends = date('d.m.Y H:i',$user['protect']+3600*2);
|
||||
$now = date('d.m.Y H:i');
|
||||
if($now>$ends)
|
||||
{
|
||||
echo "<font color=\"blue\">$ends</font>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<font color=\"red\">NO!</font>";
|
||||
}
|
||||
} */
|
||||
?>
|
||||
<a href="admin.php?p=editProtection&uid=<?php echo $id; ?>"><img src="../img/admin/edit.gif" title="Give Player Protection"></a></td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Culture Points</td>
|
||||
<td><a href='admin.php?p=player&uid=<?php echo $id; ?>&cp'><img src="../img/admin/edit.gif" title="Edit Culture Points"></a>
|
||||
<?php
|
||||
echo round($user['cp'], 0);
|
||||
if($_SESSION['access'] == ADMIN)
|
||||
{ ?>
|
||||
<a href='admin.php?p=player&uid=<?php echo $id; ?>&cp'><?php
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td><?php echo round($user['cp'], 0);?></td>
|
||||
</tr>
|
||||
<?php
|
||||
if($_SESSION['access'] == ADMIN)
|
||||
{
|
||||
if($_GET['cp'] == 'ok')
|
||||
{
|
||||
echo '';
|
||||
}
|
||||
else
|
||||
{
|
||||
if(isset($_GET['cp']))
|
||||
{ ?>
|
||||
<form action="../GameEngine/Admin/Mods/cp.php" method="POST">
|
||||
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
|
||||
<input type="hidden" name="id" value="<?php echo $id; ?>">
|
||||
<tr>
|
||||
<td>Add how many CP?</td>
|
||||
<td>
|
||||
<input class="give_gold" name="cp" value="0">
|
||||
<input type="image" src="../gpack/travian_default/img/new/tick.png" value="submit">
|
||||
<a href="admin.php?p=player&uid=<?php echo $id; ?>"><img src="../img/admin/del.gif" title="Cancel"></a>
|
||||
</td>
|
||||
</tr>
|
||||
</form><?php
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td>Last Activity</td>
|
||||
<td>
|
||||
<?php
|
||||
echo ''.date('d.m.Y H:i',$user['timestamp']+3600*2).'';
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td><?php echo date('d.m.Y H:i',$user['timestamp']+3600*2);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Attack Points ("This "Week")</td>
|
||||
<td><a href="admin.php?p=editWeek&uid=<?php echo $id; ?>"><img src="../img/admin/edit.gif" title="Edit Weekly Points"></a>
|
||||
<?php
|
||||
echo $user['ap'];
|
||||
?>
|
||||
</td>
|
||||
<td><?php echo $user['ap'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Defence Points ("This Week")</td>
|
||||
<td><a href="admin.php?p=editWeek&uid=<?php echo $id; ?>"><img src="../img/admin/edit.gif" title="Edit Weekly Points"></a>
|
||||
<?php
|
||||
echo $user['dp'];
|
||||
?>
|
||||
</td>
|
||||
<td><?php echo $user['dp'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Resources Raided ("This Week")</td>
|
||||
<td><a href="admin.php?p=editWeek&uid=<?php echo $id; ?>"><img src="../img/admin/edit.gif" title="Edit Weekly Points"></a>
|
||||
<?php
|
||||
echo $user['RR'];
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td><?php echo $user['RR'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Total Attack Points</td>
|
||||
<td><a href="admin.php?p=editOverall&uid=<?php echo $id; ?>"><img src="../img/admin/edit.gif" title="Edit Overall Points"></a>
|
||||
<?php
|
||||
echo $user['apall'];
|
||||
?>
|
||||
</td>
|
||||
<td><?php echo $user['apall'];?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Total Defence Points</td>
|
||||
<td><a href="admin.php?p=editOverall&uid=<?php echo $id; ?>"><img src="../img/admin/edit.gif" title="Edit Overall Points"></a>
|
||||
<?php
|
||||
echo $user['dpall'];
|
||||
?>
|
||||
</td>
|
||||
<td><?php echo $user['dpall'];?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -17,7 +17,7 @@
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<th>Rank</th>
|
||||
<td>????<?php /* echo $ranking->searchRank($user['id'], "rank");*/ ?></td>
|
||||
<td><?php $ranking->procRankArray();echo $ranking->getUserRank($user['id']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Tribe</th>
|
||||
@@ -181,6 +181,7 @@
|
||||
elseif($quest ==34) {$questname = "3 settlers"; }
|
||||
elseif($quest ==35) {$questname = "New Village"; }
|
||||
elseif($quest ==36) {$questname = "Build a Wall/Palisade"; }
|
||||
elseif($quest >=37) {$questname = "Finish"; }
|
||||
else { $questname = "Unknown"; }
|
||||
$quesst = $quest;
|
||||
if($quest > 18){
|
||||
@@ -258,13 +259,13 @@
|
||||
<tr>
|
||||
<td colspan="2" class="desc2">
|
||||
<div class="desc2div">
|
||||
<center><?php echo nl2br($user['desc1']); ?></center>
|
||||
<center><?php echo nl2br($profiel[0]); ?></center>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<td class="desc1">
|
||||
<center><?php echo nl2br($user['desc2']); ?></center>
|
||||
<center><?php echo nl2br($profiel[1]); ?></center>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@@ -57,6 +57,53 @@ $up_avl = $latest - $ver ;
|
||||
<meta http-equiv="imagetoolbar" content="no">
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript">
|
||||
init_local();
|
||||
function getMouseCoords(e) {
|
||||
var coords = {};
|
||||
if (!e) var e = window.event;
|
||||
if (e.pageX || e.pageY) {
|
||||
coords.x = e.pageX;
|
||||
coords.y = e.pageY;
|
||||
}
|
||||
else if (e.clientX || e.clientY) {
|
||||
coords.x = e.clientX + document.body.scrollLeft
|
||||
+ document.documentElement.scrollLeft;
|
||||
coords.y = e.clientY + document.body.scrollTop
|
||||
+ document.documentElement.scrollTop;
|
||||
}
|
||||
return coords;
|
||||
}
|
||||
|
||||
function med_mouseMoveHandler(e, desc_string){
|
||||
var coords = getMouseCoords(e);
|
||||
med_showDescription(coords, desc_string);
|
||||
}
|
||||
|
||||
function med_closeDescription(){
|
||||
var layer = document.getElementById("medal_mouseover");
|
||||
layer.className = "hide";
|
||||
}
|
||||
|
||||
function init_local(){
|
||||
med_init();
|
||||
}
|
||||
|
||||
function med_init(){
|
||||
layer = document.createElement("div");
|
||||
layer.id = "medal_mouseover";
|
||||
layer.className = "hide";
|
||||
document.body.appendChild(layer);
|
||||
}
|
||||
|
||||
function med_showDescription(coords, desc_string){
|
||||
var layer = document.getElementById("medal_mouseover");
|
||||
layer.style.top = (coords.y + 25)+ "px";
|
||||
layer.style.left = (coords.x - 20) + "px";
|
||||
layer.className = "";
|
||||
layer.innerHTML = desc_string;
|
||||
}
|
||||
</script>
|
||||
<script language="javascript">
|
||||
function aktiv() {this.srcElement.className='fl1'; }
|
||||
function inaktiv() {event.srcElement.className='fl2'; }
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
[20-Jan-2014 13:36:23 Europe/Bucharest] PHP Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /home/outlet/public_html/shadowss.ro/travian/Admin/Templates/report.tpl on line 14
|
||||
[20-Jan-2014 14:39:18 Europe/Bucharest] PHP Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /home/outlet/public_html/shadowss.ro/travian/Admin/Templates/report.tpl on line 14
|
||||
[23-Jan-2014 14:08:26 Europe/Bucharest] PHP Fatal error: Cannot redeclare class MYSQL_DB in /home/outlet/public_html/shadowss.ro/travian/GameEngine/Database/db_MYSQL.php on line 19
|
||||
[23-Jan-2014 14:08:27 Europe/Bucharest] PHP Fatal error: Cannot redeclare class MYSQL_DB in /home/outlet/public_html/shadowss.ro/travian/GameEngine/Database/db_MYSQL.php on line 19
|
||||
[23-Jan-2014 14:08:28 Europe/Bucharest] PHP Fatal error: Cannot redeclare class MYSQL_DB in /home/outlet/public_html/shadowss.ro/travian/GameEngine/Database/db_MYSQL.php on line 19
|
||||
[23-Jan-2014 14:08:28 Europe/Bucharest] PHP Fatal error: Cannot redeclare class MYSQL_DB in /home/outlet/public_html/shadowss.ro/travian/GameEngine/Database/db_MYSQL.php on line 19
|
||||
[23-Jan-2014 14:08:28 Europe/Bucharest] PHP Fatal error: Cannot redeclare class MYSQL_DB in /home/outlet/public_html/shadowss.ro/travian/GameEngine/Database/db_MYSQL.php on line 19
|
||||
[23-Jan-2014 14:08:28 Europe/Bucharest] PHP Fatal error: Cannot redeclare class MYSQL_DB in /home/outlet/public_html/shadowss.ro/travian/GameEngine/Database/db_MYSQL.php on line 19
|
||||
[23-Jan-2014 14:09:07 Europe/Bucharest] PHP Fatal error: Cannot redeclare class MYSQL_DB in /home/outlet/public_html/shadowss.ro/travian/GameEngine/Database/db_MYSQL.php on line 19
|
||||
[23-Jan-2014 14:09:08 Europe/Bucharest] PHP Fatal error: Cannot redeclare class MYSQL_DB in /home/outlet/public_html/shadowss.ro/travian/GameEngine/Database/db_MYSQL.php on line 19
|
||||
[23-Jan-2014 14:09:29 Europe/Bucharest] PHP Fatal error: Cannot redeclare class MYSQL_DB in /home/outlet/public_html/shadowss.ro/travian/GameEngine/Database/db_MYSQL.php on line 19
|
||||
[23-Jan-2014 14:10:05 Europe/Bucharest] PHP Fatal error: Cannot redeclare class MYSQL_DB in /home/outlet/public_html/shadowss.ro/travian/GameEngine/Database/db_MYSQL.php on line 19
|
||||
[23-Jan-2014 14:10:05 Europe/Bucharest] PHP Fatal error: Cannot redeclare class MYSQL_DB in /home/outlet/public_html/shadowss.ro/travian/GameEngine/Database/db_MYSQL.php on line 19
|
||||
[23-Jan-2014 14:10:05 Europe/Bucharest] PHP Fatal error: Cannot redeclare class MYSQL_DB in /home/outlet/public_html/shadowss.ro/travian/GameEngine/Database/db_MYSQL.php on line 19
|
||||
[23-Jan-2014 14:10:06 Europe/Bucharest] PHP Fatal error: Cannot redeclare class MYSQL_DB in /home/outlet/public_html/shadowss.ro/travian/GameEngine/Database/db_MYSQL.php on line 19
|
||||
[23-Jan-2014 14:10:06 Europe/Bucharest] PHP Fatal error: Cannot redeclare class MYSQL_DB in /home/outlet/public_html/shadowss.ro/travian/GameEngine/Database/db_MYSQL.php on line 19
|
||||
[23-Jan-2014 14:10:22 Europe/Bucharest] PHP Parse error: syntax error, unexpected '<' in /home/outlet/public_html/shadowss.ro/travian/Admin/Templates/playerinfo.tpl on line 185
|
||||
[23-Jan-2014 14:10:29 Europe/Bucharest] PHP Parse error: syntax error, unexpected '<' in /home/outlet/public_html/shadowss.ro/travian/Admin/Templates/playerinfo.tpl on line 185
|
||||
[23-Jan-2014 14:10:30 Europe/Bucharest] PHP Parse error: syntax error, unexpected '<' in /home/outlet/public_html/shadowss.ro/travian/Admin/Templates/playerinfo.tpl on line 185
|
||||
[23-Jan-2014 14:10:33 Europe/Bucharest] PHP Parse error: syntax error, unexpected '<' in /home/outlet/public_html/shadowss.ro/travian/Admin/Templates/playerinfo.tpl on line 185
|
||||
[23-Jan-2014 14:12:13 Europe/Bucharest] PHP Parse error: syntax error, unexpected '<' in /home/outlet/public_html/shadowss.ro/travian/Admin/Templates/playerinfo.tpl on line 185
|
||||
[23-Jan-2014 14:12:14 Europe/Bucharest] PHP Parse error: syntax error, unexpected '<' in /home/outlet/public_html/shadowss.ro/travian/Admin/Templates/playerinfo.tpl on line 185
|
||||
[23-Jan-2014 14:12:16 Europe/Bucharest] PHP Parse error: syntax error, unexpected '<' in /home/outlet/public_html/shadowss.ro/travian/Admin/Templates/playerinfo.tpl on line 185
|
||||
[23-Jan-2014 14:12:17 Europe/Bucharest] PHP Parse error: syntax error, unexpected '<' in /home/outlet/public_html/shadowss.ro/travian/Admin/Templates/playerinfo.tpl on line 185
|
||||
[23-Jan-2014 14:12:17 Europe/Bucharest] PHP Parse error: syntax error, unexpected '<' in /home/outlet/public_html/shadowss.ro/travian/Admin/Templates/playerinfo.tpl on line 185
|
||||
[23-Jan-2014 14:12:18 Europe/Bucharest] PHP Parse error: syntax error, unexpected '<' in /home/outlet/public_html/shadowss.ro/travian/Admin/Templates/playerinfo.tpl on line 185
|
||||
[23-Jan-2014 14:12:19 Europe/Bucharest] PHP Parse error: syntax error, unexpected '<' in /home/outlet/public_html/shadowss.ro/travian/Admin/Templates/playerinfo.tpl on line 185
|
||||
[23-Jan-2014 14:12:19 Europe/Bucharest] PHP Parse error: syntax error, unexpected '<' in /home/outlet/public_html/shadowss.ro/travian/Admin/Templates/playerinfo.tpl on line 185
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename cp.php ##
|
||||
## Developed by: aggenkeech ##
|
||||
## License: TravianX Project ##
|
||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
include_once("../../config.php");
|
||||
|
||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
||||
mysql_select_db(SQL_DB);
|
||||
|
||||
$id = $_POST['id'];
|
||||
$admid = $_POST['admid'];
|
||||
|
||||
//$sql = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = ".$admid."");
|
||||
//$access = mysql_fetch_array($sql);
|
||||
//$sessionaccess = $access['access'];
|
||||
if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
|
||||
if($_SESSION['access'] != ADMIN) die("<h1><font color=\"red\">Access Denied: You are not Admin!</font></h1>");
|
||||
|
||||
$access = $_POST['access'];
|
||||
$dur = $_POST['protect'] * 86400;
|
||||
$protection = (time() + $dur);
|
||||
|
||||
mysql_query("UPDATE ".TB_PREFIX."users SET
|
||||
access = ".$access.",
|
||||
gold = ".$_POST['gold'].",
|
||||
sit1 = '".$_POST['sitter1']."',
|
||||
sit2 = '".$_POST['sitter2']."',
|
||||
protect = '".$protection."',
|
||||
cp = ".$_POST['cp'].",
|
||||
ap = '".$_POST['off']."',
|
||||
dp = '".$_POST['def']."',
|
||||
RR = '".$_POST['res']."',
|
||||
apall = '".$_POST['ooff']."',
|
||||
dpall = '".$_POST['odef']."'
|
||||
WHERE id = ".$id."") or die(mysql_error());
|
||||
|
||||
header("Location: ../../../Admin/admin.php?p=player&uid=".$id."");
|
||||
?>
|
||||
@@ -1,10 +1,11 @@
|
||||
<?php
|
||||
//gp link
|
||||
if($session->gpack == null || GP_ENABLE == false) {
|
||||
$gpack= GP_LOCATE;
|
||||
} else {
|
||||
$gpack= $session->gpack;
|
||||
}
|
||||
$separator=isset($separator)? $separator:"";
|
||||
if($session->gpack == null || GP_ENABLE == false) {
|
||||
$gpack= $separator.GP_LOCATE;
|
||||
} else {
|
||||
$gpack= $separator.$session->gpack;
|
||||
}
|
||||
|
||||
|
||||
//de bird
|
||||
|
||||
@@ -487,6 +487,28 @@ td.row2 {background-color:#FEFEFE; }
|
||||
#show_gp_ok_message {display:none;}
|
||||
#show_gp_error_message {display:inline;}
|
||||
|
||||
#medal_mouseover {
|
||||
background-color: #F5F5F5;
|
||||
border: 1px solid #BBBBBB;
|
||||
padding: 2px 5px;
|
||||
position: absolute;
|
||||
width: 250px;
|
||||
z-index: 999;
|
||||
}
|
||||
#medal_mouseover table {
|
||||
background: none repeat scroll 0 0 transparent;
|
||||
}
|
||||
#medal_mouseover table th, #medal_mouseover table td {
|
||||
background: none repeat scroll 0 0 transparent;
|
||||
}
|
||||
#medal_mouseover table th {
|
||||
padding-right: 10px;
|
||||
width: 50px;
|
||||
}
|
||||
.hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Laenderflaggen */
|
||||
.dflags1 {position:relative; float:right; text-align:center; font-size:6pt; color:#FFF; padding-left:1px; padding-right:1px; padding-top:1px;}
|
||||
.dflags2 {padding-top:1px;}
|
||||
|
||||
Reference in New Issue
Block a user