What's new

Account Maker Problem z Acc Meker

Status
Not open for further replies.

Sonpabo

Active User
Joined
Jun 29, 2009
Messages
71
Reaction score
6
Witam dragich u?ytkownik?w tibia.net.pl mam problem z kt?rym sam nie potrafie sobie poradzi? i prosi?bym o wasz? pomoc...

?ci?g?em wygl?d do nicaw i by? tam odrazu header.inc.php oraz footer.inc. Na tym podmienionym wyskakuje mi b??d podczas logowania [Line 58 Header.inc] oraz gdy klikam new account nic sie nie dzieje, nie da sie klikn??.


PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Author" content="nicaw" />
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title><?php echo $ptitle?></title>
<link rel="stylesheet" href="default.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $cfg['skin_url'].$cfg['skin']?>.css" type="text/css" media="screen" />
<link rel="stylesheet" href="print.css" type="text/css" media="print" />
<link rel="alternate" type="application/rss+xml" title="News" href="news.php?RSS2" />
<script type="text/javascript" src="javascript/prototype.js"></script>
<script type="text/javascript" src="javascript/main.js"></script>
<link rel="shortcut icon" href="resource/favicon.ico" />
<?php if (!empty($_SESSION['account']) && empty($_COOKIE['remember'])){?>
<script type="text/javascript">
//<![CDATA[
function tick()
    {
        ticker++;
        if (ticker > <?php echo $cfg['timeout_session'];?>){
            self.window.location.href = 'login.php?logout&redirect=account.php';
        }else{
            setTimeout ("tick()",1000);
        }
    }
    ticker = 0;
    tick();
//]]>
</script>
<?php }?>
</head>
<body>
<div id="form"></div>
<div id="container">
<div id="header"><div id="server_name"><?php echo $cfg['server_name']?></div></div>
<div id="panel">
<div id="navigation">
<?php 
if (file_exists('navigation.xml')){
	$XML = simplexml_load_file('navigation.xml');
	if ($XML === false) throw new aacException('Malformed XML');
}else{die('Unable to load navigation.xml');}
foreach ($XML->category as $cat){
	echo '<div class="top" onclick="menu_toggle(this)" style="cursor: pointer;">'.$cat['name'].'</div><ul>'."\n";
	foreach ($cat->item as $item)
		echo '<li><a href="'.$item['href'].'">'.$item.'</a></li>'."\n";
	echo '</ul><div class="smalleq"></div>'."\n";
}
?>
</div>
<div id="status">
<div class="top">Status</div>
<div class="mid">
<?php
if(!empty($_SESSION['account'])) {
    $account = new Account();
    $account->load($_SESSION['account']);
    echo 'Logged in as: <b>'.$account->attrs['name'].'</b><br/>';
    echo '<button onclick="window.location.href=\'login.php?logout&redirect=account.php\'">Logout</button><hr/>';
}
?>
<div id="server_state">
<span class="offline">Server Offline</span>
<script type="text/javascript">
//<![CDATA[
    new Ajax.PeriodicalUpdater('server_state', 'status.php', {
      method: 'get', frequency: 60, decay: 1
    });
//]]>
</script>
</div>
</div>
<div class="smalleq"></div>
</div>
</div>

B??d
Fatal error: Cannot access private property Account::$attrs in C:\xampp\htdocs\header.inc.php on line 58

I tu jest moje pytanie bo nie jestem dobry w php co jest nie tak w tym pliku ?

Z G?ry Dzieki za pomoc oczywi?cie Rep++
 
Status
Not open for further replies.
Top