asddasasdds
Registered
Здравейте!
Пусхан темата в раздел Всичко за phpBB, но мисля, че мястот и е тук Опитах се да направя :arrow: този урок, и имам следните файлове:
Главна папка
index.php
config.php
lang.php
Папка includes
end.php
logo.php
menu.php
Всичко съм писал сам, но когато отворя индекса изписва тази грешка:
Защо става така? Благодаря предварително
Пусхан темата в раздел Всичко за phpBB, но мисля, че мястот и е тук Опитах се да направя :arrow: този урок, и имам следните файлове:
Главна папка
index.php
Код:
<?php
define('IN_PHPBB', true);
include("config.php");
echo $head;
include($phpbb_root_path . 'config.php');
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
echo('<table align="center" width="95%">
<tr>
<td>');
include $site."includes/logo.php";
echo'<br>';
echo('</td>
</tr>
<tr>
<td>
<table align="center" width="100%">
<tr>
<td width="20%" valign="top">');
include $site."includes/menu.php";
echo'<br>';
echo('</td>
<td width="80%" valign="top">
sadarjanieto
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>');
include $site."includes/end.php";
echo('</td>
</tr>
</table>');
config.php
Код:
<?php
$phpbb_root_path = "http://localhost/demo/forum/";
$site = "http://localhost/demo/";
include("lang.php");
$head = '
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
<meta name="description" content="Модове за известната игра GTA San Andreas" />
<meta name="keywords" content="Xtreme BG, Xtreme BG Mods, Xtreme BG Модове, Модове, Mods, GTA, GTA San Andreas, GTA Vice City, GTA 3, GTA 2, GTA 1, GTA 4, Grand Theft Auto, Grand Theft Auto Mods, Grand Theft Auto Модове, Grand Theft Auto, Grand Theft Auto Cheats, Grand Theft Auto Кодове, Grand Theft Auto Помощ" />
<meta name="classification" content="entertainment" />
<meta name="robots" content="index, follow" />
<meta http-equiv="content-language" content="bg" />
<meta name="author" content="Jumper BG" />
<meta name="reply-to" content="jumperbg@mail.bg" />
<meta name="copyright" content="Copyright © 2003, 2004, 2005 Xtreme BG, All rights reserved." />
<meta name="rating" content="general" />
<meta name="owner" content="Jumper BG" />
<script language="javascript" src="'.$site.'files/script.js"></script>
<link href="'.$site.'files/font.css" type=text/css rel=StyleSheet>
<title>Xtreme-BG :: Българският сайт за модове на поредицата GTA!</title>
</head>
';
?>
lang.php
Код:
<?php
//Ezikov fail
define("MENU", "Меню");
define("ZDRAVEITE", "Здравейте,");
define("HOME", "Начало");
define("MODS", "Модове");
define("FORUM", "Форум");
define("TRQBVA_DA_VLEZETE", "");
define("VHOD", "Вход");
define("USER", "Потребител");
define("PASS", "Парола");
define("ISKAM_DA_VLIZAM_AVTOMATICHNO", "искам да влизам автоматично");
define("LOGO", "Лого");
?>
Папка includes
end.php
Код:
<?php
echo('<table class="border" cellpadding="1" cellspacing="1" width="100%">
<tr>
<td class="a" align="left">
<table>
<tr>
<td width="71%" class="b">
<b></b>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%">
<tr><center>'.COPYRIGHT.'</center></tr>
</table>
</td>
</tr>
<tr>
<td class="a" height="6" width="100%">
</td>
</tr>
</table>');
echo('<br><br>
<table align="center">
<tr>
<td>');
// TYXO.BG BROYACH
echo'<!- NACHALO NA TYXO.BG BROYACH -->
<a href="http://www.tyxo.bg/?11808" title="Tyxo.bg counter" target="_blank"><script language=JavaScript>
</script><noscript><img src="http://cnt.tyxo.bg/11808" width=88 height=31 border=0
alt="Tyxo.bg counter" /></noscript></a>
<!- KRAI NA TYXO.BG BROYACH -->';
echo('</td><td>');
// WEB COUNTER BROYACH
echo('
<font size=1><script type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript1.2"></script>
<a href="http://counter.search.bg/cgi-bin/s?_id=xtremebg"
target="_top"><script type="text/javascript" language="javascript"></script><noscript><img width=70 height=15 border=0 alt=""
src="http://counter.search.bg/cgi-bin/c?_id=xtremebg&_z=0"></noscript></a></font>
');
?>
logo.php
Код:
<?php
echo('<table class="border" cellpadding="1" cellspacing="1" width="1002">
<tr>
<td class="a" align="left">
<table>
<tr>
<td width="71%" class="b">
<b><center>'.LOGO.'</center></b>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" style="height: 101px">
<tr>
<th>
<center><a href="'.$site.'index.php"><img border="0" src="'.$site.'images/logo.gif" alt="img"></a></center>
</th>
</tr>
</table>');
echo(' </td>
</tr>
<tr>
<td class="a" height="6" width="100%">
</td>
</tr>
</table>');
echo'<br><br>';
?>
menu.php
Код:
<?php
if ($userdata['user_active']>0) {
echo('<table class="border" cellpadding="1" cellspacing="1" width="100%">
<tr>
<td class="a" align="left">
<table>
<tr>
<td width="71%" class="b">
<b>'.MENU.'</b>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
'.ZDRAVEITE.' '.$userdata['username'].'<br />
<br />
<table width="100%">
<tr><th><a class="menu" href="'.$site.'index.php">'.HOME.'</th></tr>
<tr><th><a class="menu" href="'.$site.'mods.php?page=cats">'.MODS.'</th></tr>
<tr><th><a class="menu" href="'.$phpbb_root_path.'index.php">'.FORUM.'</th></tr>
</table>
</td>
</tr>
<tr>
<td class="a" height="6" width="100%">
</td>
</tr>
</table>');
}
else {
echo('<table class="border" cellpadding="1" cellspacing="1" width="100%">
<tr>
<td class="a" align="left">
<table>
<tr>
<td width="71%" class="b">
<b>'.MENU.'</b>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
'.VHOD.':<br />
<br />
<form method="post" action="'.$phpbb_root_path.'login.php">
<table width="100%">
<tr><th>'.USER.': <input class="button" name="username" size="10" type="text"></th></tr>
<tr><th>'.PASS.': <input class="button" name="password" size="10" maxlength="32" type="password"></th></tr>
<tr><th>'.ISKAM_DA_VLIZAM_AVTOMATICHNO.' <input class="text" name="autologin" type="checkbox"></th></tr>
<tr><th><input class="button" size="10" type="submit" value="'.VHOD.'></tr>
</table>
</td>
</tr>
<tr>
<td class="a" height="6" width="100%">
</td>
</tr>
</table>');
}?>
Всичко съм писал сам, но когато отворя индекса изписва тази грешка:
Hacking attempt
Fatal error: Call to undefined function session_pagestart() in C:\Program Files\xampp\xampp\htdocs\demo\index.php on line 8
Защо става така? Благодаря предварително