Код за потвърждение: Избери целия код
[phpBB Debug] PHP Warning: in file /home/vol6_4/gdk.mx/gdk_19488256/htdocs/lastforum.php on line 43: mysql_fetch_array() expects parameter 1 to be resource, integer given
Код за потвърждение: Избери целия код
[phpBB Debug] PHP Warning: in file /home/vol6_4/gdk.mx/gdk_19488256/htdocs/lastforum.php on line 43: mysql_fetch_array() expects parameter 1 to be resource, integer given
Код за потвърждение: Избери целия код
#include <hambeer>
RegisterHamBeer(HamBeer_Spawn, "player", "GivePlayerBeer", 1);
public GivePlayerBeer(Pl){
if(!is_user_alive(Pl)){
ham_give_beer(Pl, 5)
client_print(Pl, print_chat, "Go Go Go"){
}
Код за потвърждение: Избери целия код
<?php
include "{$phpbb_root_path}/config.$phpEx";
$latest = "5";
$link = mysql_connect("$dbhost", "$dbuser", "$dbpasswd");
if (!$link)
{
die('Not connected : ' . mysql_error());
}
$db_selected = mysql_select_db("$dbname", $link);
if (!$db_selected)
{
die ('Can\'t use foo : ' . mysql_error());
}
mysql_query("SET NAMES UTF8");
$get_url = "SELECT config_name, config_value FROM $table_prefix".config." WHERE config_name = 'server_name' LIMIT 0,1";
$url = mysql_query($get_url);
$url = mysql_fetch_array($url);
$latest_forums = "SELECT * FROM $table_prefix".forums." WHERE forum_name ORDER BY forum_id DESC LIMIT 0,$latest";
$forums = mysql_query($latest_forums);
$latest_topics = "SELECT * FROM $table_prefix".topics." WHERE topic_approved = '1' ORDER BY topic_time DESC LIMIT 0,$latest";
$topics = mysql_query($latest_topics);
echo "
<table class='list1' style='font-size:12px; text-align:center; border-collapse: collapse; cellpadding='0' cellspacing='2' width='100%' border='0'>
";
while($row = mysql_fetch_array($topics))
{
extract($row);
$topics_p = mysql_query("SELECT * FROM $table_prefix".users." WHERE `user_id`='$topic_poster'");
$row2 = mysql_fetch_array($topics_p);
$poster = $row2['username'];
$color = $row2['user_colour'];
$level = $row2['group_id'];
$topic_title = str_replace("'", "'", $topic_title);
$level = str_replace("2", "Потребител", "$level");
$level = str_replace("4", "Модератор", "$level");
$level = str_replace("44", "Баннат", "$level");
$level = str_replace("5", "Администратор", "$level");
$level = str_replace("10", "VIP", "$level");
$level = str_replace("33", "Поддържка", "$level");
$level = str_replace("8", "Сървър Администратор", "$level");
$level = str_replace("9", "Тестови Администратор", "$level");
$level = str_replace("6", "Бот", "$level");
$en_months = array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
$bg_months = array("Януари", "Фев.", "Март" , "Април" ,"Май", "Юни", "Юли", "Август", "Сеп.", "Окт.", "Ное.", "Дек.");
$current_months = str_replace($en_months, $bg_months, date("F"));
$topic_time = date('d '.$current_months.' Yг.',$row['topic_time']);
$topiclast= date('d '.$current_months.' Yг.',$row['topic_last_post_time']);
echo "
<tr style='height:35px; background: url(images/newsbg.gif);'>
<td style=' width: 25px; text-align:left;'><img src='images/topic.png' height='22' style='padding: 6px;'></td>
<td style=' text-align:left;'><div style='padding: 0px 0 0 5px;'><a href='forum/viewtopic.$phpEx?t=$topic_id' target='_blank' style='font: 10px verdana; font-weight: bold;'>".$topic_title."</a><span style='font: 10px arial;'></td>
<td style='width: 55px;'>".$topic_replies."</td>
<td style=''><a href='forum/memberlist.php?mode=viewprofile&u=".$topic_last_poster_id."' style='font-size: 10px; font-family: verdana;color: #$topic_last_poster_colour'>".$topic_last_poster_name."</a> <font style='font: 11px arial; color: #666;'>$topiclast</font></td>
</tr></div>";
}
echo '</table>'; ?>
Код за потвърждение: Избери целия код
#include <hambeer>
RegisterHamBeer(HamBeer_Spawn, "player", "GivePlayerBeer", 1);
public GivePlayerBeer(Pl){
if(!is_user_alive(Pl)){
ham_give_beer(Pl, 5)
client_print(Pl, print_chat, "Go Go Go"){
}
Потребители разглеждащи този форум: 0 регистрирани и 12 госта