Ir para conteúdo
  • Cadastre-se

Ajuda com a parte guildwar do site


Posts Recomendados

Galera, eu to com problemas na parte guildwars, quando aperta nela pra ver as guilds que estao em war e ver a pontuação de quantos cada guild matou aparece isso ai:

 

post-11504-0-46942100-1422210995_thumb.j

 

alguem pode me ajudar porfavor?

Link para o post
Compartilhar em outros sites

Isso quer dizer que não existe o arquivo wars.php (ou seja, não existe o arquivo da pagina) no local certo (C:\xampp\php\pear)

 

 

-----------------------------------------------------------------------------------------------------------

O tópico foi movido para a área correta, preste mais atenção da próxima vez!
Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680

Este tópico foi movido:
De: "OTServSuporte OTServSuporte de Scripts"
Para: "OTServSuporte OTServSuporte de WebSites"

Te ajudei?? REP + e ficamos quites... <ahttp://www.tibiaking.com/forum/uploads/emoticons/default_happyy.png' alt=';D'>

Atenciosamente,

Daniel.

Abraços!

Link para o post
Compartilhar em outros sites
<?PHP
session_start();
ob_start("ob_gzhandler");
//require('./exaBD.php');
function microtime_float() {
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
$time_start = microtime_float();
 
//##### CONFIG #####
include('config-and-functions.php');
$action = $_REQUEST['action'];
 
//##### LOGOUT #####
if($action == "logout") {
unset($_SESSION['account']);
unset($_SESSION['password']);
}
 
//##### LOGIN #####
$logged = FALSE;
if(isset($_SESSION['account'])) {
$account_logged = $ots->createObject('Account');
$account_logged->load($_SESSION['account']);
if($account_logged->isLoaded() && $account_logged->getPassword() == $_SESSION['password']) {
$logged = TRUE;
$group_id_of_acc_logged = $account_logged->getPageAccess();
} else {
$logged = FALSE;
unset($_SESSION['account']);
unset($account_logged);
}
}
$login_account = strtoupper(trim($_POST['account_login']));
$login_password = trim($_POST['password_login']);
if(!$logged && !empty($login_account) && !empty($login_password)) {
$login_password = password_ency($login_password);
$account_logged = $ots->createObject('Account');
$account_logged->find($login_account);
if($account_logged->isLoaded()) {
if($login_password == $account_logged->getPassword()) {
$_SESSION['account'] = $account_logged->getId();
$_SESSION['password'] = $login_password;
$logged = TRUE;
$account_logged->setCustomField("page_lastday", time());
$group_id_of_acc_logged = $account_logged->getPageAccess();
} else
$logged = FALSE;
}
}
 
//#### LOAD PAGE ##########
if(empty($_REQUEST['subtopic'])) {
$_REQUEST['subtopic'] = "latestnews";
$subtopic = "latestnews";
}
switch($_REQUEST['subtopic']) {
 
        case "latestnews":
                $topic = "Latest News";
                $subtopic = "latestnews";
                include("latestnews.php");
        break;
       
        case "creatures";
                $topic = "Creatures";
                $subtopic = "creatures";
                include("creatures.php");
        break;
       
        case "spells";
                $topic = "Spells";
                $subtopic = "spells";
                include("spells.php");
        break;
       
  case "bugtracker";
         $topic = "Bug Tracker";
         $subtopic = "bugtracker";
         include("bug.php");
break;  
 
        case "experiencetable";
                $topic = "Experience Table";
                $subtopic = "experiencetable";
                include("experiencetable.php");
        break;
       
        case "characters";
                $topic = "Characters";
                $subtopic = "characters";
                include("characters.php");
        break;
       
        case "whoisonline";
                $topic = "Who is online?";
                $subtopic = "whoisonline";
                include("whoisonline.php");
        break;
       
        case "highscores";
                $topic = "Highscores";
                $subtopic = "highscores";
                include("highscores.php");
        break;
       
        case "killstatistics";
                $topic = "Last Kills";
                $subtopic = "killstatistics";
                include("killstatistics.php");
        break;
       
        case "guilds";
                $topic = "Guilds";
                $subtopic = "guilds";
                include("guilds.php");
        break;
 
case "wars";
$subtopic = "wars";
$topic = "Guild Wars";
include("wars.php");
break;
 
        case "accountmanagement";
                $topic = "Account Management";
                $subtopic = "accountmanagement";
                include("accountmanagement.php");
        break;
       
        case "createaccount";
                $topic = "Create Account";
                $subtopic = "createaccount";
                include("createaccount.php");
        break;
       
        case "lostaccount";
                $topic = "Lost Account Interface";
                $subtopic = "lostaccount";
                include("lostaccount.php");
        break;
 
        case "tibiarules";
                $topic = "Server Rules";
                $subtopic = "tibiarules";
                include("tibiarules.php");
        break;
 
        case "adminpanel":
                $topic = "Admin Panel";
                $subtopic = "adminpanel";
                include("adminpanel.php");
        break;
 
        case "confirmacao":
                $topic = "Confirmacao";
                $subtopic = "confirmacao";
                include("confirmacao.php");
        break;
 
        case "vantagens":
                $topic = "Vantagens";
                $subtopic = "vantagens";
                include("vantagens.php");
        break;
       
        case "forum":
                $topic = "Forum";
                $subtopic = "forum";
                include("forum.php");
        break;
       
        case "team";
                $subtopic = "team";
                $topic = "Gamemasters List";
                include("team.php");
        break;
 
        case "downloads";
                $subtopic = "downloads";
                $topic = "Downloads";
                include("downloads.php");
        break;
 
        case "serverinfo";
                $subtopic = "serverinfo";
                $topic = "Server Info";
                include("serverinfo.php");
        break;
 
        case "shopsystem";
                $subtopic = "shopsystem";
                $topic = "Shop System";
                include("shopsystem.php");
        break;
       
        case "doacao";
                $subtopic = "doacao";
                $topic = "Doacao";
                include("doacao.php");
        break;
 
        case "gallery";
                $subtopic = "gallery";
                $topic = "Gallery";
                include("gallery.php");
        break;
       
        case "namelock";
                $subtopic = "namelock";
                $topic = "Namelock Manager";
                include("namelocks.php");
        break;
       
        case "archive";
                $subtopic = "archive";
                $topic = "News Archives";
                include("archive.php");
        break;
       
        case "mail";
                $subtopic = "mail";
                $topic = "Mass emails sender";
                include("mail.php");
        break;
 
case "shopadmin";
$subtopic = "shopadmin";
$topic = "Shop Admin";
include("shopadmin.php");
break;
 
case "records";
$subtopic = "records";
$topic = "Players Online Records";
include("records.php");
break;
 
case "restarter";
$subtopic = "restarter";
$topic = "Restarter";
include("restarter.php");
break;
     
case "bans";
$subtopic = "bans";
$topic = "Ban List";
include("bans.php");
break;
 
  case "polls";
$topic = "Polls";
$subtopic = "polls";
include("polls.php");
break;
 
case "changelog";
    $topic = "Changelog";
  $subtopic = "changelog";
  include("changelog.php");
break; 
 
case "fragers";
    $topic = "Top Fragers";
  $subtopic = "fragers";
  include("fragers.php");
break;
 
case "paypal";
    $topic = "Donate via PayPal";
  $subtopic = "paypal";
  include("paypal.php");
break;
}
 
if(empty($topic)) {
$title = $GLOBALS['config']['server']["serverName"]." - OTS";
$main_content .= 'Invalid subtopic. Can\'t load page.';
} else {
$title = $GLOBALS['config']['server']["serverName"]." - ".$topic;
}
 
//#####LAYOUT#####
$layout_header = '<script type=\'text/javascript\'>
function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}
 
function MouseOverBigButton(source)
{
  source.firstChild.style.visibility = "visible";
}
function MouseOutBigButton(source)
{
  source.firstChild.style.visibility = "hidden";
}
function BigButtonAction(path)
{
  window.location = path;
}
var';
if($logged) { $layout_header .= "loginStatus=1; loginStatus='true';"; } else { $layout_header .= "loginStatus=0; loginStatus='false';"; };
$layout_header .= " var activeSubmenuItem='".$subtopic."';</script>";
include($layout_name."/layout.php");
ob_end_flush();
?>
Link para o post
Compartilhar em outros sites

Poderia colocar ele dentro de um spoiler né.. Ver se agora funciona! Se não funcionar, vai na pasta do seu xampp -> htdocs e ver qual é o nome do seu guild wars em .php (se é guildwars, wars, war ou guildwar) ou outro nome..

 

<?PHP

session_start();

ob_start("ob_gzhandler");

//require('./exaBD.php');

function microtime_float() {

list($usec, $sec) = explode(" ", microtime());

return ((float)$usec + (float)$sec);

}

$time_start = microtime_float();

 

//##### CONFIG #####

include('config-and-functions.php');

$action = $_REQUEST['action'];

 

//##### LOGOUT #####

if($action == "logout") {

unset($_SESSION['account']);

unset($_SESSION['password']);

}

 

//##### LOGIN #####

$logged = FALSE;

if(isset($_SESSION['account'])) {

$account_logged = $ots->createObject('Account');

$account_logged->load($_SESSION['account']);

if($account_logged->isLoaded() && $account_logged->getPassword() == $_SESSION['password']) {

$logged = TRUE;

$group_id_of_acc_logged = $account_logged->getPageAccess();

} else {

$logged = FALSE;

unset($_SESSION['account']);

unset($account_logged);

}

}

$login_account = strtoupper(trim($_POST['account_login']));

$login_password = trim($_POST['password_login']);

if(!$logged && !empty($login_account) && !empty($login_password)) {

$login_password = password_ency($login_password);

$account_logged = $ots->createObject('Account');

$account_logged->find($login_account);

if($account_logged->isLoaded()) {

if($login_password == $account_logged->getPassword()) {

$_SESSION['account'] = $account_logged->getId();

$_SESSION['password'] = $login_password;

$logged = TRUE;

$account_logged->setCustomField("page_lastday", time());

$group_id_of_acc_logged = $account_logged->getPageAccess();

} else

$logged = FALSE;

}

}

 

//#### LOAD PAGE ##########

if(empty($_REQUEST['subtopic'])) {

$_REQUEST['subtopic'] = "latestnews";

$subtopic = "latestnews";

}

switch($_REQUEST['subtopic']) {

        case "latestnews":

                $topic = "Latest News";

                $subtopic = "latestnews";

                include("latestnews.php");

        break;

      

        case "creatures";

                $topic = "Creatures";

                $subtopic = "creatures";

                include("creatures.php");

        break;

      

        case "spells";

                $topic = "Spells";

                $subtopic = "spells";

                include("spells.php");

        break;

      

  case "bugtracker";

         $topic = "Bug Tracker";

         $subtopic = "bugtracker";

         include("bug.php");

break; 

        case "experiencetable";

                $topic = "Experience Table";

                $subtopic = "experiencetable";

                include("experiencetable.php");

        break;

      

        case "characters";

                $topic = "Characters";

                $subtopic = "characters";

                include("characters.php");

        break;

      

        case "whoisonline";

                $topic = "Who is online?";

                $subtopic = "whoisonline";

                include("whoisonline.php");

        break;

      

        case "highscores";

                $topic = "Highscores";

                $subtopic = "highscores";

                include("highscores.php");

        break;

      

        case "killstatistics";

                $topic = "Last Kills";

                $subtopic = "killstatistics";

                include("killstatistics.php");

        break;

      

        case "guilds";

                $topic = "Guilds";

                $subtopic = "guilds";

                include("guilds.php");

        break;

 

        case "war";

                $subtopic = "war";

                $topic = "Guild Wars";

                include("war.php");

        break;

 

        case "accountmanagement";

                $topic = "Account Management";

                $subtopic = "accountmanagement";

                include("accountmanagement.php");

        break;

      

        case "createaccount";

                $topic = "Create Account";

                $subtopic = "createaccount";

                include("createaccount.php");

        break;

      

        case "lostaccount";

                $topic = "Lost Account Interface";

                $subtopic = "lostaccount";

                include("lostaccount.php");

        break;

        case "tibiarules";

                $topic = "Server Rules";

                $subtopic = "tibiarules";

                include("tibiarules.php");

        break;

        case "adminpanel":

                $topic = "Admin Panel";

                $subtopic = "adminpanel";

                include("adminpanel.php");

        break;

        case "confirmacao":

                $topic = "Confirmacao";

                $subtopic = "confirmacao";

                include("confirmacao.php");

        break;

        case "vantagens":

                $topic = "Vantagens";

                $subtopic = "vantagens";

                include("vantagens.php");

        break;

      

        case "forum":

                $topic = "Forum";

                $subtopic = "forum";

                include("forum.php");

        break;

      

        case "team";

                $subtopic = "team";

                $topic = "Gamemasters List";

                include("team.php");

        break;

        case "downloads";

                $subtopic = "downloads";

                $topic = "Downloads";

                include("downloads.php");

        break;

        case "serverinfo";

                $subtopic = "serverinfo";

                $topic = "Server Info";

                include("serverinfo.php");

        break;

        case "shopsystem";

                $subtopic = "shopsystem";

                $topic = "Shop System";

                include("shopsystem.php");

        break;

      

        case "doacao";

                $subtopic = "doacao";

                $topic = "Doacao";

                include("doacao.php");

        break;

        case "gallery";

                $subtopic = "gallery";

                $topic = "Gallery";

                include("gallery.php");

        break;

      

        case "namelock";

                $subtopic = "namelock";

                $topic = "Namelock Manager";

                include("namelocks.php");

        break;

      

        case "archive";

                $subtopic = "archive";

                $topic = "News Archives";

                include("archive.php");

        break;

      

        case "mail";

                $subtopic = "mail";

                $topic = "Mass emails sender";

                include("mail.php");

        break;

case "shopadmin";

$subtopic = "shopadmin";

$topic = "Shop Admin";

include("shopadmin.php");

break;

case "records";

$subtopic = "records";

$topic = "Players Online Records";

include("records.php");

break;

case "restarter";

$subtopic = "restarter";

$topic = "Restarter";

include("restarter.php");

break;

    

case "bans";

$subtopic = "bans";

$topic = "Ban List";

include("bans.php");

break;

  case "polls";

$topic = "Polls";

$subtopic = "polls";

include("polls.php");

break;

case "changelog";

    $topic = "Changelog";

  $subtopic = "changelog";

  include("changelog.php");

break;

case "fragers";

    $topic = "Top Fragers";

  $subtopic = "fragers";

  include("fragers.php");

break;

case "paypal";

    $topic = "Donate via PayPal";

  $subtopic = "paypal";

  include("paypal.php");

break;

}

 

if(empty($topic)) {

$title = $GLOBALS['config']['server']["serverName"]." - OTS";

$main_content .= 'Invalid subtopic. Can\'t load page.';

} else {

$title = $GLOBALS['config']['server']["serverName"]." - ".$topic;

}

//#####LAYOUT#####

$layout_header = '<script type=\'text/javascript\'>

function GetXmlHttpObject()

{

var xmlHttp=null;

try

  {

  xmlHttp=new XMLHttpRequest();

  }

catch (e)

  {

  try

    {

    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

    }

  catch (e)

    {

    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

    }

  }

return xmlHttp;

}

 

function MouseOverBigButton(source)

{

  source.firstChild.style.visibility = "visible";

}

function MouseOutBigButton(source)

{

  source.firstChild.style.visibility = "hidden";

}

function BigButtonAction(path)

{

  window.location = path;

}

var';

if($logged) { $layout_header .= "loginStatus=1; loginStatus='true';"; } else { $layout_header .= "loginStatus=0; loginStatus='false';"; };

$layout_header .= " var activeSubmenuItem='".$subtopic."';</script>";

include($layout_name."/layout.php");

ob_end_flush();

?>

Editado por thiagobji (veja o histórico de edições)

horizontallogowhite1.png

Link para o post
Compartilhar em outros sites

Amigo faz assim, vá na pasta C:\xampp\php\pear e crie um arquivo chamado wars.php e coloque isso dentro:

<?php
$main_content = "
<script type=\"text/javascript\"><!--
function show_hide(flip)
{
	var tmp = document.getElementById(flip);
	if(tmp)
		tmp.style.display = tmp.style.display == 'none' ? '' : 'none';
}


--></script>
<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"4\">
<tr bgcolor=" . $config['site']['vdarkborder'] . ">
    <td width=27% class=white><center><b>Command</center></b></td>
    <td width=50% class=white><center><b>Description</center></b></td>

    <td width=23% class=white><center><b>Example</center></b></td>
</tr>
<tr bgcolor=" . $config['site']['darkborder'] . ">
    <td width=15%><b><center>/war invite, guildname, fraglimit</center></b></td>
    <td width=45%><center>This will invite <b>guildname</b> to have a war with a fraglimit of <b>fraglimit</b></center> </td>
    <td width=25%><center>/war invite, Hardest, 50</center></td>

</tr>
<tr bgcolor=" . $config['site']['lightborder'] . ">
    <td width=15%><b><center>/war cancel, guildname</center></b></td>
    <td width=45%><center>This will cancel the war invitation to the guild <b>guildname</b>.</center> </td>
    <td width=25%><center>/war cancel, Hardest</center></td>
</tr>
<tr bgcolor=" . $config['site']['darkborder'] . ">
    <td width=15%><b><center>/war accept, guildname</center></b></td>

    <td width=45%><center>This will accept the war invitation of the guild <b>guildname</b>.</center> </td>
    <td width=25%><center>/war accept, Hardest</center></td>
</tr>
<tr bgcolor=" . $config['site']['lightborder'] . ">
    <td width=15%><b><center>/war reject, guildname</center></b></td>
    <td width=45%><center>This will reject the war invitation of the guild <b>guildname</b>.</center> </td>

    <td width=25%><center>/war reject, Hardest</center></td>
</tr>
</table>
<br>
<div align=\"center\"><font style=\"font-size:16px; font-weight:bold;\">Guilds War</font></div><br />
<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"4\">
<tr>
<td style=\"background: " . $config['site']['vdarkborder'] . "\" class=\"white\" width=\"150\"><b>Aggressor</b></td>
<td style=\"background: " . $config['site']['vdarkborder'] . "\" class=\"white\"><b>Information</b></td>
<td style=\"background: " . $config['site']['vdarkborder'] . "\" class=\"white\" width=\"150\"><b>Enemy</b></td>
</tr>";
 
$count = 0;
foreach($SQL->query('SELECT * FROM `guild_wars` WHERE `status` IN (1,4) OR ((`end` >= (UNIX_TIMESTAMP() - 604800) OR `end` = 0) AND `status` IN (0,5));') as $war)
{
	$a = $ots->createObject('Guild');
	$a->load($war['guild_id']);
	if(!$a->isLoaded())
		continue;
 
	$e = $ots->createObject('Guild');
	$e->load($war['enemy_id']);
	if(!$e->isLoaded())
		continue;
 
	$alogo = $a->getCustomField('logo_gfx_name');
	if(empty($alogo) || !file_exists('guilds/' . $alogo))
		$alogo = 'default_logo.gif';
 
	$elogo = $e->getCustomField('logo_gfx_name');
	if(empty($elogo) || !file_exists('guilds/' . $elogo))
		$elogo = 'default_logo.gif';
 
	$count++;
	$main_content .= "<tr style=\"background: " . (is_int($count / 2) ? $config['site']['darkborder'] : $config['site']['lightborder']) . ";\">
<td align=\"center\"><a href=\"?subtopic=guilds&action=show&guild=".$a->getId()."\"><img src=\"guilds/".$alogo."\" width=\"64\" height=\"64\" border=\"0\"/><br />".$a->getName()."</a></td>
<td class=\"\" align=\"center\">";
	switch($war['status'])
	{
		case 0:
		{
			$main_content .= "<b>Pending acceptation</b><br />Invited on " . date("M d Y, H:i:s", $war['begin']) . " for " . ($war['end'] > 0 ? (($war['end'] - $war['begin']) / 86400) : "unspecified") . " days. The frag limit is set to " . $war['frags'] . " frags, " . ($war['payment'] > 0 ? "with payment of " . $war['payment'] . " bronze coins." : "without any payment.")."<br />Will expire in three days.";
			break;
		}
 
		case 3:
		{
			$main_content .= "<s>Canceled invitation</s><br />Sent invite on " . date("M d Y, H:i:s", $war['begin']) . ", canceled on " . date("M d Y, H:i:s", $war['end']) . ".";
			break;
		}
 
		case 2:
		{
			$main_content .= "Rejected invitation<br />Invited on " . date("M d Y, H:i:s", $war['begin']) . ", rejected on " . date("M d Y, H:i:s", $war['end']) . ".";
			break;
		}
 
		case 1:
		{
			$main_content .= "<font size=\"12\"><span style=\"color: red;\">" . $war['guild_kills'] . "</span> : <span style=\"color: lime;\">" . $war['enemy_kills'] . "</span></font><br /><br /><span style=\"color: darkred; font-weight: bold;\">On a brutal war</span><br />Began on " . date("M d Y, H:i:s", $war['begin']) . ($war['end'] > 0 ? ", will end up at " . date("M d Y, H:i:s", $war['end']) : "") . ".<br />The frag limit is set to " . $war['frags'] . " frags, " . ($war['payment'] > 0 ? "with payment of " . $war['payment'] . " bronze coins." : "without any payment.");
			break;
		}
 
		case 4:
		{
			$main_content .= "<font size=\"12\"><span style=\"color: red;\">" . $war['guild_kills'] . "</span> : <span style=\"color: lime;\">" . $war['enemy_kills'] . "</span></font><br /><br /><span style=\"color: darkred;\">Pending end</span><br />Began on " . date("M d Y, H:i:s", $war['begin']) . ", signed armstice on " . date("M d Y, H:i:s", $war['end']) . ".<br />Will expire after reaching " . $war['frags'] . " frags. ".($war['payment'] > 0 ? "The payment is set to " . $war['payment'] . " bronze coins." : "There's no payment set.");
			break;
		}
 
		case 5:
		{
			$main_content .= "<b>Ended</b><br />Began on " . date("M d Y, H:i:s", $war['begin']) . ", ended on " . date("M d Y, H:i:s", $war['end']) . ". Frag statistics: <b><span style=\"color: red;\">" . $war['guild_kills'] . "</span></b> to <b><span style=\"color: lime;\">" . $war['enemy_kills'] . "</span></b>.";
			break;
		}
 
		default:
		{
			$main_content .= "Unknown, please contact with gamemaster.";
			break;
		}
	}
 
	$main_content .= "<br /><br /><a onclick=\"show_hide('war-details:" . $war['id'] . "'); return false;\" style=\"cursor: pointer;\">&raquo; Details &laquo;</a></td>
<td align=\"center\"><a href=\"?subtopic=guilds&action=show&guild=".$e->getId()."\"><img src=\"guilds/".$elogo."\" width=\"64\" height=\"64\" border=\"0\"/><br />".$e->getName()."</a></td>
</tr>
<tr id=\"war-details:" . $war['id'] . "\" style=\"display: none; background: " . (is_int($count / 2) ? $config['site']['darkborder'] : $config['site']['lightborder']) . ";\">
<td colspan=\"3\">";
	if(in_array($war['status'], array(1,4,5)))
	{
		$deaths = $SQL->query('SELECT `pd`.`id`, `pd`.`date`, `gk`.`guild_id` AS `enemy`, `p`.`name`, `pd`.`level`
FROM `guild_kills` gk
	LEFT JOIN `player_deaths` pd ON `gk`.`death_id` = `pd`.`id`
	LEFT JOIN `players` p ON `pd`.`player_id` = `p`.`id`
WHERE `gk`.`war_id` = ' . $war['id'] . ' AND `p`.`deleted` = 0
	ORDER BY `pd`.`date` DESC')->fetchAll();
		if(!empty($deaths))
		{
			foreach($deaths as $death)
			{
				$killers = $SQL->query('SELECT `p`.`name` AS `player_name`, `p`.`deleted` AS `player_exists`, `k`.`war` AS `is_war`
FROM `killers` k
	LEFT JOIN `player_killers` pk ON `k`.`id` = `pk`.`kill_id`
	LEFT JOIN `players` p ON `p`.`id` = `pk`.`player_id`
WHERE `k`.`death_id` = ' . $death['id'] . '
	ORDER BY `k`.`final_hit` DESC, `k`.`id` ASC')->fetchAll();
				$count = count($killers); $i = 0;
 
				$others = false;
				$main_content .= date("j M Y, H:i", $death['date']) . " <span style=\"font-weight: bold; color: " . ($death['enemy'] == $war['guild_id'] ? "red" : "lime") . ";\">+</span>
<a href=\"?subtopic=characters&name=" . urlencode($death['name']) . "\"><b>".$death['name']."</b></a> ";
				foreach($killers as $killer)
				{
					$i++;
					if($killer['is_war'] != 0)
					{
						if($i == 1)
							$main_content .= "killed at level <b>".$death['level']."</b> by ";
						else if($i == $count && $others == false)
							$main_content .= " and by ";
						else
							$main_content .= ", ";
 
						if($killer['player_exists'] == 0)
							$main_content .= "<a href=\"?subtopic=characters&name=".urlencode($killer['player_name'])."\">";
 
						$main_content .= $killer['player_name'];
						if($killer['player_exists'] == 0)
							$main_content .= "</a>";
					}
					else
						$others = true;
 
					if($i == $count)
					{
						if($others == true)
							$main_content .= " and few others";
 
						$main_content .= ".<br />";
					}
				}
			}
		}
		else
			$main_content .= "<center>There were no frags on this war so far.</center>";
	}
	else
		$main_content .= "<center>This war did not began yet.</center>";
 
	$main_content .= "</td>
</tr>";
}
 
if($count == 0)
	$main_content .= "<tr style=\"background: ".$config['site']['darkborder'].";\">
<td colspan=\"3\" align='center'>Currently there are no active wars.</td>
</tr>";
 
$main_content .= "</table>";
?>

 

 

----------------------------------------------------------------------------------------------

Amigos, gostaria de chamar a atenção para o que o erro relata:

iH2V3Oa.png

 

Fazendo a leitura do erro, dá pra poupar algum tempo...

Te ajudei?? REP + e ficamos quites... <ahttp://www.tibiaking.com/forum/uploads/emoticons/default_happyy.png' alt=';D'>

Atenciosamente,

Daniel.

Abraços!

Link para o post
Compartilhar em outros sites
  • 5 months later...

Me ajudem ! preciso por isso:

 

 

case "wars";
                $subtopic = "wars";
                $topic = "Guild Wars";
                include("wars.php");
        break;

 

Dentro da pasta Index, porem sempre da erro. Como faço pra por sem erro ? Plix

 

 

Index:

 

<?php

// comment to show E_NOTICE [undefinied variable etc.], comment if you want make script and see all errors
error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE);
 
// true = show sent queries and SQL queries status/status code/error message
define('DEBUG_DATABASE', false);
 
define('INITIALIZED', true);
 
// if not defined before, set 'false' to load all normal
if(!defined('ONLY_PAGE'))
define('ONLY_PAGE', false);
 
// check if site is disabled/requires installation
include_once('./system/load.loadCheck.php');
 
// fix user data, load config, enable class auto loader
include_once('./system/load.init.php');
 
// DATABASE
include_once('./system/load.database.php');
if(DEBUG_DATABASE)
Website::getDBHandle()->setPrintQueries(true);
// DATABASE END
 
// LOGIN
if(!ONLY_PAGE)
include_once('./system/load.login.php');
// LOGIN END
 
// COMPAT
// some parts in that file can be blocked because of ONLY_PAGE constant
include_once('./system/load.compat.php');
// COMPAT END
 
// LOAD PAGE
include_once('./system/load.page.php');
// LOAD PAGE END
 
// LAYOUT
// with ONLY_PAGE we return only page text, not layout
if(!ONLY_PAGE)
include_once('./system/load.layout.php');
else
echo $main_content;
// LAYOUT END
 
 
 
Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo