Jeg sidder og er ved at lave en klan siden med tilhørende war system som kan hvis hvad de næste kamp er og så videre. Nu vi jeg gerne hører hvad det her betyder jeg kan ik lige se noget.
Fatal error: main() [function.main]: Failed opening required '../../vwar/_class_db.php' (include_path='.;c:\\php4\\pear') in E:\\yogibear.dk\\sommer\\vwar\\extra\\nextactions.php on line 24
Kan vi få linje 24 og 23?
Med Venlig Hilsen: Chadi
http://chadi.h4f.dk
Her er hele nextactions.php filen:
<?php
@error_reporting(7);
/* #####################################################################################
*
* $Id: nextactions.php,v 1.2 2003/03/12 21:37:26 mabu Exp $
*
* This notice must remain untouched at all times.
*
* Modifications to the script, except the official addons or hacks,
* without the owners permission are prohibited.
* All rights reserved to their proper authors.
*
* Get the latest version at
http://www.vwar.de - Copyright (C) 2001-2003
*
* #####################################################################################
*/
// configuration
$numnextactions = "3"; // limit display to x next actions
$pathtovwar = "../../vwar/"; // relative or absolute path to your vwar directory (with / at the end!)
// ################################### display nextactions ############################
include($pathtovwar."_config.inc.php");
require_once($pathtovwar."_class_db.php");
$db = new db($sql["hostname"],$sql["username"],$sql["password"],$sql["database"]);
$result = $db->query_first("SELECT ownnameshort,ownhomepage,waroverlap,longdateformat FROM vwar".$n."_settings");
$ownnameshort=$result['ownnameshort'];
$ownhomepage=$result['ownhomepage'];
$waroverlap=$result['waroverlap'];
$longdateformat=$result['longdateformat'];
?>
<table border="0" cellpadding="0" cellspacing="0" align="center">
<?
$result=$db->query_first("SELECT COUNT(warid) FROM vwar".$n." WHERE status='0' AND dateline > '".time()."'");
$numnextwars=$result[0];
$db->free_result($result);
if($numnextwars > 0) {
$result=$db->query("
SELECT vwar".$n.".warid,vwar".$n.".gameid,vwar".$n.".gametypeid,vwar".$n.".matchtypeid,status,dateline,oppnameshort,oppircnetwork,oppircchannel,opphomepage,matchtypename,gametypename,vwar".$n."_games.gameicon,vwar".$n."_games.gamename
FROM vwar".$n.",vwar".$n."_matchtype,vwar".$n."_gametype,vwar".$n."_opponents,vwar".$n."_games
WHERE vwar".$n.".oppid=vwar".$n."_opponents.oppid
AND vwar".$n.".gametypeid=vwar".$n."_gametype.gametypeid
AND vwar".$n."_matchtype.matchtypeid=vwar".$n.".matchtypeid
AND status='0' AND dateline > '".(time()-($waroverlap*60))."'
AND vwar".$n.".gameid=vwar".$n."_games.gameid
ORDER BY dateline ASC
LIMIT 0,$numnextactions
");
while($row=$db->fetch_array($result)) {
if($row["gameicon"]!="" && file_exists($pathtovwar."images/icons/".$row["gameicon"]))
$gameicon="<img src=\\"".$pathtovwar."images/icons/".$row["gameicon"]."\\" alt=\\"".$row["gamename"]."\\" align=\\"absmiddle\\" border=\\"0\\">";
else
$gameicon="";
?>
<tr>
<td align="center">
<?= $gameicon; ?> <?= $row["gamename"]; ?>
</td>
</tr>
<tr>
<td align="center">
<a href="<?= $ownhomepage; ?>" target="blank"><?= $ownnameshort; ?></a> vs. <a href="<?= $row["opphomepage"]; ?>" target="blank"><?= $row["oppnameshort"]; ?></a><br><br>
</td>
</tr>
<tr>
<td align="left">
- <?= date($longdateformat,$row["dateline"]); ?>
</td>
</tr>
<tr>
<td align="left">- <?= $row["matchtypename"]; ?></td>
</tr>
<tr>
<td align="left">- <?= $row["gametypename"]; ?></td>
</tr>
<tr>
<td align="left">- IRC: <a href="irc://<?= $row["oppircnetwork"]; ?>/<?= $row["oppircchannel"]; ?>"><?= $row["oppircchannel"]; ?></a></td>
</tr>
<tr>
<td align="left">- <a href="<?= $pathtovwar; ?>war.php?action=nextaction&formgame=<?= $row["gameid"]; ?>#<?= $row["warid"]; ?>">details</a><br><br></td>
</tr>
<?
}
$db->free_result($result);
}
else
{
?>
<tr>
<td align="center">No Next Actions</td>
</tr>
<?
}
?>
</TABLE>