Jump to content

Help with a purchased script please


halfpint

Recommended Posts

Hi I purchased this game script and I cannot get any support from the website or the guy that wrote the script. You basicaly build up towns and fight other players.

 

I have a problem when somebody tries to edit thier profile or change their email ect..  in the game It says it has succesfully updated but when you return to your own town the actual background graphics goes black and any jpgs do not show up

 

The game looks like this before you change anything in the profile

 

town.jpg

 

 

But as soon as you change anything in the profile the game shows up like this

 

town2.jpg

 

 

The actual code for the change profile is this and I dont know if it is this that is causing the problem. Could somebody please have a look at the code to see if it is this that is causing the problem

 

thanks

 

 

<?php

/*** Battle Towns | Play Battle Towns A Free Strategy War Game ***/include "antet.php"; include "func.php";

if (isset($_SESSION["user"][1], $_POST["pass"]))
if ($_SESSION["user"][2]==md5($_POST["pass"]))
{
  $ar=array("\'", "\""); $_GET["email"]=str_replace($ar, "", $_GET["email"]);
  profile($_SESSION["user"][1], $_POST["email"], $_POST["desc"], $_POST["sitter"], $_POST["grpath"], $_POST["lang"]);
  $_SESSION["user"][3]=$_POST["email"]; $_SESSION["user"][9]=$_POST["desc"]; $_SESSION["user"][12]=$_POST["sitter"]; $_SESSION["user"][13]=$_POST["grpath"]; $_SESSION["user"][16]=$_POST["lang"];
}
else msg($lang['accessDenied']);
else msg($lang['insufData']);
?>

 

Link to comment
https://forums.phpfreaks.com/topic/174449-help-with-a-purchased-script-please/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.