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
$phpbb_root_path ='/forum/';
if ( !defined('IN_PHPBB') )
{
define('IN_PHPBB', true);
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.php');
// include($phpbb_root_path . 'config.php');
}
$grab_topics = $db->sql_query("SELECT * FROM phpbb_topics, phpbb_posts,phpbb_posts_text WHERE
phpbb_posts.topic_id=phpbb_topics.topic_id and phpbb_posts.post_id=phpbb_posts_text.post_id and
phpbb_posts.topic_id=6641");
while ($echo_topic = $db->sql_fetchrow($grab_topics))
{
echo $echo_topic['topic_title']."<br/>";
$echo_text=$echo_topic['post_text'];
$bbcode_uid=$echo_topic['bbcode_uid'];
$echo_text=str_replace(":".$bbcode_uid,'',$echo_text);
$echo_text = preg_replace('/\:[0-9a-z\:]+\]/si', ']', $echo_text);
$echo_text = str_replace("[b]","<strong>",$echo_text);
$echo_text = str_replace("[/b]","</strong>",$echo_text);
$echo_text = str_replace("[i]","<em>",$echo_text);
$echo_text = str_replace("[/i]","</em>",$echo_text);
$echo_text = str_replace("[u]","<u>",$echo_text);
$echo_text = str_replace("[/u]","</u>",$echo_text);
$echo_text=preg_replace("/\[quote\=\"(.+?)\"](.+?)\[\/quote\]/s", '<table cellspacing="1" width="100%" border="0"><tr><td><b>$1 Написа:</b></td></tr><tr><td width="100%" style="border:solid 1px black">$2</td></tr></table>',$echo_text);
$echo_text=preg_replace("/\[size\=(.+?)\](.+?)\[\/size\]/s", '<span style="font-size:$1">$2</span>',$echo_text);
$echo_text = str_replace("[quote]","<strong>Quote</strong><em>",$echo_text);
$echo_text = str_replace("[/quote]","</em>",$echo_text);
$echo_text=preg_replace("/\[code\](.+?)\[\/code\]/s",'<table cellspacing="1" width="100%" border="0"><tr><td>Code:</td></tr><tr><td width="100%" style="border:solid 1px black">$1</td></tr></table>',$echo_text);
$echo_text = preg_replace('/\[list\](.*)\[\/list\]/si',"<div style=\"Verdana: 7px\">$1</div>",$echo_text);
$echo_text = preg_replace('/\[list=(.*)\](.*)\[\/list\]/si',"<div style=\"Verdana: 7px\">$1</div>",$echo_text);
$echo_text = str_replace("[img]","<img src=\"",$echo_text);
$echo_text = str_replace("[/img]","\" alt=\"image\" />",$echo_text);
$echo_text = preg_replace('/\[url\](.*)\[\/url\]/Usi','<a href="$1">$1</a>',$echo_text);
$echo_text = preg_replace('/\[url=(.*)\](.*)\[\/url\]/Usi','<a href="$1">$2</a>',$echo_text);
$echo_text = str_replace("\n", "\n<br />\n", $echo_text);
echo $echo_text."<br/>---------------------------------------------------------------------------<br/>";
}
?>
<?php
$phpbb_root_path ='/forum/';
if ( !defined('IN_PHPBB') )
{
define('IN_PHPBB', true);
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.php');
// include($phpbb_root_path . 'config.php');
}
$grab_topics = $db->sql_query("SELECT * FROM phpbb_topics, phpbb_posts,phpbb_posts_text WHERE
phpbb_posts.topic_id=phpbb_topics.topic_id and phpbb_posts.post_id=phpbb_posts_text.post_id and
phpbb_posts.topic_id=6641");
$echo_topic = $db->sql_fetchrow($grab_topics);
echo $echo_topic['topic_title']."<br/>";
$echo_text=$echo_topic['post_text'];
$bbcode_uid=$echo_topic['bbcode_uid'];
$echo_text=str_replace(":".$bbcode_uid,'',$echo_text);
$echo_text = preg_replace('/\:[0-9a-z\:]+\]/si', ']', $echo_text);
$echo_text = str_replace("[b]","<strong>",$echo_text);
$echo_text = str_replace("[/b]","</strong>",$echo_text);
$echo_text = str_replace("[i]","<em>",$echo_text);
$echo_text = str_replace("[/i]","</em>",$echo_text);
$echo_text = str_replace("[u]","<u>",$echo_text);
$echo_text = str_replace("[/u]","</u>",$echo_text);
$echo_text=preg_replace("/\[quote\=\"(.+?)\"](.+?)\[\/quote\]/s", '<table cellspacing="1" width="100%" border="0"><tr><td><b>$1 Написа:</b></td></tr><tr><td width="100%" style="border:solid 1px black">$2</td></tr></table>',$echo_text);
$echo_text=preg_replace("/\[size\=(.+?)\](.+?)\[\/size\]/s", '<span style="font-size:$1">$2</span>',$echo_text);
$echo_text = str_replace("[quote]","<strong>Quote</strong><em>",$echo_text);
$echo_text = str_replace("[/quote]","</em>",$echo_text);
$echo_text=preg_replace("/\[code\](.+?)\[\/code\]/s",'<table cellspacing="1" width="100%" border="0"><tr><td>Code:</td></tr><tr><td width="100%" style="border:solid 1px black">$1</td></tr></table>',$echo_text);
$echo_text = preg_replace('/\[list\](.*)\[\/list\]/si',"<div style=\"Verdana: 7px\">$1</div>",$echo_text);
$echo_text = preg_replace('/\[list=(.*)\](.*)\[\/list\]/si',"<div style=\"Verdana: 7px\">$1</div>",$echo_text);
$echo_text = str_replace("[img]","<img src=\"",$echo_text);
$echo_text = str_replace("[/img]","\" alt=\"image\" />",$echo_text);
$echo_text = preg_replace('/\[url\](.*)\[\/url\]/Usi','<a href="$1">$1</a>',$echo_text);
$echo_text = preg_replace('/\[url=(.*)\](.*)\[\/url\]/Usi','<a href="$1">$2</a>',$echo_text);
$echo_text = str_replace("\n", "\n<br />\n", $echo_text);
echo $echo_text."<br/>---------------------------------------------------------------------------<br/>";
?>
:shock: бъгнал? Ти да не си Windows на 2 месецаadmin каза:В момента наистина просто не мога да пиша.
Много съм се бъгнал и не мога.
Да пробва някой друг.