Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
asddasasdds каза:Здравейте,
опитвам се да направя една страничка по :arrow: този урок, но ми изписва Hacking attempt.... Някаква идея?
Благодаря предварително!
admin каза:Имаше една тема дето отговорих вчера и сега не я намирам.
Къде изчезна?
Пак беше със същото заглавие.. :shock:
<?
define('IN_PHPBB', true);
$phpbb_root_path ='ПЪТ ДО ПАПКАТА НА ФОРУМА';
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);
?>
<?
if ($userdata['user_active']>0)
{
echo '
<table border="0" style="font-size:12px;" cellpadding="0" cellspacing="0" align="right">
<tr>
<td style="font-size:12px;" height="20"><font color="white"><b>Потребител:</b></font>
</td>
</tr>
<tr>
<font color="white"><td style="font-size:12px;" height="20"><a
href="'.$phpbb_root_path.'profile.php?mode=viewprofile&u='.$userdata['username'].' ">'. $userdata['username'].'</a> <font>
</td>
</tr>
<tr>
<td height="20" ><a class="user" href="'.$phpbb_root_path.'login.php?logout=true&sid='.$userdata['session_id'].'">Изход</a></td>
</tr>
<tr>
<td height="5">
</td>
</tr>
</table>
';
}
else
{
echo '
<form action="'.$phpbb_root_path.'login.php" method="post" style="margin: 0px;">
<input type="hidden" name="redirect" value="phpbb2/index.php" />
<table border="0" style="font-size:12px;" width="130" cellspacing="0" cellpadding="0" align="right">
<tr>
<td class="left" height="25" font="red">
<font color="white"><b>Потребител:</b></font>
</td>
</tr>
<tr>
<td class="left" height="25">
<input type="text" name="username" size="10" maxlength="25">
</td>
</tr>
<tr>
<td class="left" height="25">
<font color="white"><b>Парола:</b></font>
</td>
</tr>
<tr>
<td class="left" height="25">
<input type="password" name="password" size="10" maxlength="25">
</td>
</tr>
<tr>
<td>
<font color="white">Aвтоматично: <input type="checkbox" name="autologin" checked > </font>
</td>
</tr>
<tr>
<td class="left" height="35">
<input type="submit" name="login" value="Вход">
</td>
</tr>
<tr>
<td class="left" height="20" >
<a href="'.$phpbb_root_path.'profile.php?mode=register">Регистрация</a>
</td>
</tr>
<tr>
<td class="left" height="20">
<a href="'.$phpbb_root_path.'profile.php?mode=sendpassword" >Забравена парола</a>
</td>
</tr>
</table>
</form>
';
}
?>