hey guys just wondering if you can help with this error ive started receiving(im not brilliant at coding so it probs something obvious)
Notice: Undefined variable: lang in C:\xampp\htdocs \armory\source\ charlist.php on line 24
20<ul class="heading" >
21<img class="ieimg" src="images/pixel.gif"><li class="hleft"></li>
22<li class="hcont">
23<div class="generic-title">
24<h1><?php echo $lang['search_for_pro files'] ?>:</h1>
25</div>
thanks for reading
stef
8 5882 Markus 6,050
Recognized Expert Expert
The variable $lang does not exist in the current scope. Where do you define $lang?
i dont 100% understand the code im afraid im not brilliant with php i wrote a basic script sent it to a freand and he sent it back with some nice new features that mostly work its just this one is throwing up that error
sorry im no more use but im fairly new to coding
Markus 6,050
Recognized Expert Expert
Can you post the whole file, please. Also, omit the line numbers.
Thanks,
Mark.
just done it in an edit whiles you were typing sorry
Markus 6,050
Recognized Expert Expert
Okay.
Nowhere in that file do you create the $lang variable. Is the file you just showed included from another file from include(), require() or a function like that? If so, please post that file also.
it all links from this main index page - <?php
-
define('Armory', 1);
-
require "configuration/settings.inc.php";
-
require "configuration/functions.php";
-
require "configuration/mysql.php";
-
require "configuration/output.inc.php";
-
require "configuration/infoarray.php";
-
require "configuration/resources.inc.php";
-
require "configuration/defines.php";
-
$o = new Output;
-
$o->init();
-
// Security Check //
-
$PagesArray = array(
-
'idx' => 'main.php',
-
'profile' => 'character-sheet.php',
-
'characters' => 'charlist.php',
-
'guilds' => 'guildlist.php',
-
'guildinfo' => 'guild-info.php',
-
'honor' => 'honorranking.php',
-
'Items' => 'itemlist.php',
-
'items' => 'itemlist.php',
-
'iteminfo' => 'item-info.php',
-
'arena' => 'arenaranking.php',
-
'arenateams' => 'arenalist.php',
-
'teaminfo' => 'team-info.php',
-
'registration' => 'registration.php',
-
'login' => 'login.php'
-
);
-
if(isset($_GET["searchType"]))
-
{
-
if (array_key_exists($_GET["searchType"], $PagesArray))
-
define("REQUESTED_ACTION", $_GET["searchType"]);
-
else
-
define("REQUESTED_ACTION", 'idx');
-
}
-
else
-
define("REQUESTED_ACTION", 'idx');
-
error_reporting(E_ALL);
-
session_start();
-
function session_security($fingerprint = 'fingerprint001')
-
{
-
if(isset($_SESSION["HTTP_USER_AGENT"]))
-
{
-
if($_SESSION["HTTP_USER_AGENT"] != md5($_SERVER["HTTP_USER_AGENT"].$fingerprint))
-
{
-
print "Session Terminated. This has been recorded as a possible session hijack attempt and the session has been terminated for security reasons. If this is an inconvenience, please contact the administrator.<br><b>What this means:</b> You have been logged out.";
-
session_destroy();
-
}
-
}
-
else
-
$_SESSION["HTTP_USER_AGENT"] = md5($_SERVER["HTTP_USER_AGENT"].$fingerprint);
-
}
-
$o->string("<head>");
-
$o->string("<link rel=\"stylesheet\" type=\"text/css\" href=\"css/armory-css.css\">");
-
// Tooltips stylesheet(s)//
-
$o->string("<link rel=\"stylesheet\" type=\"text/css\" href=\"css/armory-tooltips.css\">");
-
// Ajax //
-
$o->string("<script src=\"source/ajax/coreajax.js\" type=\"text/javascript\"> </script>");
-
$o->string("</head>");
-
$o->string("<body OB_AFTER_BODYTAG>");
-
$o->setobvar("AFTER_BODYTAG", "");
-
// Javascript Tooltips //
-
// aah //
-
$o->string("<script type=\"text/javascript\" src=\"source/ajax/tooltipajax.js\"></script>");
-
-
include "head.php";
-
-
// Make sure the session is secure... //
-
session_security();
-
require_once $o->sourcefolder."/".$PagesArray[REQUESTED_ACTION];
-
$o->string("<div id=\"loading-box\">LOADING</div>");
-
-
// The final output call. Any $o-> calls after this will be ignored //
-
$o->outputPage();
-
-
include "foot.php";
-
?>
which requiers
settings.inc - <?php
-
// for all options bellow: 1 - enable, 0 - disable
-
$config = array(
-
// MBA title
-
"Title" => "The World of Warcraft Armory",
-
// Client compatible with the server, 0 - 2.4.3, 1 - 3.0.3
-
"Client" => 0,
-
// Use registration page
-
"Registration" => 0,
-
// Use login page
-
"Login" => 0,
-
// Number of account registrations per IP, 0 - no limits
-
"LockReg" => 0,
-
// Lock accout to IP after registration
-
"LockAcc" => 0,
-
// The gmlevel which new accounts have
-
"GmLevel" => 0,
-
// The expansion which new accounts are using, 0 - Original, 1 - TBC, 2 - WotLK
-
"AccExpansion" => 0,
-
// Show source information for items
-
"ShowSource" => 1,
-
// Show Random Enchantments for items
-
"ShowRandomEnch" => 1,
-
// Show Disenchant information for items
-
"ShowDisenchant" => 1,
-
// Show error messages for items
-
"ShowError" => 0,
-
// Results number for Honor Ranking page
-
"PvPTop" => 50,
-
// Results number for Arena Ranking page
-
"ArenaTop" => 50,
-
);
functions - <?php
-
function GetCharacterPortrait($CharacterLevel, $CharacterGender, $CharacterRace, $CharacterClass)
-
{
-
if($CharacterLevel <= 59)
-
return "wow-default/".$CharacterGender."-".$CharacterRace."-".$CharacterClass.".gif";
-
else if($CharacterLevel >= 60 && $CharacterLevel <= 69)
-
return "wow/".$CharacterGender."-".$CharacterRace."-".$CharacterClass.".gif";
-
else if($CharacterLevel >= 70 && $CharacterLevel <= 79)
-
return "wow-70/".$CharacterGender."-".$CharacterRace."-".$CharacterClass.".gif";
-
else if($CharacterLevel >= 80)
-
return "wow-80/".$CharacterGender."-".$CharacterRace."-".$CharacterClass.".gif";
-
}
-
function GetFaction($CharacterRace)
-
{
-
if($CharacterRace == 1 || $CharacterRace == 3 || $CharacterRace == 4 || $CharacterRace == 7 || $CharacterRace == 11)
-
return "alliance";
-
else
-
return "horde";
-
}
-
function GetIcon($Type, $DisplayIconId)
-
{
-
if($Type == "item")
-
{
-
$Table = "itemdisplayinfo";
-
$Field = "icon";
-
}
-
else //$Type == "spell"
-
{
-
$Table = "spellicon";
-
$Field = "name";
-
}
-
switchConnection("armory", REALM_NAME);
-
$DisplayIconQuery = execute_query("SELECT `".$Field."` FROM `".$Table."` WHERE `id` = ".$DisplayIconId." LIMIT 1");
-
if($row = mysql_fetch_assoc($DisplayIconQuery))
-
return "images/icons/64x64/".$row[$Field].".png";
-
else
-
return "images/icons/64x64/404.png";
-
}
-
function GetItemSource($item_id, $pvpreward = 0)
-
{
-
global $lang;
-
switchConnection("mangos", REALM_NAME);
-
if(mysql_num_rows(execute_query("SELECT `entry` FROM `quest_template` WHERE `SrcItemId` = ".$item_id." LIMIT 1")))
-
return $lang['quest_item'];
-
else if(mysql_num_rows(execute_query("SELECT `entry` FROM `npc_vendor` WHERE `item` = ".$item_id." LIMIT 1")))
-
return $pvpreward ? $lang['pvp_reward'] : $lang['vendor'];
-
else if(mysql_num_rows(execute_query("SELECT `entry` FROM `gameobject_loot_template` WHERE `item` = ".$item_id." LIMIT 1")))
-
return $lang['chest_drop'];
-
else if(mysql_num_rows(execute_query("SELECT `entry` FROM `creature_loot_template` WHERE `item` = ".$item_id." LIMIT 1")))
-
return $lang['drop'];
-
else if(mysql_num_rows(execute_query("SELECT `entry` FROM `quest_template` WHERE `RewChoiceItemId1` = ".$item_id." OR `RewChoiceItemId2` = ".$item_id."
-
OR `RewChoiceItemId3` = ".$item_id." OR `RewChoiceItemId4` = ".$item_id." OR `RewChoiceItemId5` = ".$item_id." OR `RewChoiceItemId6` = ".$item_id."
-
OR `RewItemId1` = ".$item_id." OR `RewItemId2` = ".$item_id." OR `RewItemId3` = ".$item_id." OR `RewItemId4` = ".$item_id." LIMIT 1")))
-
return $lang['quest_reward'];
-
else
-
return $lang['created'];
-
}
-
function spell_bonuses($spell_id, $RandomSuffixValue = 0)
-
{
-
switchConnection("armory", REALM_NAME);
-
$itemStat = array();
-
for($ii = 1; $ii <= 3; $ii ++)
-
{
-
if($sData = mysql_fetch_assoc(execute_query("SELECT `id`,`effect_basepoints_".$ii."`,`effect_aura_".$ii."`,`effect_misc_1` FROM `spell` WHERE `id` = ".$spell_id." LIMIT 1")))
-
{
-
if($sData["effect_aura_".$ii] == 13)
-
{
-
switch($sData["effect_misc_1"])
-
{
-
case 2: $magicSchool = "holydmg"; break;
-
case 4: $magicSchool = "firedmg"; break;
-
case 8: $magicSchool = "naturedmg"; break;
-
case 16: $magicSchool = "frostdmg"; break;
-
case 32: $magicSchool = "shadowdmg"; break;
-
case 64: $magicSchool = "arcanedmg"; break;
-
case 126: $magicSchool = "spelldmg"; break;
-
default: $magicSchool = "";
-
}
-
if($magicSchool)
-
{
-
if($RandomSuffixValue)
-
$itemStat[$magicSchool] = $RandomSuffixValue;
-
else
-
$itemStat[$magicSchool] = $sData["effect_basepoints_".$ii] + 1;
-
}
-
}
-
else if($sData["effect_aura_".$ii] == 135)
-
{
-
if($RandomSuffixValue)
-
$itemStat["healing"] = $RandomSuffixValue;
-
else
-
$itemStat["healing"] = $sData["effect_basepoints_".$ii] + 1;
-
}
-
}
-
}
-
return $itemStat;
-
}
-
function cache_item($itemid)
-
{
-
global $config, $realms;
-
//Get item data
-
switchConnection("mangos", REALM_NAME);
-
if($config['locales'])
-
{
-
$nameloc = "name_loc".$config['locales'];
-
$itemData = mysql_fetch_assoc(execute_query("SELECT `name`, `".$nameloc."`, `Quality`, `displayid` FROM `item_template` LEFT JOIN `locales_item` ON `item_template`.`entry` = `locales_item`.`entry` WHERE `item_template`.`entry` = ".$itemid." LIMIT 1", "Error in item cache process for item ".$itemid));
-
if($itemData[$nameloc])
-
$itemData["name"] = $itemData[$nameloc];
-
}
-
else
-
$itemData = mysql_fetch_assoc(execute_query("SELECT `name`, `Quality`, `displayid` FROM `item_template` WHERE `entry` = ".$itemid." LIMIT 1", "Error in item cache process for item ".$itemid));
-
$db_fields = array(
-
"item_id" => $itemid,
-
"mangosdbkey" => $realms[REALM_NAME][2],
-
"item_name" => $itemData["name"],
-
"item_quality" => $itemData["Quality"],
-
"item_icon" => GetIcon("item",$itemData["displayid"]),
-
);
-
return InsertCache($db_fields , 'cache_item');
-
}
-
function cache_item_spellstats($itemid)
-
{
-
global $realms, $CharItemStats, $stattype;
-
$itemStat = array();
-
foreach($CharItemStats as $key)
-
$itemStat[$key] = 0;
-
//Get item data
-
switchConnection("mangos", REALM_NAME);
-
$itemData = mysql_fetch_assoc(execute_query("SELECT * FROM `item_template` WHERE `entry` = ".$itemid." LIMIT 1", "Error in item cache process for item ".$itemid));
-
for($i = 1; $i <= 10; $i ++)
-
{
-
if($itemData["stat_type".$i])
-
{
-
$statId = $itemData["stat_type".$i];
-
if(array_key_exists($statId, $stattype))
-
if(array_key_exists($stattype[$statId], $CharItemStats))
-
$itemStat[$stattype[$statId]] += $itemData["stat_value".$i];
-
}
-
else
-
break;
-
}
-
for($i = 1; $i <= 5; $i ++)
-
{
-
// only when effect is triggered "on equip"
-
if($itemData["spellid_".$i] && $itemData["spelltrigger_".$i] == 1)
-
{
-
$spell_bonuses = spell_bonuses($itemData["spellid_".$i]);
-
foreach($spell_bonuses as $key => $value)
-
$itemStat[$key] += $value;
-
}
-
}
-
$db_fields = array(
-
"item_id" => $itemid,
-
"mangosdbkey" => $realms[REALM_NAME][2],
-
"item_frostdmg" => $itemStat["frostdmg"],
-
"item_firedmg" => $itemStat["firedmg"],
-
"item_naturedmg" => $itemStat["naturedmg"],
-
"item_shadowdmg" => $itemStat["shadowdmg"],
-
"item_arcanedmg" => $itemStat["arcanedmg"],
-
"item_holydmg" => $itemStat["holydmg"],
-
"item_healing" => $itemStat["healing"],
-
"item_spelldmg" => $itemStat["spelldmg"],
-
"item_spellpower" => $itemStat["spellpower"],
-
);
-
return InsertCache($db_fields , 'cache_item_spellstats');
-
}
-
function cache_item_tooltip($itemid)
-
{
-
global $realms;
-
require_once "tooltipmgr.php";
-
$item_tooltip = outputTooltip($itemid);
-
$db_fields = array(
-
"item_id" => $itemid,
-
"mangosdbkey" => $realms[REALM_NAME][2],
-
"item_html" => $item_tooltip[0],
-
"item_info_html" => $item_tooltip[1],
-
);
-
return InsertCache($db_fields , 'cache_item_tooltip');
-
}
-
function cache_item_char($itemid, $owner, $slot, $itemguid, $itemlist)
-
{
-
global $realms, $defines, $CharItemStats;
-
require_once "tooltipmgr.php";
-
$itemStat = array();
-
foreach($CharItemStats as $key)
-
$itemStat[$key] = 0;
-
$enchant_array = array(
-
$defines["PERMANENT"][CLIENT],
-
$defines["SOCKET_1"][CLIENT],
-
$defines["SOCKET_1"][CLIENT] + 3,
-
$defines["SOCKET_1"][CLIENT] + 6,
-
$defines["SOCKET_BONUS"][CLIENT],
-
);
-
switchConnection("characters", REALM_NAME);
-
$enchantmentsData = explode(' ', mysql_result(execute_query("SELECT `data` FROM `item_instance` WHERE `guid` = ".$itemguid." LIMIT 1"), 0));
-
// Random Enchantments
-
switchConnection("mangos", REALM_NAME);
-
$itemData = mysql_fetch_assoc(execute_query("SELECT `RandomProperty`, `RandomSuffix`, `ItemLevel`, `InventoryType`, `Quality` FROM `item_template` WHERE `entry` = ".$itemid." LIMIT 1", "Error in item cache process for item ".$itemid));
-
$FirstEnchant = $defines["RANDOM_1"][CLIENT];
-
if($itemData["RandomProperty"] || $itemData["RandomSuffix"])
-
{
-
if($itemData["RandomProperty"])
-
$FirstEnchant += 6;
-
else //if($itemData["RandomSuffix"])
-
{
-
switchConnection("armory", REALM_NAME);
-
$ItemRandomData = mysql_fetch_assoc(execute_query("SELECT `enchvalue_1`, `enchvalue_2`, `enchvalue_3` FROM `itemrandomsuffix`
-
WHERE `spellitemench_1` = ".$enchantmentsData[$FirstEnchant]." AND `spellitemench_2` = ".$enchantmentsData[$FirstEnchant+3]." AND `spellitemench_3` = ".$enchantmentsData[$FirstEnchant+6]." LIMIT 1"));
-
}
-
$enchant_array[] = $FirstEnchant;
-
$enchant_array[] = $FirstEnchant + 3;
-
$enchant_array[] = $FirstEnchant + 6;
-
}
-
switchConnection("armory", REALM_NAME);
-
foreach($enchant_array as $key)
-
{
-
if($enchantmentsData[$key])
-
{
-
$enchantment = mysql_fetch_assoc(execute_query("SELECT `statorspell1`, `statorspell2`, `statorspell3`, `type1`, `type2`, `type3` FROM `spellitemenchantment` WHERE `id` = ".$enchantmentsData[$key]." LIMIT 1"));
-
for($i = 1; $i <= 3; $i ++)
-
{
-
if($enchantment["type".$i] == 3)
-
{
-
if($itemData["RandomSuffix"] && $key >= $FirstEnchant)
-
{
-
$suffixFactor = GenerateEnchSuffixFactor($itemData["ItemLevel"], $itemData["InventoryType"], $itemData["Quality"]);
-
$enchantvalue = round($suffixFactor*($ItemRandomData["enchvalue_".$i]/10000));
-
$spell_bonuses = spell_bonuses($enchantment["statorspell".$i], $enchantvalue);
-
}
-
else
-
$spell_bonuses = spell_bonuses($enchantment["statorspell".$i]);
-
foreach($spell_bonuses as $key => $value)
-
$itemStat[$key] += $value;
-
}
-
}
-
}
-
}
-
$db_fields = array(
-
"item_guid" => $itemguid,
-
"chardbkey" => $realms[REALM_NAME][1],
-
"item_owner" => $owner,
-
"item_slot" => $slot,
-
"item_html" => outputTooltip($itemid, $itemguid, $itemlist),
-
"item_frostdmg" => $itemStat["frostdmg"],
-
"item_firedmg" => $itemStat["firedmg"],
-
"item_naturedmg" => $itemStat["naturedmg"],
-
"item_shadowdmg" => $itemStat["shadowdmg"],
-
"item_arcanedmg" => $itemStat["arcanedmg"],
-
"item_holydmg" => $itemStat["holydmg"],
-
"item_healing" => $itemStat["healing"],
-
"item_spelldmg" => $itemStat["spelldmg"],
-
"item_spellpower" => $itemStat["spellpower"],
-
);
-
return InsertCache($db_fields , 'cache_item_char');
-
}
-
function cache_item_search($itemid)
-
{
-
global $config, $realms;
-
switchConnection("mangos", REALM_NAME);
-
if($config['locales'])
-
{
-
$nameloc="name_loc".$config['locales'];
-
$itemData = mysql_fetch_assoc(execute_query("SELECT `name`, `".$nameloc."`, `ItemLevel`, `Quality`, `ItemLevel`, `Flags` FROM `item_template` LEFT JOIN `locales_item` ON `item_template`.`entry` = `locales_item`.`entry` WHERE `item_template`.`entry` = ".$itemid." LIMIT 1", "Error in item cache process for item ".$itemid));
-
if($itemData[$nameloc])
-
$itemData["name"] = $itemData[$nameloc];
-
}
-
else
-
$itemData = mysql_fetch_assoc(execute_query("SELECT `name`, `ItemLevel`, `Quality`, `ItemLevel`, `Flags` FROM `item_template` WHERE `entry` = ".$itemid." LIMIT 1", "Error in item cache process for item ".$itemid));
-
if(($itemData["Flags"] & 32768) == 32768)
-
$pvpreward = 1;
-
else
-
$pvpreward = 0;
-
$db_fields = array(
-
"item_id" => $itemid,
-
"mangosdbkey" => $realms[REALM_NAME][2],
-
"item_name" => $itemData["name"],
-
"item_level" => $itemData["ItemLevel"],
-
"item_source" => GetItemSource($itemid,$pvpreward),
-
"item_relevance" => $itemData["Quality"]*25+$itemData["ItemLevel"],
-
);
-
return InsertCache($db_fields, 'cache_item_search');
-
}
-
function InsertCache($db_fields, $db)
-
{
-
// Insert
-
switchConnection("armory", REALM_NAME);
-
$querystring = "INSERT INTO `".$db."` (";
-
foreach($db_fields as $field => $value)
-
$querystring .= "`".$field."`,";
-
// Chop the end of $querystring off
-
$querystring = substr($querystring, 0, -1);
-
$querystring .= ") VALUES (";
-
foreach($db_fields as $field => $value)
-
$querystring .= "'".str_replace("'", "\'", $value)."',";
-
// Chop the end off again
-
$querystring = substr($querystring, 0, -1);
-
$querystring .= ")";
-
execute_query($querystring, "Could not cache: ");
-
return $db_fields; //return an associative array
-
}
-
function GetNameFromDB($Id, $table)
-
{
-
switchConnection("armory", REALM_NAME);
-
$Query = execute_query("SELECT `name` FROM `".$table."` WHERE `id`=".$Id." LIMIT 1");
-
if($row = mysql_fetch_assoc($Query))
-
return $row["name"];
-
else
-
return "";
-
}
-
// validate input - preventing SQL injection
-
function validate_string($string)
-
{
-
$string = trim($string);
-
// strips excess whitespace
-
$string = preg_replace('/\s\s+/', ' ', $string);
-
if(preg_match('/[^[:alnum:]\sА-ПР-Яа-пр-я]/', $string))
-
$string = "";
-
return $string;
-
}
-
function exclude_GMs()
-
{
-
global $config;
-
$excludeGMs = "";
-
if($config['ExcludeGMs'])
-
$excludeGMs = " AND (`extra_flags` & 1) = 0";
-
if(isset($_SESSION['GM']))
-
$excludeGMs = "";
-
return $excludeGMs;
-
}
-
function microtime_float()
-
{
-
list($utime, $time) = explode(" ", microtime());
-
return ((float)$utime + (float)$time);
-
}
-
function ordinal_suffix($number)
-
{
-
global $lang;
-
if(!$number)
-
return $lang["none"];
-
switch($number % 10)
-
{
-
case 1: return $number.$lang['st'];
-
case 2: return $number.$lang['nd'];
-
case 3: return $number.$lang['rd'];
-
default: return $number.$lang['th'];
-
}
-
}
-
function startcontenttable($class="full-list")
-
{
-
echo "<div class=\"list\">
-
<div class=\"",$class,"\">
-
<div class=\"tip\" style=\"clear: left;\">
-
<table width=\"100\">
-
<tr>
-
<td class=\"tip-top-left\"></td><td class=\"tip-top\"></td><td class=\"tip-top-right\"></td>
-
</tr>
-
<tr>
-
<td class=\"tip-left\"></td><td class=\"tip-bg\">";
-
}
-
function endcontenttable()
-
{
-
echo "</td>
-
<td class=\"tip-right\"></td>
-
</tr>
-
<tr>
-
<td class=\"tip-bot-left\"></td><td class=\"tip-bot\"></td><td class=\"tip-bot-right\"></td>
-
</tr>
-
</table>
-
</div>
-
</div>
-
</div>";
-
}
-
function showerror($errTitle, $errMessage)
-
{
-
startcontenttable("team-side");
-
echo "Error - ",$errTitle,"<br>",$errMessage;
-
endcontenttable();
-
}
-
function guild_arenateam_tooltip_frame($type, $id, $name, $leader_name, $num_members)
-
{
-
global $lang;
-
if($type == "guild")
-
{
-
$type_name = $lang["guild"];
-
$id_field = "guildid";
-
$leader = $lang["leader"];
-
}
-
else//if($type == "team")
-
{
-
$type_name = $lang["arena_team"];
-
$id_field = "arenateamid";
-
$leader = $lang["captain"];
-
}
-
$guild_arenateam_tooltip = "<a href=\"index.php?searchType=".$type."info&".$id_field."=".$id."&realm=".REALM_NAME."\" onmouseover=\"showTip('";
-
$guild_arenateam_tooltip .= "<span class=\'profile-tooltip-header\'>".$type_name." - ".$name."</span><br>";
-
$guild_arenateam_tooltip .= "<span class=\'profile-tooltip-description\'>".$leader.": ".$leader_name."<br>".$lang["members"].": ".$num_members."</span>";
-
$guild_arenateam_tooltip .= "')\" onmouseout=\"hideTip()\">".$name."</a>";
-
return $guild_arenateam_tooltip;
-
}
-
function guild_tooltip($guildid)
-
{
-
global $lang, $guildInfoTooltip;
-
if(!$guildid)
-
return $lang["none"];
-
if(!isset($guildInfoTooltip[$guildid]))
-
{
-
switchConnection("characters", REALM_NAME);
-
$glinkresults = mysql_fetch_assoc(execute_query("SELECT `name`, `leaderguid` FROM `guild` WHERE `guildid` = ".$guildid." LIMIT 1"));
-
if($guildLeader = mysql_fetch_assoc(execute_query("SELECT `name` FROM `characters` WHERE `guid` = ".$glinkresults["leaderguid"]." LIMIT 1")))
-
$guildLeaderName = $guildLeader["name"];
-
else
-
$guildLeaderName = $lang["unknown"];
-
$guildMembers = mysql_result(execute_query("SELECT COUNT(*) FROM `guild_member` WHERE `guildid` = ".$guildid), 0);
-
$guildInfoTooltip[$guildid] = guild_arenateam_tooltip_frame("guild", $guildid, $glinkresults["name"], $guildLeaderName, $guildMembers);
-
}
-
return $guildInfoTooltip[$guildid];
-
}
-
function initialize_realm()
-
{
-
global $realms;
-
if(isset($_GET["realm"]) && array_key_exists($realm_name = stripslashes($_GET["realm"]), $realms))
-
define("REALM_NAME", $realm_name);
-
else
-
define("REALM_NAME", DefaultRealmName);
-
switchConnection("armory", REALM_NAME);
-
define("CLIENT", mysql_result(execute_query("SELECT `value` FROM `conf_client` LIMIT 1"), 0));
-
define("LANGUAGE", mysql_result(execute_query("SELECT `value` FROM `conf_lang` LIMIT 1"), 0));
-
}
-
?>
ill post the rest up in a moment if this is what you meant but as you can see this isnt the code of a new programmer he took it and went mad i think i sent it to him and a week later i got it back with some fixes and around 20 new files there is some define functions at the bottom are those what im looking for?
i got it fixed thanks for the help u nuged me in the right direction
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Tom |
last post by:
A question for gui application programmers. . .
I 've got some GUI programs, written in Python/wxPython, and I've got
a help button and a help menu item. Also, I've got a compiled file
made with the microsoft HTML workshop utility, lets call it
c:\path\help.chm. My question is how do you launch it from the GUI?
What logic do I put behind the "help" button, in other words.
I thought it would be
os.spawnv(os.P_DETACH,...
|
by: Sarir Khamsi |
last post by:
Is there a way to get help the way you get it from the Python
interpreter (eg, 'help(dir)' gives help on the 'dir' command) in the
module cmd.Cmd? I know how to add commands and help text to cmd.Cmd
but I would also like to get the man-page-like help for classes and
functions. Does anyone know how to do that? Thanks.
Sarir
|
by: Sudheer Kareem |
last post by:
Dear All
Please tell me how to assosiate help files with my Vb.net
Project.
Regards
Sudheer
|
by: Colin J. Williams |
last post by:
Python advertises some basic service:
C:\Python24>python
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
With numarray, help gives unhelpful responses:
|
by: Corepaul |
last post by:
Missing Help Files
When I enter "recordset" as the keyword and search the Visual Basic Help index,
I get many topics of interest in the resulting list. But there isn't any
information available from clicking on many of the available topics (mostly
methods but some properties are also unavailable). This same problem occurs
with many, if not most, keywords.
Is there any way I can activate these "missing" help topics? HELP!
| |
by: Steve |
last post by:
I have written a help file (chm) for a DLL and referenced it using Help.ShowHelp
My expectation is that a developer using my DLL would be able to access this help file during his development time using "F1" help within the VB IDE. Is this expectation achievable
In trying to test my help file in the IDE, I have a solution with 2 projects: the DLL and a tester. VB does not look for my help file; instead, it looks for path to my source code...
|
by: Mark |
last post by:
I have loaded Visual Studio .net on my home computer and my laptop, but my
home computer has an abbreviated help screen not 2% of the help on my laptop.
All the settings look the same on both including search the internet for
help, but the help is worthless. Any ideas?
|
by: JonathanOrlev |
last post by:
Hello everybody,
I wrote this comment in another message of mine, but decided to post it
again as a standalone message.
I think that Microsoft's Office 2003 help system is horrible, probably
the worst I
ever seen.
I almost cannot find anything I need, including things I
|
by: trunxnirvana007 |
last post by:
'UPGRADE_WARNING: Array has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"'
'UPGRADE_WARNING: Couldn't resolve default property of object Label. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
Label = New Object(){Box1, Box2, Box3, Box4, Box5, Box6, Box7, Box8, Box9, Box10, Box11,...
|
by: hitencontractor |
last post by:
I am working on .NET Version 2003 making an SDI application that calls MS Excel 2003.
I added a menu item called "MyApp Help" in the end of the menu bar to show Help-> About.
The application calls MS Excel, so the scenario is that I am supposed to see the Excel Menu bar,
FILE EDIT VIEW INSERT ... HELP.
I am able to see the menu bar, but in case of Help, I see the Help of Excel and help of my application, both as a submenu of help.
...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |