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 include"forum/config.php";
$userd = $user->data;
$con=mysql_connect($dbhost,$dbuser,$dbpasswd)or die(mysql_error());
mysql_select_db($dbname,$con)or die(mysql_error());
$chars="set character set cp1251";mysql_query($chars);
$sql="select * from `phpbb_users` order by user_id desc limit 1"or die(mysql_error());
$result=mysql_query($sql)or die(mysql_error());
while($r=mysql_fetch_array($result)){ $last_user=$r['username']; }
$zaqvka1=mysql_query("select count(topic_id) as total_topics from `phpbb_topics`");
while($rw=mysql_fetch_array($zaqvka1)){ $total_topics=$rw['total_topics']; }
$zaqvka2=mysql_query("select count(post_id) as total_posts from `phpbb_posts`");
while($rw=mysql_fetch_array($zaqvka2)){ $total_posts=$rw['total_posts']; }
$zaqvka3=mysql_query("select count(user_id) as total_users from `phpbb_users` where
username!='anonymous'");
while($rw=mysql_fetch_array($zaqvka3)){ $total_users=$rw['total_users']; }
$zaqvka7=mysql_query("select count(ban_id) as total_banned from `phpbb_banlist`");
while($rw=mysql_fetch_array($zaqvka7)){ $total_banned=$rw['total_banned']; }
echo"<center><b>
Най-нов: <b><a href='./forum/memberlist.php?mode=viewprofile&u=<?php
echo"$user->data['user_id']; "; ?>' target='_blank'>$last_user</a></b><br>
Общо мнения: <b>$total_posts</b><br>
Общо теми: <b>$total_topics</b><br>
Потребители: </b><b>$total_users</b>"; ?>
<?php
ob_start();
define('IN_PHPBB', true);
$phpbb_root_path = './forum/'; //Пътя до файловете на форума
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
$user->session_begin(); /*Създаваме сесия на потрителя*/
$auth->acl($user->data); /* ауторизираме потерителя */
$user = $user->data; /* Това съм го направил аз , с цел да не изписвам доста по-дълги
променливи. */
$uid = $user['user_id']; /* Ако потребителя работи с mysql извън форума , както при мене ,
потрртеля добавя филми , коментари за тях , и серий */
$ureg = $user['is_registered']; /* 1 = true , NULL = false */ /* дали е регистриран или не
е */
?>
<?php include"forum/config.php";
$con=mysql_connect($dbhost,$dbuser,$dbpasswd)or die(mysql_error());
mysql_select_db($dbname,$con)or die(mysql_error());
$chars="set character set cp1251";mysql_query($chars);
$sql="select * from `phpbb_users` order by user_id desc limit 1"or die(mysql_error());
$result=mysql_query($sql)or die(mysql_error());
while($r=mysql_fetch_array($result)){ $last_user=$r['username']; }
$zaqvka1=mysql_query("select count(topic_id) as total_topics from `phpbb_topics`");
while($rw=mysql_fetch_array($zaqvka1)){ $total_topics=$rw['total_topics']; }
$zaqvka2=mysql_query("select count(post_id) as total_posts from `phpbb_posts`");
while($rw=mysql_fetch_array($zaqvka2)){ $total_posts=$rw['total_posts']; }
$zaqvka3=mysql_query("select count(user_id) as total_users from `phpbb_users` where username != 'anonymous'");
while($rw=mysql_fetch_array($zaqvka3)){ $total_users=$rw['total_users']; }
$zaqvka7=mysql_query("select count(ban_id) as total_banned from `phpbb_banlist`");
while($rw=mysql_fetch_array($zaqvka7)){ $total_banned=$rw['total_banned']; }
echo"<center><b>
Най-нов: <b><a href='./forum/memberlist.php?mode=viewprofile&u=".$uid."' target='_blank'>$last_user</a></b><br>
Общо мнения: <b>$total_posts</b><br>
Общо теми: <b>$total_topics</b><br>
Потребители: </b><b>$total_users</b>"; ?>
<?php include"forum/config.php";
$con=mysql_connect($dbhost,$dbuser,$dbpasswd)or die(mysql_error());
mysql_select_db($dbname,$con)or die(mysql_error());
$chars="set character set cp1251";mysql_query($chars);
$sql="select * from `phpbb_users` order by user_id desc limit 1"or die(mysql_error());
$result=mysql_query($sql)or die(mysql_error());
while($r=mysql_fetch_array($result)){
$last_user=$r['username'];
$last_user_id = $r['user_id'];
}
$zaqvka1=mysql_query("select count(topic_id) as total_topics from `phpbb_topics`");
while($rw=mysql_fetch_array($zaqvka1)){ $total_topics=$rw['total_topics']; }
$zaqvka2=mysql_query("select count(post_id) as total_posts from `phpbb_posts`");
while($rw=mysql_fetch_array($zaqvka2)){ $total_posts=$rw['total_posts']; }
$zaqvka3=mysql_query("select count(user_id) as total_users from `phpbb_users` where username != 'anonymous'");
while($rw=mysql_fetch_array($zaqvka3)){ $total_users=$rw['total_users']; }
$zaqvka7=mysql_query("select count(ban_id) as total_banned from `phpbb_banlist`");
while($rw=mysql_fetch_array($zaqvka7)){
$total_banned=$rw['total_banned']; }
echo"<center><b>
Най-нов: <b><a href='./forum/memberlist.php?mode=viewprofile&u=".$last_user_id."' target='_blank'>$last_user</a></b><br>
Общо мнения: <b>$total_posts</b><br>
Общо теми: <b>$total_topics</b><br>
Потребители: </b><b>$total_users</b>"; ?>