Register for your free account! | Forgot your password?

You last visited: Today at 00:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Hilfe

Discussion on Hilfe within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2014
Posts: 370
Received Thanks: 15
Hilfe

Hey
Der fehler

Warning: include(/function/explore.php) [function.include]: failed to open stream: No such file or directory in /home/www/cwcity/hosting/g/l/gladiator/htdocs/game/index.php on line 110

Warning: include() [function.include]: Failed opening '/function/explore.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/cwcity/hosting/g/l/gladiator/htdocs/game/index.php on line 110

Fatal error: Call to undefined function move() in /home/www/cwcity/hosting/g/l/gladiator/htdocs/game/index.php on line 110


Im anhang index and explore php
LG thx
Asterix112 is offline  
Old 09/18/2014, 19:34   #2

 
~ JWonderpig ~'s Avatar
 
elite*gold: 60
Join Date: Sep 2013
Posts: 1,427
Received Thanks: 248
Er findet die Datei nicht in der sich die Funktion move() befindet.
Wahrscheinlich hast du den Pfad beim include falsch angegeben.
Poste den entsprechenden Code einfach in deinem Post, will mir das nicht runterladen
~ JWonderpig ~ is offline  
Old 09/18/2014, 19:55   #3
 
elite*gold: 0
Join Date: Aug 2014
Posts: 370
Received Thanks: 15
<?php // explore.php :: Handles all map exploring, chances to fight, etc.

function move() {

global $userrow, $controlrow;

if ($userrow["currentaction"] == "Fighting") { header("Location: index.php?do=fight"); die(); }

$latitude = $userrow["latitude"];
$longitude = $userrow["longitude"];
if (isset($_POST["north"])) { $latitude++; if ($latitude > $controlrow["gamesize"]) { $latitude = $controlrow["gamesize"]; } }
if (isset($_POST["south"])) { $latitude--; if ($latitude < ($controlrow["gamesize"]*-1)) { $latitude = ($controlrow["gamesize"]*-1); } }
if (isset($_POST["east"])) { $longitude++; if ($longitude > $controlrow["gamesize"]) { $longitude = $controlrow["gamesize"]; } }
if (isset($_POST["west"])) { $longitude--; if ($longitude < ($controlrow["gamesize"]*-1)) { $longitude = ($controlrow["gamesize"]*-1); } }

$townquery = doquery("SELECT id FROM {{table}} WHERE latitude='$latitude' AND longitude='$longitude' LIMIT 1", "towns");
if (mysql_num_rows($townquery) > 0) {
$townrow = mysql_fetch_array($townquery);
include('towns.php');
travelto($townrow["id"], false);
die();
}
$questquery = doquery("SELECT quest_id FROM {{table}} WHERE latitude='$latitude' AND longitude='$longitude' AND user_id='".$userrow["id"]."' AND status='0' LIMIT 1", "questprogress");
if (mysql_num_rows($questquery) > 0) {

$quest = mysql_fetch_array($questquery);
$action = "currentaction='Quest Event',";
$updatequery = doquery("UPDATE {{table}} SET currentaction='Quest Event', currentquestid = '".$quest["quest_id"]."', currentfight='1', latitude='$latitude', longitude='$longitude', dropcode='0' WHERE id='".$userrow["id"]."' LIMIT 1", "users");
header("Location: index.php");
die();
}
$goldchance = rand(1,1000); // Find random number between 1 and 200
if ($goldchance == 1) { // If the random number is one..
$gold = rand(1,50); // Select a random number between 1 and 5000 which is the amount the user with obtain.
doquery("UPDATE {{table}} SET gold=gold+$gold WHERE id=".$userrow["id"], "users"); // Update the gold variable.
doquery("UPDATE {{table}} SET $action latitude='$latitude', longitude='$longitude', dropcode='0' WHERE id='".$userrow["id"]."' LIMIT 1", "users"); // Update position.
$page = "You were walking along the road and you found $gold gold on the ground!"; // Output
display($page, "You have found money on the ground!");
die();
}

$chancetofight = rand(1,5);
if ($chancetofight == 1) {
$action = "currentaction='Fighting', currentfight='1',";
} else {
$action = "currentaction='Exploring',";
}


$updatequery = doquery("UPDATE {{table}} SET $action latitude='$latitude', longitude='$longitude', dropcode='0' WHERE id='".$userrow["id"]."' LIMIT 1", "users");
header("Location: index.php");

}
// Find random number between 1 and 200
$interrestchance = rand(1,2000);
// If the random number is one..
if ($interrestchance == 1) {
// Update the gold variable.
doquery("UPDATE {{table}} SET bank=bank*1.05 WHERE id=".$userrow["id"], "users");
// Output
$page = "You have gained 5% interrest on your bank account"; // Output
display($page, "You have gained 5% interrest on your bank account!");
die();
}
?>

<?php



// index.php :: Primary program script, evil alien overlord, you decide.

if (file_exists('install.php'))
{
die("Please delete <b>install.php</b> from your Dragon Knight directory before continuing.");
}
include('lib.php');
include('cookies.php');
$link = opendb();
$controlquery = doquery("SELECT * FROM {{table}} WHERE id='1' LIMIT 1", "control");
$controlrow = mysql_fetch_array($controlquery);

//Login (or verify) if not logged in.
$userrow = checkcookies();
if ($userrow == false)
{if (isset($_GET["do"]))
{if ($_GET["do"] == "verify")
{header("Location: users.php?do=verify");die();}}
header("Location: login.php?do=login");die();}
//Close game.
if ($controlrow["gameopen"] == 0)
{display("The game is currently closed for maintanence. Please check back later.", "Game Closed");die();}
//Force verify if the user isn't verified yet.
if ($controlrow["verifyemail"] == 1 && $userrow["verify"] != 1)
{header("Location: users.php?do=verify");die();}
//Block user if he/she has been banned.
if ($userrow["authlevel"] == 2)
{die("Your account has been blocked. Please try back later.");}

if (isset($_GET["do"]))
{
$do = explode(":", $_GET["do"]);

// Donation functions
if ($do[0] == "donate1"){include('/function/donate1.php');donate1();}// $1
if ($do[0] == "donate2"){include('/function/donate2.php');donate2();}//$5
if ($do[0] == "donate3"){include('/function/donate3.php');donate3();}//$10
if ($do[0] == "donate4"){include('/function/donate4.php');donate4();}//$20
if ($do[0] == "donate5"){include('/function/donate5.php');donate5();}//$25
if ($do[0] == "donate6"){include('/function/donate6.php');donate6();}//$50

// START OF UPDATE SOCIAL STATUS TITLE DISPLAY
if($userrow["level"] <= 2) { $status = 'Peasant'; }//sets at what level and status name
if($userrow["level"] >= 3) { $status = 'Citizen'; }//sets at what level and status name
if($userrow["level"] >= 10) { $status = 'Lord Baron'; }//sets at what level and status name,this is the level they become a lord
if($userrow["level"] >= 14) { $status = 'Lord Marquis'; }//sets at what level and status name
if($userrow["level"] >= 60) { $status = 'Lord Duke'; }//sets at what level and status name
if($userrow["level"] >= 85) { $status = 'Lord King'; }//sets at what level and status name
if($userrow["level"] >= 99) { $status = 'Lord Emporer'; }//sets at what level and status name
doquery("UPDATE {{table}} SET status='$status' WHERE id='".$userrow["id"]."' ", "users");
$lordsquery = doquery("SELECT * FROM {{table}} WHERE id='".$userrow["id"]."' LIMIT 1", "lords");
$lordsrow = mysql_fetch_array($lordsquery);
doquery("UPDATE {{table}} SET status='$status' WHERE id='".$lordsrow["id"]."' ", "lords");
// END OF UPDATE SOCIAL STATUS TITLE DISPLAY

// START OF SET LORDS TABLE INITIAL STATS
// THIS POPULATES AND SETS THE LORDS TABLE UPON BECOMMING A LORD
if ($userrow["level"] == 10) { //SET THIS # TO THE SAME LEVEL # AS BECOMMING A LORD
if ($userrow["setstats"] == 2) { //THIS CHECKS TO SEE IF INITIAL LORD STATS NEED TO BE SET
if ($userrow["charalign"] == 1) { $honor = '14'; $alignment = 'Lawfull Good'; }//Lawfull Good set honor stat needs character alignment mod
if ($userrow["charalign"] == 2) { $honor = '12'; $alignment = 'Chaotic Good'; }//Chaotic Good set honor stat needs character alignment mod
if ($userrow["charalign"] == 3) { $honor = '10'; $alignment = 'Neutral Good'; }//Neutral Good set honor stat needs character alignment mod
if ($userrow["charalign"] == 4) { $honor = '8'; $alignment = 'Neutral'; }//Neutral set honor stat needs character alignment mod
if ($userrow["charalign"] == 5) { $honor = '6'; $alignment = 'Neutral Evil'; }//Neutral Evil set honor stat needs character alignment mod
if ($userrow["charalign"] == 6) { $honor = '4'; $alignment = 'Chaotic Evil'; }//Chaotic Evil set honor stat needs character alignment mod
if ($userrow["charalign"] == 7) { $honor = '2'; $alignment = 'Lawfull Evil'; }//Lawfull Evil set honor stat needs character alignment mod
if ($userrow["charclass"] == 1) { $tactical = '14'; }//Warlord set tactical stat add or remove classes as needed
if ($userrow["charclass"] == 2) { $tactical = '12'; }//Paladin set tactical stat add or remove classes as needed
if ($userrow["charclass"] == 3) { $tactical = '4'; }//Wizard set tactical stat add or remove classes as needed
if ($userrow["charclass"] == 4) { $tactical = '6'; }//Barbarian set tactical stat add or remove classes as needed
if ($userrow["charclass"] == 5) { $tactical = '8'; }//Cleric set tactical stat add or remove classes as needed
if ($userrow["charclass"] == 6) { $tactical = '10'; }//Warrior set tactical stat add or remove classes as needed
if ($userrow["charclass"] == 7) { $tactical = '2'; }//Rogue set tactical stat add or remove classes as needed
$id = $userrow["id"];
$lordname = $userrow["charname"];
doquery("INSERT INTO {{table}} SET id='$id',lordname='$lordname',alignment='$alignmen t',tactical='$tactical',honor='$honor',land='20',o ffarmy='20',dffarmy='20',treasury='1000' ", "lords");
doquery("UPDATE {{table}} SET setstats='3' WHERE id='".$userrow["id"]."' LIMIT 1", "users"); } }
// END OF SET LORDS TABLE INITIAL STATS

//Town functions.
if ($do[0] == "inn"){include('/function/inn.php');inn();}
elseif ($do[0] == "buy"){include('towns.php');buy();}
elseif ($do[0] == "buy2"){include('towns.php');buy2($do[1]);}
elseif ($do[0] == "buy3"){include('towns.php');buy3($do[1]);}
elseif ($do[0] == "equip"){include('towns.php');equip($do[1]);}
elseif ($do[0] == "sell"){include('towns.php');sell();}
elseif ($do[0] == "maps"){include('/function/map_buy.php'); maps();}
elseif ($do[0] == "maps2"){include('/function/map_buy.php');maps2($do[1]);}
elseif ($do[0] == "maps3"){include('/function/map_buy.php');maps3($do[1]);}
elseif ($do[0] == "gotown"){include('/function/t1.php');travelto($do[1]);}
elseif ($do[0] == "buypotions"){include('/function/buy_potions.php');buy_potions($do[1]);}
elseif ($do[0] == "potion"){use_potion($do[1]);}
elseif ($do[0] == "loteri"){include('loteri.php');loteri();}
elseif ($do[0] == "skills"){include('/function/skills.php');skills();}
elseif ($do[0] == "sellitems"){include('/function/sellitems.php');sellitems();}
elseif ($do[0] == "sendgold"){sendgold();}
elseif ($do[0] == "bank"){include('/function/bank_mod.php');bank();}
elseif ($do[0] == "oldernews"){include('oldernews.php');oldernews(); }
elseif ($do[0] == "robb"){include('/function/robbbank.php');robb();}
elseif ($do[0] == "clan"){include('/function/clan.php');clan($do[1]);}
elseif ($do[0] == "clan1"){include('/function/clan.php');clan1($do[1]);}
elseif ($do[0] == "clan2"){include('/function/clan.php');clan2($do[1]);}
elseif ($do[0] == "clan3"){include('/function/clan.php');clan3($do[1]);}

//Exploring functions.
elseif ($do[0] == "move")
{include("/function/explore.php");
move();}
//Fighting functions.
elseif ($do[0] == "fight"){include('fight.php');fight();}
elseif ($do[0] ==$ "victory"){include('fight.php');victory();}
elseif ($do[0] == "drop"){include('fight.php');drop();}
elseif ($do[0] == "dead"){include('fight.php');dead();}

//Questing functions.
elseif ($do[0] == "quest"){include('quest.php');quest();}
elseif ($do[0] == "questvictory"){include('quest.php');questvictory( );}
elseif ($do[0] == "questdrop"){include('quest.php');questdrop(); }
elseif ($do[0] == "getquests"){include('quests_available.php');displ ayQuests();}
elseif ($do[0] == "viewquest"){include('quests_available.php');viewQ uest();}
elseif ($do[0] == "acceptquest"){include('quests_available.php');acc eptQuest();}
elseif ($do[0] == "questlog"){include('questlog_available.php');ques tLog();}
elseif ($do[0] == "showquest"){showQuestLog();}

//Misc functions.
elseif ($do[0] == "verify"){header("Location: users.php?do=verify");die();}
elseif ($do[0] == "spell"){include('heal.php');healspells($do[1]);}
elseif ($do[0] == "showchar"){include('/function/showchar.php');showchar();}
elseif ($do[0] == "onlinechar"){onlinechar($do[1]);}
elseif ($do[0] == "showmap"){showmap();}
//elseif ($do[0] == "babblebox"){babblebox();}
//elseif ($do[0] == "ninja") { ninja(); }

//Start PVP
elseif ($do[0] == "mainfight"){include('/function/pvpfight.php');mainfight();}
elseif ($do[0] == "pvpfight"){include('/function/pvpfight.php');pvpfight();}
elseif ($do[0] == "pvpfight2"){include('/function/pvpfight.php');pvpfight2();}
elseif ($do[0] == "pvpfight3"){include('/function/pvpfight.php');pvpfight3($do[1]);}
elseif ($do[0] == "pvpfight4"){include('/function/pvpfight.php');pvpfight4($do[1]);}

//Friendship
elseif ($do[0] == "liste_amis") {include('/function/amis.php'); liste_amis(); }
elseif ($do[0] == "amis") { include('/function/amis.php'); amis($do[1]); }
elseif ($do[0] == "supprimer_amis") { include('/function/amis.php'); supprimer_amis($do[1]); }

//Contact Admin
elseif ($do[0] == "contact") { include('/function/contact.php'); contactadmin(); }
}

else {donothing();}


function donothing()
{

global $userrow, $page, $title;

if ($userrow["currentaction"] == "In Town")
{

$ipe=getenv("REMOTE_ADDR");
$ide=$userrow['id'];
doquery("UPDATE {{table}} SET userip='$ipe' WHERE id='$ide' LIMIT 1", "users");
$page = dotown();
$title = "In Town";
}
elseif ($userrow["currentaction"] == "Exploring")
{
$page = doexplore();
$title = "Exploring";
}
elseif ($userrow["currentaction"] == "Fighting")
{
$page = dofight();
$title = "Fighting";
}
elseif ($userrow["currentaction"] == "Quest Event")
{
$page = doquest();
$title = "Quest Event";
}

display($page, $title);
}

function dotown()
{ // Spit out the main town page.
global $userrow, $controlrow, $numqueries;

$townquery = doquery("SELECT * FROM {{table}} WHERE latitude='" . $userrow["latitude"] . "' AND longitude='" . $userrow["longitude"] . "' LIMIT 1", "towns");
if (mysql_num_rows($townquery) == 0)
{display("There is an error with your user account, or with the town data. Please try again.", "Error");}
$townrow = mysql_fetch_array($townquery);

// News box. Grab latest news entry and display it. Something a little more graceful coming soon maybe.
if ($controlrow["shownews"] == 1)
{
$newsquery = doquery("SELECT * FROM {{table}} ORDER BY id DESC LIMIT 1", "news");
$newsrow = mysql_fetch_array($newsquery);
$townrow["news"] = "<table width=\"95%\"><tr><td class=\"title\">Latest News</td></tr><tr><td>\n";
$townrow["news"] .= "<span class=\"light\">[" . prettydate($newsrow["postdate"]) . "]</span>
<br />" . nl2br($newsrow["content"]);
$townrow["news"] .= "</td></tr></table>\n";
}
else
{$townrow["news"] = "";}

// Who's Online. Only Reg. Member.
if ($controlrow["showonline"] == 1)
{
$onlinequery = doquery("SELECT * FROM {{table}} WHERE UNIX_TIMESTAMP(onlinetime) >= '" . (time() - 600) . "' ORDER BY charname", "users");
$townrow["whosonline"] = "<right><table width=\"25%\"><tr><td class=\"title\">Who's Online</td></tr><tr><td></right>\n";
$townrow["whosonline"] .= "There are <b>" . mysql_num_rows($onlinequery) . "</b> user(s) online within the last 10 minutes: ";
while ($onlinerow = mysql_fetch_array($onlinequery))
{
$townrow["whosonline"] .= "<a href=\"index.php?do=onlinechar:" . $onlinerow["id"] . "\">" . $onlinerow["charname"] . "</a>" . ", ";
}
$townrow["whosonline"] = rtrim($townrow["whosonline"], ", ");
$townrow["whosonline"] .= "</td></tr>\n";

$townrow["whosonline"] .= "<tr><td class=\"title\">Top 5 Ritchest Fighters</td></tr>";
$topquery = doquery("SELECT * FROM {{table}} ORDER BY gold DESC LIMIT 5", "users");
$rank = 1;
while ($toprow = mysql_fetch_array($topquery))
{
$townrow["whosonline"] .= "<tr><td><b>$rank. </b><a href=\"index.php?do=onlinechar:" . $toprow["id"] . "\">" . $toprow["charname"] . "
</a> Gold: <b>" . number_format($toprow["gold"]) . "<hr></b></td></tr>\n";
$rank++;
}
$townrow["whosonline"] .= "</table>\n";
}
else
{
$townrow["whosonline"] = "";
}

if ($controlrow["showbabble"] == 1)
{
$townrow["babblebox"] = "<right><table width=\"50%\"><tr><td class=\"title\">Babble Box</td></tr><tr><td>\n";
$townrow["babblebox"] .= "<iframe src=\"index.php?do=babblebox\" name=\"sbox\" width=\"50%\" height=\"250\"
frameborder=\"0\" id=\"bbox\">Your browser does not support inline frames! The Babble Box will not be available until you upgrade to a newer
<a href=\"http://www.mozilla.org\" target=\"_new\">browser</a>.</iframe>";
$townrow["babblebox"] .= "</td></tr></table>\n";
}
else
{
$townrow["babblebox"] = "";
}

$page = gettemplate("towns");
$page = parsetemplate($page, $townrow);

return $page;
}

function dofight()
{ // Redirect to fighting.
header("Location: index.php?do=fight");
}

function doquest()
{ // Redirect to questing.
header("Location: index.php?do=quest");
}

function questLog()
{

global $userrow;

$query = doquery2("SELECT DISTINCT a.id,a.name FROM {{table1}} a, {{table2}} b WHERE user_id = '" . $userrow["id"] . "'
AND status = '0' AND a.id = b.quest_id", "quests", "questprogress");
$rows = mysql_num_rows($query);
$page = "<center><table width='200'><tr><td class='title'><center>Quest Log</center></td></tr>";
$page .= "<tr><td><center>";
if ($rows == 0)
{
$page .= "Your quest log is currently empty.";
}
else
{

$i = 0;
while ($i < $rows)
{
$name = mysql_result($query, $i, "name");
$id = mysql_result($query, $i, "id");
$page .= "<li><a href=\"index.php?do=showquest&id=" . $id . "\">" . $name . "</a></li>";
$i++;
}
}
$page .= "</center></td></tr></table></center>";
$pagearray = array();
$pagearray["content"] = $page;
$pagearray["title"] = "Quest Log";

// Finalize page and display it.
$template = gettemplate("minimal");
echo parsetemplate($template, $pagearray);
die();
}

function doexplore()
{ // Just spit out a blank exploring page.

$explor = rand(1, 10);
if ($explor == 1)
{$page = "you are exploring, but don't see anything of great interest";}
if ($explor == 2)
{$page = "Whilst exploring, your hear a noise, causiously you look around, but it seems to be nothing";}
if ($explor == 3)
{$page = "On your travels, you spot a strange Creature in the distance, but it ran away on sight.";}
if ($explor == 4)
{$page = "As you are wondering, chopping down bushes and branches that stand in your path, you notice an odd shaped
Footprint in the dirt, there is nothing more that tells us what Creature this Print belongs to.";}
if ($explor == 5)
{$page = "While exploring you see something shining, you run upto it only to find a empty bottle, someone was here before you.";}
if ($explor == 6)
{$page = "As the the Sun brightens over into the Distance, it casts a Female Figured Shadow and the Ground throught the Trees,
as the Trees branches blow in the wind, it gives the illusion the Shadow Girl is waving.";}
if ($explor == 7)
{$page = " You hear creatures making strange noises in the distance, and the wind whistling through the trees gives you an edge of uneasyness.";}
if ($explor == 8)
{$page = "While you are exploring, you catch a Glimpse of a Chest in the corner of your eye, you immediatly dash over, to find it is empty.";}
if ($explor == 9)
{
$page = "On your Travels, you spot something odd over to your right, as you walk over, you find it's a bone.";
}
if ($explor == 10)
{
$page = "As you walk on top of a dune, you trip on a rock, and tumble down, you it something large and hard, you look up its a
giant red dragon, you run for your life. you look back only to notice its a statue.";

}

// Exploring without a GET string is normally when they first log in, or when they've just finished fighting.

$page = <<<END
<table width="100%">
<tr><td class="title"><img src="images/title_exploring.gif" alt="Exploring" /></td></tr>
<tr><td>
$page
</td></tr>
</table>
END;

return $page;
}
// Onlinechar
function onlinechar($id)
{

global $controlrow;
$userquery = doquery("SELECT * FROM {{table}} WHERE id='$id' LIMIT 1", "users");
if (mysql_num_rows($userquery) == 1)
{
$userrow = mysql_fetch_array($userquery);
}
else
{
display("No such user.", "Error");
}

// Format various userrow stuffs.
$userrow["experience"] = number_format($userrow["experience"]);
$userrow["gold"] = number_format($userrow["gold"]);
if ($userrow["expbonus"] > 0)
{
$userrow["plusexp"] = "<span class=\"light\">(+" . $userrow["expbonus"] . "%)</span>";
}
elseif ($userrow["expbonus"] < 0)
{
$userrow["plusexp"] = "<span class=\"light\">(" . $userrow["expbonus"] . "%)</span>";
}
else
{
$userrow["plusexp"] = "";
}
if ($userrow["goldbonus"] > 0)
{
$userrow["plusgold"] = "<span class=\"light\">(+" . $userrow["goldbonus"] . "%)</span>";
}
elseif ($userrow["goldbonus"] < 0)
{
$userrow["plusgold"] = "<span class=\"light\">(" . $userrow["goldbonus"] . "%)</span>";
}
else
{
$userrow["plusgold"] = "";
}

$levelquery = doquery("SELECT " . $userrow["charclass"] . "_exp FROM {{table}} WHERE id='" . ($userrow["level"] + 1) . "' LIMIT 1", "levels");
$levelrow = mysql_fetch_array($levelquery);
$userrow["nextlevel"] = number_format($levelrow[$userrow["charclass"] . "_exp"]);

if ($userrow["charclass"] == 1)
{
$userrow["charclass"] = $controlrow["class1name"];
}
elseif ($userrow["charclass"] == 2)
{
$userrow["charclass"] = $controlrow["class2name"];
}
elseif ($userrow["charclass"] == 3)
{
$userrow["charclass"] = $controlrow["class3name"];
}

if ($userrow["difficulty"] == 1)
{
$userrow["difficulty"] = $controlrow["diff1name"];
}
elseif ($userrow["difficulty"] == 2)
{
$userrow["difficulty"] = $controlrow["diff2name"];
}
elseif ($userrow["difficulty"] == 3)
{
$userrow["difficulty"] = $controlrow["diff3name"];
}

$charsheet = gettemplate("onlinechar");
$page = parsetemplate($charsheet, $userrow);
display($page, "Character Information");
}

// Start resource
// if($userrow["wood"] ) { $wood = '$userrow["wood"]'; }
// if($userrow["fish"] ) { $fish = '$userrow["fish"]'; }
// End resources
//start proffesion
// if($userrow["woodskill"] >= 1) { $status1 = 'WoodCutter'; }
// if($userrow["fishskill"] >= 1) { $status1 = 'Fisher'; }
// doquery("UPDATE {{table}} SET status1='$status1' WHERE id='".$userrow["id"]."' ", "users");
// End proffesion


//function babblebox()
//{
//
// global $userrow;
//
// if (isset($_POST["babble"]))
// {
// $safecontent = makesafe($_POST["babble"]);
// if ($safecontent == "" || $safecontent == " ")
// { //blank post. do nothing.
// }
// else
// {
// $insert = doquery("INSERT INTO {{table}} SET id='',posttime=NOW(),author='" . $userrow["charname"] . "',babble='$safecontent'", "babble");
// }
// header("Location: index.php?do=babblebox");
// die();
// }
//
// $babblebox = array("content" => "");
// $bg = 1;
// $babblequery = doquery("SELECT * FROM {{table}} ORDER BY id DESC LIMIT 20", "babble");
// while ($babblerow = mysql_fetch_array($babblequery))
// {
// if ($bg == 1)
// {
// $new = "<div style=\"width:98%; background-color:#eeeeee;\">[<b>" . $babblerow["author"] . "</b>] " . $babblerow["babble"] . "</div>\n";
// $bg = 2;
// }
// else
// {
// $new = "<div style=\"width:98%; background-color:#ffffff;\">[<b>" . $babblerow["author"] . "</b>] " . stripslashes($babblerow["babble"]) . "</div>\n";
// $bg = 1;
// }
// $babblebox["content"] = $new . $babblebox["content"];
// }
// $babblebox["content"] .= "<center><form action=\"index.php?do=babblebox\" method=\"post\">
// <input type=\"text\" name=\"babble\" size=\"15\" maxlength=\"120\" /><br /><input type=\"submit\" name=\"submit\" value=\"Babble\" />
// <input type=\"reset\" name=\"reset\" value=\"Clear\" /></form></center>";
//
// Make page tags for XHTML validation.
$xml = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"
. "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"DTD/xhtml1-transitional.dtd\">\n"
. "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n";
// $page = $xml . gettemplate("babblebox");
// echo parsetemplate($page, $babblebox);
// die();
//}

//function little()
//{
// echo("this website was helped to be made by Littlething");
//}
?>

Index
Asterix112 is offline  
Old 09/27/2014, 19:40   #4
 
Schlumpf9's Avatar
 
elite*gold: 1
Join Date: May 2011
Posts: 28
Received Thanks: 4
Quote:
Originally Posted by Asterix112 View Post
<?php // explore.php :: Handles all map exploring, chances to fight, etc.

....
Markiere doch bitte deinen Code mit der Codeansicht:
HTML Code:
[PHP]
Dann kann man dir einfacher helfen und muss nicht den ganzen Code heraus kopieren und irgendwo in einem Compiler-Programm einfügen, um ihn richtig eingerückt und farbig zu sehen!
Bei einem so langen Code wäre ein Spoiler eventuell auch angebracht
Schlumpf9 is offline  
Thanks
1 User
Reply




All times are GMT +2. The time now is 00:27.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.