No to jeden błąd naprawiony. Jak się powinieneś domyślić, teraz podaj 'okolice' linii 342.
310 $main_content .= ($account->isPremium()) ? '<b><font color="green">Premium Account</font></b>' : '<b><font color="red">F
311 if($account->isBanned())
312 if($account->getBanTime() > 0)
313 $main_content .= '<font color="red"> Banished until '.date("j F Y, G:i", $account->getBanTime()).'</font
314 else
315 $main_content .= '<font color="red"> Banished with account deletion. </font>';
316 $main_content .= '</TD></TR></TABLE>';
317 $main_content .= '<br><TABLE BORDER=0><TR><TD></TD></TR></TABLE><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><
318 <TR BGCOLOR='.$config['site']['darkborder'].'><TD><B>Name</B></TD><TD><B>World</B></TD><TD><B>Level</B></TD><TD><b>Statu
319 $account_players = $account->getPlayersList();
320 $account_players->orderBy('name');
321 $player_number = 0;
322 foreach($account_players as $player_list)
323 {
324 if(!$player_list->getHideChar())
325 {
326 $player_number++;
327 if(is_int($player_number / 2))
328 $bgcolor = $config['site']['darkborder'];
329 else
330 $bgcolor = $config['site']['lightborder'];
331 if(!$player_list->isOnline())
332 $player_list_status = '<font color="red">Offline</font>';
333 else
334 $player_list_status = '<font color="green">Online</font>';
335 $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=52%><NOBR>'.$player_number.'.*'.$player_list
336 $main_content .= ($player_list->isDeleted()) ? '<font color="red"> [DELETED]</font>' : '';
337 $main_content .= '</NOBR></TD><TD WIDTH=15%>'.$config['site']['worlds'][$player_list->getWorld()].'</TD>
338 }
339 }
340 $main_content .= '</TABLE></TD><TD><IMG SRC="'.$layout_name.'/images/general/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD>
341 }
342 $main_content .= '<BR><BR><FORM ACTION="?subtopic=characters" METHOD=post><TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4
343 $main_content .= '</TABLE>';
344 }
345 else
346 $search_errors[] = 'Character <b>'.$name.'</b> does not exist.';
347 }
348 else
349 $search_errors[] = 'This name contains invalid letters. Please use only A-Z, a-z and space.';
350 if(!empty($search_errors))
351 {
352 $main_content .= '<div class="SmallBox" > <div class="MessageContainer" > <div class="BoxFrameHorizontal" style="background-image:ur
353 foreach($search_errors as $search_error)
354 $main_content .= '<li>'.$search_error;
355 $main_content .= '</div> <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizo
356 $main_content .= '<BR><FORM ACTION="?subtopic=characters" METHOD=post><TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGC
357 }
358 }
359 ?>
Fatal error: Uncaught exception 'E_OTS_NotLoaded' in /var/www/pot/OTS_Account.php:403 Stack trace: #0 /var/www/accountmanagement.php(23): OTS_Account->getCreated() #1 /var/www/index.php(135): include('/var/www/accoun...') #2 {main} thrown in /var/www/pot/OTS_Account.php on line 403
16 if(empty($account_reckey))
17 $account_registred = '<b><font color="red">No</font></b>';
18 else
19 if($config['site']['generate_new_reckey'] && $config['site']['send_emai
20 $account_registred = '<b><font color="green">Yes (<a href="?sub
21 else
22 $account_registred = '<b><font color="green">Yes</font></b>';
23 $account_created = $account_logged->getCreated();
24 $account_email = $account_logged->getEMail();
25 $account_email_new_time = $account_logged->getCustomField("email_new_time");
26 if($account_email_new_time > 1)
27 $account_email_new = $account_logged->getCustomField("email_new");
28 $account_rlname = $account_logged->getRLName();
29 $account_location = $account_logged->getLocation();
30 if($account_logged->isBanned())
31 if($account_logged->getBanTime() > 0)
32 $welcome_msg = '<font color="red">Your account is banished unti
33 else
34 $welcome_msg = '<font color="red">Your account has been banishe
35 else
36 $welcome_msg = 'Welcome to your account!';
37 $main_content .= '<div class="SmallBox" > <div class="MessageContainer" ><div
38 if($config['site']['worldtransfer'] == 1)
39 $main_content .= '<a href="?subtopic=accountmanagement&action=charactertransfer">Character Worl
40 $main_content .= '</td><td width=50%><table border="0" cellspacing="0" cellpadding="0" ><form a
41 //if account dont have recovery key show hint
387 {
388 throw new E_OTS_NotLoaded();
389 }
390
391 return $this->data['lastday'];
392 }
393
394 public function isPremium()
395 {
396 return ($this->data['premdays'] - (date("z", time()) + (365 * (date("Y", time()) - date("Y", $this->data['lastday']))) - date("z", $this->data[
397 }
398
399 public function getCreated()
400 {
401 if( !isset($this->data['created']) )
402 {
403 throw new E_OTS_NotLoaded();
404 }
405
406 return $this->data['created'];
407 }
408
409 public function getRecoveryKey()
410 {
411 if( !isset($this->data['key']) )
412 {
413 throw new E_OTS_NotLoaded();
414 }
415
416 return $this->data['key'];
417 }
418 public function getPremiumPoints()
419 {
420 if( !isset($this->data['premium_points']) )
421 {
422 throw new E_OTS_NotLoaded();
423 }
424
425 return $this->data['premium_points'];
426 }
427
109 $topic = "Highscores";
110 $subtopic = "highscores";
111 include("highscores.php");
112 break;
113
114 case "killstatistics";
115 $topic = "Last Kills";
116 $subtopic = "killstatistics";
117 include("killstatistics.php");
118 break;
119
120 case "houses";
121 $topic = "Houses";
122 $subtopic = "houses";
123 include("houses.php");
124 break;
125
126 case "guilds";
127 $topic = "Guilds";
128 $subtopic = "guilds";
129 include("guilds.php");
130 break;
131
132 case "accountmanagement";
133 $topic = "Account Management";
134 $subtopic = "accountmanagement";
135 include("accountmanagement.php");
136 break;
137
138 case "createaccount";
139 $topic = "Create Account";
140 $subtopic = "createaccount";
141 include("createaccount.php");
142 break;
143
144 case "lostaccount";
145 $topic = "Lost Account Interface";
146 $subtopic = "lostaccount";
147 include("lostaccount.php");
148 break;
149
150 case "tibiarules";
151 $topic = "Server Rules";
152 $subtopic = "tibiarules";
153 include("tibiarules.php");
154 break;
155
156 case "adminpanel":
157 $topic = "Admin Panel";
158 $subtopic = "adminpanel";
159 include("adminpanel.php");
Warning: include(/var/www/characters.php): failed to open stream: Permission denied in /var/www/index.php on line 99 Warning: include(): Failed opening 'characters.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/index.php on line 99
chmod 777 characters.php