• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

TravianX -> Admin -> renameVillage.php

Status
Not open for further replies.
Newbie Spellweaver
Joined
Mar 1, 2011
Messages
32
Reaction score
0
Hello,

When renaming someone's village from the Admin panel, after pressing Enter, it gives me error saying:

"The requested URL /TravianX/GameEngine/Admin/mods/renameVillage.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.16 (Debian) Server at neoplaygrounds.com Port 80"


So, I see the renameVillage.php isn't found, is it even developed?
 
Newbie Spellweaver
Joined
Feb 5, 2012
Messages
82
Reaction score
0
you dont have on your server renameVillage.php
 
Newbie Spellweaver
Joined
Mar 1, 2011
Messages
32
Reaction score
0
I know I don't, that's why I'm asking why isn't it there ( github upload lack )
 
Newbie Spellweaver
Joined
Mar 1, 2011
Messages
32
Reaction score
0
You're not from any help, I'm letting you know that.
 
Joined
Sep 25, 2011
Messages
710
Reaction score
318
create one file renameVillage.php and write there this

PHP:
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename renameVillage.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);

$did = $_POST['did'];
$name = $_POST['villagename'];
$session = $_POST['admid'];

$sql = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = ".$session."");
$access = mysql_fetch_array($sql);
$sessionaccess = $access['access'];

if($sessionaccess != 9) die("<h1><font color=\"red\">Access Denied: You are not Admin!</font></h1>");

$sql = "UPDATE ".TB_PREFIX."vdata SET name = '$name' WHERE wref = $did";
mysql_query($sql);

header("Location: ../../../Admin/admin.php?p=village&did=".$did."&name=".$name."");
?>


Then upload the file to GameEngine/Admin/Mods/
 
Status
Not open for further replies.
Back
Top