Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

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