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.
<?php
if ($userdata['user_active']>0)
{
echo "
<table border="5" style="font-size:"12px" cellpadding="0" cellspacing="0" >
<tr>
<td valign="top" width="100%">
";
if($userdata["user_level"] == 1) { echo"<a href=\"/admin/\"><img src=\"images/menu.png\"> Aдмин панел<br></a>"; }
echo'
<a href="'.$phpbb_root_path.'profile.php?mode=viewprofile&u='.$userdata['username'].' "><img src="images/menu.png"> Профил<br></a>
<a href="?p=addsong"><img src="images/menu.png"> Добави песен<br></a>
<a href="?p=addlyrics"><img src="images/menu.png"> Добави текст<br></a>
<a href="'.$phpbb_root_path.'login.php?logout=true&sid='.$userdata['session_id'].'"><img src="images/menu.png"> Изход<br></a>
</td>
</tr>
</table>
';
}
else
{
echo '
<center>
<form action="'.$phpbb_root_path.'login.php" method="post" style="margin: 0px;" >
<input type="hidden" name="redirect" value="../index.php" />
<center><input type="text" name="username" class="user" size="15" > <input type="password" name="password" class="pass" size="15" ></center>
<div align="right" style="float: right; padding-right: 5px;"> <input name="login" type="submit" value="вход" class="btn" /></div>
<input type="checkbox" name="autologin" checked > Запомни ме!<br />
<br />
<div align="center" class="regbox">
<a href="./forum/profile.php?mode=register"><b>Регистрация</b></a>
|
<a href="./forum/profile.php?mode=sendpassword"><b>Забравена парола</b></a>
</div>
</form>
</center>
';
}
?>
<?php
if ($userdata['user_active']>0)
{
echo '
<table border="5" style="font-size:"12px" cellpadding="0" cellspacing="0" >
<tr>
<td valign="top" width="100%">';
if($userdata["user_level"] == 1) { echo"<a href=\"/admin/\"><img src=\"images/menu.png\"> Aдмин панел<br></a>"; }
echo '<a href="'.$phpbb_root_path.'profile.php?mode=viewprofile&u='.$userdata['username'].' "><img src="images/menu.png"> Профил<br></a>
<a href="?p=addsong"><img src="images/menu.png"> Добави песен<br></a>
<a href="?p=addlyrics"><img src="images/menu.png"> Добави текст<br></a>
<a href="'.$phpbb_root_path.'login.php?logout=true&sid='.$userdata['session_id'].'"><img src="images/menu.png"> Изход<br></a>
</td>
</tr>
</table>
';
}
else
{
echo '
<center>
<form action="'.$phpbb_root_path.'login.php" method="post" style="margin: 0px;" >
<input type="hidden" name="redirect" value="../index.php" />
<center><input type="text" name="username" class="user" size="15" > <input type="password" name="password" class="pass" size="15" ></center>
<div align="right" style="float: right; padding-right: 5px;"> <input name="login" type="submit" value="вход" class="btn" /></div>
<input type="checkbox" name="autologin" checked > Запомни ме!<br />
<br />
<div align="center" class="regbox">
<a href="./forum/profile.php?mode=register"><b>Регистрация</b></a>
|
<a href="./forum/profile.php?mode=sendpassword"><b>Забравена парола</b></a>
</div>
</form>
</center>
';
}
?>