Błąd w index.php

Błąd   Założony przez  Beka.

wersja skryptu MyBB: 1.6.12
adres forum: LINK
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu):

No więc uporałem się z tamtym problemem dotyczącym global.php, ale rozpoczął się nowy. Otóż treść błędu brzmi następująco, a dotyczy pliku index.php. Oczywiście chodzi o ten sam styl.. :
mysql_query(): Access denied for user ''@'localhost' (using password: NO)

Podrzucam jeszcze screena: [Obrazek: nsmkqf.jpg]

Proszę o pomoc ;)
zle wpisane dane do bazy (nie forum)
W pliku config.php?
raczej nie


w szablonie index
To takie trochę dziwne, spójrz w kod, nie ma żadnego połączenia z bazą :|

<html>
<
head>
<
title>{$mybb->settings['bbname']}</title>
{
$headerinclude}
<
script type="text/javascript">
<!--
    
lang.no_new_posts "{$lang->no_new_posts}";
    
lang.click_mark_read "{$lang->click_mark_read}";
// -->
</script>
<
script type="text/javascript">
jqry(document).ready(function() {
    
jqry(".imgmiddle img").load(function() {
        if(
jqry(this).height() < 30) {
                
jqry(this).css("margin-top", ((30 jqry(this).height())/2) + "px");
        }
    });
});
</
script>
<
script type="text/javascript">
    
jqry.get('pokoje.php', function (data) {
        
jqry('#roomList').html(data);
        
jqry('[rel=tooltip]').tooltip();
    });

</
script>
</
head>
<
body>
{
$header}

{
$itph}
            {
$board_messages}
<
br />

<?
php

$czas 
strtotime(date('Y-m-d'));
$linknb2mysql_query('SELECT * FROM `mybb_events` WHERE `cid` = 2 AND`starttime` = "'.$czas.'" ORDER BY `description` ASC');

if(
mysql_num_rows($linknb2) != 0){

echo
'<div id="streambox" class="modal hide fade" tabindex="-1" style="width: 650px; margin-left:-325px;" role="dialog" aria-labelledby="streamboxheader" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="streamboxheader">PL-HB.tv</h3>
  </div>
  <div class="modal-body" style="padding-bottom: 0px">
            <div class="control-group">
              <div class="controls">
<object type="application/x-shockwave-flash" height="378" width="620" id="live_embed_player_flash" data="http://pl.twitch.tv/widgets/live_embed_player.swf?channel=plhb" bgcolor="#000000"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="allowNetworking" value="all" /><param name="movie" value="http://pl.twitch.tv/widgets/live_embed_player.swf" /><param name="flashvars" value="hostname=pl.twitch.tv&amp;channel=plhb&amp;auto_play=false&amp;start_volume=25" /></object>           </div>
            </div>
  </div>
</div>'
;


echo 
'
<div class="alert alert-danger" style="padding:10px;">
<table class="tborder table-bordered" style="margin:0;"><tbody><tr><td class="trow2" colspan="3" style="width:990px; text-align: center; border-left:0; padding-left: 100px;">
'
.date('d-m-Y'$czas).' <span class="muted">w PL-HB.tv</span><a class="pull-right btn btn-mini btn-inverse" href="#streambox" role="button" data-toggle="modal" >Oglądaj na żywo</a></td></tr>

'
;

$linknbmysql_query('SELECT * FROM `mybb_events` WHERE `cid` = 2 AND`starttime` = "'.$czas.'" ORDER BY `description` ASC');
while(
$wiersznb=mysql_fetch_array($linknb)){


if(
$wiersznb['eid'] == 18){
echo
'<tr><td class="trow1" style="text-align: center; border-left:0;"><span class="muted">Losowanie lig 1A i 1B 1vs1</span><br />16:30
</td></tr>'
;
} else {

preg_match_all("#\[(.*?)\] (.*?) -:- (.*)#"$wiersznb['name'], $foundPREG_SET_ORDER);


foreach (
$found as $val) {

$reszta1 preg_replace('#\[.*\]#'''$wiersznb['name']);
$zamiana1 '<br /><span class="muted">vs.</span>';
$reszta2preg_replace('#-:-#'$zamiana1$reszta1);


echo 
'



                <tr>'
;

$linkd1mysql_query('SELECT * FROM `mybb_teams` WHERE `id` = "'.$val[2].'" ORDER BY `id` DESC LIMIT 1');
while(
$wierszd1=mysql_fetch_array($linkd1)){

$linktrener=mysql_query("SELECT `uid`, `username` FROM `mybb_users` WHERE `uid` = ".$wierszd1['trener']." LIMIT 1");
$wiersztrener=mysql_fetch_array($linktrener);

$trenerlink '<span class="muted">zarządzane przez</span> <a href="member.php?action=profile&amp;uid='.$wiersztrener['uid'].'">'.$wiersztrener['username'].'</a>';
$druzynalink '<a href="liga.php?typ=3vs3&amp;strona=druzyna&amp;id='.$wierszd1['id'].'">'.$wierszd1['nazwa'].'</a>';
$herb $wierszd1['herb'];
}
if(
$val[2] == "PL-HB"){

$herb 'http://www.pl-hb.net/images/pl-hb-net.png';
$trenerlink '<span class="muted">uczestnik gali</span>';
$druzynalink 'PL-HB.net';
}

echo
'

<td width="46%" class="trow1" style="text-align: right; border-left:0;">
<div style="padding: 3px;display: block; background: white;border: 1px solid #E5E5E5;border-radius: 4px;width: 30px;height: 30px;float: right;margin-left: 10px;"><div class="imgmiddle" style="height:30px; width: 30px; overflow: hidden; float: left;"><img src="'
.$herb.'" alt="" style="width: 30px;"></div></div>
<div style="margin-top: 5px;float: right;line-height: 15px;">'
.$druzynalink.'
<br><span style="font-size: 12px;">'
.$trenerlink.'</span></div></span></td>';



echo
'<td width="8%" class="trow2" valign="middle" style="text-align: center;">'.$wiersznb['description'].'</td>';


$linkd2mysql_query('SELECT * FROM `mybb_teams` WHERE `id` = "'.$val[3].'" ORDER BY `id` DESC LIMIT 1');
while(
$wierszd2=mysql_fetch_array($linkd2)){

$linktrener=mysql_query("SELECT `uid`, `username` FROM `mybb_users` WHERE `uid` = ".$wierszd2['trener']." LIMIT 1");
$wiersztrener=mysql_fetch_array($linktrener);

$trenerlink '<span class="muted">zarządzane przez</span> <a href="member.php?action=profile&amp;uid='.$wiersztrener['uid'].'">'.$wiersztrener['username'].'</a>';
$druzynalink '<a href="liga.php?typ=3vs3&amp;strona=druzyna&amp;id='.$wierszd2['id'].'">'.$wierszd2['nazwa'].'</a>';
$herb $wierszd2['herb'];

}

if(
$val[3] == "Modern hax"){

$herb 'http://www.pl-hb.net/images/herb.png';
$trenerlink '<span class="muted">uczestnik gali</span>';
$druzynalink 'Modern Hax';
}

echo
'

<td width="46%" class="trow1" style="text-align: left;">
<div style="padding: 3px;display: block; background: white;border: 1px solid #E5E5E5;border-radius: 4px;width: 30px;height: 30px;float: left;margin-right:10px;"><div class="imgmiddle" style="height:30px; width: 30px; overflow: hidden; float: left;"><img src="'
.$herb.'" alt="" style="width: 30px;"></div></div>
<div style="margin-top: 5px;float: left;line-height: 15px;">'
.$druzynalink.'
<br><span style="font-size: 12px;"> '
.$trenerlink.'</span></div></span></td>';





echo
'
</tr>'
;

}
}

}
echo
'</tbody></table>';


echo 
'</div>';
}
 
/*

<img src="stay-tuned.png" border="0" style="margin: 0 154px 20px 154px;" alt="">


*/

?>
<div class="" style="width: 690px; float:left;">
<style type="text/css" scoped>

.shoutbox {
    margin: 0;
    padding: 0;
    left: 0;
}


li.shoutbox_normal {
    list-style: none;
    margin: 0;
    position: relative;
    cursor: pointer;
    color: transparent;
    display: inline ;
    border: 1px;
    border-color: #FFFFFF;
}

li.shoutbox_color {
    list-style: none;
    position: relative;
    cursor: pointer;
    color: transparent;
    display: inline ;
    border: 0px;
    float: left;
    margin: 1px;
}

.shoutbox_button_color a {
    width: 9px;
    height: 9px;
    display: block;
    border: 1px solid #FFF;
}

#shoutbox_data a {
color: #333;
font-weight: none;
}

</style>
<div>
<table  class="tborder" style="border-top: 0; width: 687px; margin:auto; margin-bottom:20px;">
<tr>
<td class="thead" style="width:690px; height: 25px; background-image: url(../images/ababab.png);">

<?php


if($postyusera 5){
$postblock 'disabled class="disabled" value="Shoutbox dostępny od 5 postów"';
$postblock2 ' type="button" class="btn btn-small btn-success disabled" disabled';
$postblock3='';
} else {
$postblock 'placeholder="Treść wiadomości"';
$postblock2 ' type="submit" class="btn btn-small btn-success"';
$postblock3 "onsubmit=\"ShoutBox.postShout(); $('shout_data').value = ''; return false;\"";
}

?>
<form style="float:right;height: 0px;" {$postblock3}> <input type="text" {$postblock} id="shout_data" size="270" style="
    margin-top: 0px;
    height: 15px;
    font-size: 85%;
width: 600px;
margin-right: 3px;"><button {$postblock2}  id="shouting-status" value="" style="
    margin-top: -8px;
">Wyślij</button></form>
</td>
</tr>
<tr>
 <td class="trow1" style="width:100%;"><div id="shoutbox_data" style="height: 160px; overflow: auto;"><div class="smalltext" style="margin:auto;">Ładowanie shoutów...</div></div></td>
</tr>
<tr>
 <td class="trow1" style="width:100%;">
<a href="http://pl-hb.net/index.php?action=full_shoutbox" class="pull-right btn btn-mini">Archiwum shoutboxa</a>
<a style="cursor: pointer; margin-right: 8px;" class="pull-right btn btn-mini" id="smilies" onclick="window.open('misc.php?action=smilies&amp;popup=true&amp;editor=clickableEditor','{$lang->mysb_smilies}','scrollbars=yes, menubar=no,width=460,height=360,toolbar=no');">Emotikony</a></td></tr>
</table>
</div>
<script type="text/javascript">
ShoutBox.refreshInterval = {$mybb->settings['mysb_refresh_interval']};
ShoutBox.MaxEntries = {$mybb->settings['mysb_shouts_main']};
ShoutBox.lang = ['{$lang->mysb_posting}', '{$lang->mysb_shoutnow}', '{$lang->mysb_loading}', '{$lang->mysb_flood_check}', '{$lang->mysb_no_perform}', '{$lang->mysb_already_sent}', '{$lang->mysb_deleted}', '{$lang->mysb_invalid}', '{$lang->mysb_self}', '{$lang->mysb_report_invalid_sid}', '{$lang->mysb_shout_reported}', '{$lang->mysb_shout_already_reported}'];
{$extra_js}
Event.observe(window, 'load', ShoutBox.showShouts); 
</script>
<?php 

if($mybb->user['uid'] == '0'){

 echo
'<div style="height: 258px; background: rgba(218, 218, 218, 0.81);  text-align: center;width: 687px; float: left;margin-top: -280px;position: absolute;border: 1px solid #DDD;  -webkit-border-radius: 4px;  -moz-border-radius: 4px;  border-radius: 4px;  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055);  -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055);  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);"><a href="http://pl-hb.net/member.php?action=login" class="btn btn-small btn-success disabled" style="
    margin-top: 125px;
">Aby przeglądać shoutbox, musisz się zalogować!</a></div>'
;
}
?>
{$forums} 
</div>

<div  id="sidebar" style="width: 280px; float:right;">
<?php

if($mybb->user['unreadpms'] != 0){
echo 
'<div class="alert alert-info" style="text-align: justify;padding: 8px 14px 8px 14px;"><strong>Hej!</strong> Masz co najmniej jedną nieodebraną prywatną wiadomość, zajrzyj tutaj: <a href="http://pl-hb.net/private.php?fid=1">klik</a>.
</div>'
;
}




?>    
 <div id="roomList" style="margin-bottom: 20px;">
<ul class="nav profile-sidenav" style="width:100%; margin-top:0; text-align: left;">
<li class="active" style="color: white;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
 background-image: url(../images/ababab.png);margin: 0 0 -1px;
padding: 8px 14px;
border: 1px solid #E5E5E5;"><i class="icon-play pull-right" style="margin: 3px 0"></i> Zagraj z nami!</li>
<li class="muted" style="text-align: center; margin: 0 0 -1px;
padding: 8px 14px;
border: 1px solid #E5E5E5;">
Ładowanie pokoi...</li>

</ul>
</div>   
<a class="twitter-timeline" href="https://twitter.com/PLHBnet" data-widget-id="399923220037373952">Tweety na temat @PLHBnet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<ul class="nav profile-sidenav" style="width:100%; margin-top:20px;">
          <li class="active" style="color: white;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
 background-image: url(../images/ababab.png);margin: 0 0 -1px;
padding: 8px 14px;
border: 1px solid #E5E5E5;"><i class="icon-comment pull-right" style="margin: 3px 0"></i> Ostatnie posty </li>

<?php
    $query 
$db->simple_select('posts''*'"fid!=64 AND fid!=78 AND fid!=58 AND fid!=30 AND fid!=450 AND fid!=126 AND visible!=0", array('order_by' => 'dateline'"order_dir" => 'DESC'"limit" => 5));
    while(
$post $db->fetch_array($query)) {

$sqkl $db->simple_select('threads''*'"tid={$post['tid']}");
$thread $db->fetch_array($sqkl);
        
$lastpostdate my_date($mybb->settings['dateformat'], $post['dateline']);
        
$lastposttime my_date($mybb->settings['timeformat'], $post['dateline']);

if(
strlen($thread['subject']) > 25){
$tytul mb_substr($thread['subject'], 025'utf-8').'...';
} else {
$tytul $thread['subject'];
}

if(
strlen($post['username']) > 10){
$post['username'] = mb_substr($post['username'], 010'utf-8')."...";
}

$lastposteravatar_sql $db->simple_select("users""`avatar`""`uid` = ".$post['uid']); 
$lastposteravatar $db->fetch_array($lastposteravatar_sql);
$lastpost_profilelink '<a href="member.php?action=profile&amp;uid='.$post['uid'].'">'.$post['username'].'</a>'

echo 
'<li class="smalltext" style="margin: 0 0 -1px;
padding: 8px 14px;
border: 1px solid #E5E5E5;">
<div style="padding: 3px;display: block; background: white;border: 1px solid #E5E5E5;border-radius: 4px;width: 30px;height: 30px;float: left;margin-right: 10px;"><div class="imgmiddle" style="height:30px; width: 30px; overflow: hidden; float: left;"><img src="'
.$lastposteravatar['avatar'].'" alt style="width: 30px;"/></div></div>
<div style="margin-top: 3px;float: left;line-height: 15px;"><a href="showthread.php?tid='
.$post['tid'].'&amp;action=lastpost">'.$tytul.'</a>
<br /><span style="font-size: 12px;">'
.$lang->by.' '.$lastpost_profilelink.', <span class="muted">'.strtolower($lastpostdate).' '.$lastposttime.'</span></span></div><br style="clear:both;" /></li>';  
}
?>


        </ul>

<ul class="nav profile-sidenav" style="width:100%; margin-top:20px;">
          <li class="active" style="color: white;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
 background-image: url(../images/ababab.png);margin: 0 0 -1px;
padding: 8px 14px;
border: 1px solid #E5E5E5;"><i class="icon-star pull-right" style="margin: 3px 0"></i> Ekstraklasa </li>

<?php
    $query 
$db->simple_select('teams''*'"liga = 'ekstraklasa'", array('order_by' => 'miejsce'"order_dir" => 'ASC'"limit" => 12));
    while(
$team $db->fetch_array($query)) {



$m $team['miejsce'];
$rm $team['wygrane'] + $team['przegrane'] + $team['remisy'];
$pkt $team['punkty'];


$skrot '<a href="liga/3vs3/?strona=druzyna&id='.$team['id'].'">'.$team['nazwa'].'</a>'

echo 
'<li class="smalltext" style="margin: 0 0 -1px;
padding: 8px 14px;
border: 1px solid #E5E5E5;">
<div style="background: url('
.$team['herb'].') no-repeat center center; height: 36px;width: 44px; margin: -8px 0 0 -12px;position: absolute;display: inline-block; z-index: 1; background-size: cover;opacity: 0.6;"></div>
<div style="padding: 1px 5px 1px; font-weight: bold; position: absolute; margin-left: 1px; z-index: 3;text-align: center;" class="label">'
.$m.'</div>
<div style="width: 146px; margin-left: 45px; display: inline-block;">'
.$skrot.'</div>
<div style="width: 26px; text-align: right; display: inline-block;">'
.$rm.'</div>
<div style="width: 26px; text-align: right; font-weight: bold; display: inline-block;">'
.$pkt.'</div></li>';  
}
?>


        </ul>
<ul class="nav profile-sidenav" style="width:100%; margin-top:20px;">
          <li class="active" style="color: white;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
 background-image: url(../images/ababab.png);margin: 0 0 -1px;
padding: 8px 14px;
border: 1px solid #E5E5E5;"><i class="icon-list pull-right" style="margin: 3px 0"></i> Ostatnie ogłoszenia drużyn </li>

<?php
    $queryad 
$db->simple_select('ads''*'"CHAR_LENGTH(tresc)  > 60", array('order_by' => 'id'"order_dir" => 'DESC'"limit" => 3));
    while(
$ad $db->fetch_array($queryad)) {

$sqkt $db->simple_select('teams''`herb`, `nazwa`'"id=".$ad['tid']);
$team $db->fetch_array($sqkt);

if(
strlen($ad['tytul']) > 25){
$adtytul substr($ad['tytul'], 020).'...';
} else {
$adtytul $ad['tytul'];
}

echo 
'<li class="smalltext" style="margin: 0 0 -1px;
padding: 8px 14px;
border: 1px solid #E5E5E5; text-align:justify;">
<div style="padding: 3px;display: block; background: white;border: 1px solid #E5E5E5;border-radius: 4px;width: 70px;height: 70px;float: left;margin-right: 10px;"><div class="imgmiddle" style="height:70px; width: 70px; overflow: hidden; float: left;"><img src="'
.$team['herb'].'" data-rel="tooltip" data-original-title="'.$team['nazwa'].'" alt style="width: 70px;"/></div></div>
<div style="margin-top: 3px;line-height: 15px;"><a href="http://pl-hb.net/liga.php?typ=3vs3&amp;strona=druzyna&amp;id='
.$ad['tid'].'&amp;ref=ticker#ad'.$ad['id'].'" style="font-size: 13px;">'.$adtytul.'</a>
<br />'
.strip_tags(mb_substr($ad['tresc'], 080'utf-8')).'...</div><cite class="pull-right" style="opacity: 1; margin-top: -1px;">'.$team['nazwa'].'</cite><br style="clear:both;" /></li>';  
}
?>


        </ul>
<ul class="nav profile-sidenav" style="width:100%; margin-top:20px;">
          <li class="active" style="color: white;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
 background-image: url(../images/ababab.png);margin: 0 0 -1px;
padding: 8px 14px;
border: 1px solid #E5E5E5;"><i class="icon-bullhorn pull-right" style="margin: 3px 0"></i> Serwer głosowy</li>
          <li class="" style="margin: 0 0 -1px;
padding: 8px 14px;
border: 1px solid #E5E5E5;">

<div id="ts3viewer_1030761" style="width:; background-color:; height: 135px; display: flex;"> </div>

<script type="text/javascript" src="http://static.tsviewer.com/short_expire/js/ts3viewer_loader.js"></script>

<script type="text/javascript">
<!--
var ts3v_url_1 = "http://www.tsviewer.com/ts3viewer.php?ID=1030761&text=000000&text_size=12&text_family=1&js=1&text_s_weight=bold&text_s_style=normal&text_s_variant=normal&text_s_decoration=none&text_s_color_h=525284&text_s_weight_h=bold&text_s_style_h=normal&text_s_variant_h=normal&text_s_decoration_h=underline&text_i_weight=normal&text_i_style=normal&text_i_variant=normal&text_i_decoration=none&text_i_color_h=525284&text_i_weight_h=normal&text_i_style_h=normal&text_i_variant_h=normal&text_i_decoration_h=underline&text_c_weight=normal&text_c_style=normal&text_c_variant=normal&text_c_decoration=none&text_c_color_h=525284&text_c_weight_h=normal&text_c_style_h=normal&text_c_variant_h=normal&text_c_decoration_h=underline&text_u_weight=bold&text_u_style=normal&text_u_variant=normal&text_u_decoration=none&text_u_color_h=525284&text_u_weight_h=bold&text_u_style_h=normal&text_u_variant_h=normal&text_u_decoration_h=none";
ts3v_display.init(ts3v_url_1, 1030761, 100);
-->
</script>

</li>
        </ul>

<ul class="nav profile-sidenav" style="width:100%; margin-top:20px;">
          <li class="active" style="color: white;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
 background-image: url(../images/ababab.png);margin: 0 0 -1px;
padding: 8px 14px;
border: 1px solid #E5E5E5;"><i class="icon-gift pull-right" style="margin: 3px 0"></i>Sklep z gadżetami</li>

<li class="" style="margin: 0 0 -1px;
padding: 8px 14px;
border: 1px solid #E5E5E5; text-align:justify;">
<div style="padding: 3px;display: block; background: white;border: 1px solid #E5E5E5;border-radius: 4px;width: 70px;height: 70px;float: left;margin-right: 8px;"><div class="imgmiddle" style="height:70px; width: 70px; overflow: hidden; float: left;/* background: #333; */">

<a href="http://sklep.pl-hb.net/"><img src="http://pl-hb.cupsell.pl/upload/generator/1145/74873/product/print-1.jpg"  data-original-title="" alt="" style="width: 70px;"></a>


</div></div><div style="padding: 3px;display: block; background: white;border: 1px solid #E5E5E5;border-radius: 4px;width: 70px;height: 70px;float: left;margin-right: 8px;"><div class="imgmiddle" style="height:70px; width: 70px; overflow: hidden; float: left;/* background: #333; */">

<a href="http://sklep.pl-hb.net/"><img src="http://pl-hb.cupsell.pl/upload/generator/1148/74876/product/print-1.jpg"  data-original-title="" alt="" style="width: 70px;"></a>

</div></div><div style="padding: 3px;display: block; background: white;border: 1px solid #E5E5E5;border-radius: 4px;width: 70px;height: 70px;float: left;/* margin-right: 10px; */"><div class="imgmiddle" style="height:70px; width: 70px; overflow: hidden; float: left;/* background: #333; */">

<a href="http://sklep.pl-hb.net/"><img src="http://pl-hb.cupsell.pl/upload/generator/1152/74880/product/print-1.jpg"  alt="" style="width: 70px;"></a>

</div></div>
<br style="clear:both;"></li>


        </ul>
<a href="http://hbtube.pl-hb.net/"><img src="images/hbtube-baner.png" alt="" style="width:100%; margin-top:20px;" /></a>

<ul class="nav profile-sidenav" style="width:100%; margin-top:20px;">
          <li class="active" style="color: white;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
 background-image: url(../images/ababab.png);margin: 0 0 -1px;
padding: 8px 14px;
border: 1px solid #E5E5E5;"><i class="icon-search pull-right" style="margin: 3px 0"></i> Wyszukiwarka sparingpartnerów</li>

<?php
$link
=$db->write_query('SELECT * FROM `playnow_ads` ORDER BY `id` DESC LIMIT 6');

            while(
$wiersz=$db->fetch_array($link))
{



    echo 
'
          <li class="" style="margin: 0 0 -1px;
border: 1px solid #E5E5E5; float:left;">
<div style="margin-top: -1px; opacity: 0.8;">'
;

if(
$wiersz['host'] == 1){
                                        echo
'<div class="btn-success" style="border-right:1px solid #ddd;text-align: center;border-top: 0;width: 40px;display: block;float: left;height: 39px;"><i class="icon-ok-sign" data-placement="right" data-rel="tooltip" data-original-title="Host jest zapewniony" style="margin-top:13px;"></i></div>';
} elseif(
$wiersz['host'] == 0){
echo
'<div class="btn-danger" style="border-right:1px solid #ddd;text-align: center;border-top: 0;width: 40px;display: block;float: left;height: 39px;"><i class="icon-remove-sign" data-rel="tooltip" data-placement="right"  data-original-title="Host nie jest zapewniony" style="margin-top:13px;"></i></div>';
} else {
echo
'<div class="btn-warning" style="border-right:1px solid #ddd;text-align: center;border-top: 0;width: 40px;display: block;float: left;height: 39px;"><i class="icon-question-sign" data-rel="tooltip" data-placement="right" data-original-title="Dostępność hosta nie została określona" style="margin-top:13px;"></i></div>';
}

if(
strlen($wiersz['text']) > 30){
$wiersz['text'] = substr($wiersz['text'], 030).'<span data-rel="tooltip" data-original-title="'.substr($wiersz['text'], 30strlen($wiersz['text'])).'" data-placement="right">...</span>';
}


echo
'<div style="
    height: 30px;
    padding-left: 45px;
    padding-bottom: 4px;
    padding-top: 4px;
width: 233px;
"><small style="
    line-height: 15px;
">'
.$wiersz['text'].'</small><br>
<span class="muted smalltext" style="float: left; line-height: 15px;text-align: left;">'
.formatujDate($wiersz['time']).'</span></div></div>';


echo
'</li>
'
;


}
echo
'<li style="color: white;
margin: 0 0 -1px;
padding: 1px 4px;
text-align: right;
height: 231px;
border: 1px solid #E5E5E5;"></li>'
;
?>
</ul>
<ul class="nav profile-sidenav" style="width:100%; margin-top:20px;">
          <li class="" style="margin: 0 0 -1px;
padding: 8px 14px;
border: 1px solid #E5E5E5; text-align: center;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-7471788589273857";
/* PL-HB */
google_ad_slot = "5059640060";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</li>

        </ul>

</div>


{$boardstats}
<br style="clear: both" />
{$footer}
</body>
</html> 
Jak nie ma, a to to co?
<?php

$czas = strtotime(date('Y-m-d'));
$linknb2= mysql_query('SELECT * FROM `mybb_events` WHERE `cid` = 2 AND`starttime` = "'.$czas.'" ORDER BY `description` ASC');

...
...
...
Jeśli Ci pomogłem naciśnij guzik POMÓGŁ lub dodaj PUNKT REPUTACJI
Czyli jak mam to zamienić, żeby działało? :)
blad na ss mowi o polaczeniu a tu jest tylko zapytanie
pokaz plik index.php
<?php
/**
 * MyBB 1.6
 * Copyright 2010 MyBB Group, All Rights Reserved
 *
 * Website: http://mybb.com
 * License: http://mybb.com/about/license
 *
 * $Id$
 */

define("IN_MYBB"1);
define('THIS_SCRIPT''index.php');

$templatelist "index,index_whosonline,index_whosonline_memberbit,forumbit_depth1_cat,forumbit_depth2_cat,forumbit_depth2_forum,forumbit_depth1_forum_lastpost,forumbit_depth2_forum_lastpost,forumbit_moderators,forumbit_subforums";
$templatelist .= ",index_birthdays_birthday,index_birthdays,index_loginform,index_logoutlink,index_stats,forumbit_depth3,forumbit_depth3_statusicon,index_boardstats";

require_once 
"./global.php";

require_once 
MYBB_ROOT."inc/functions_post.php";
require_once 
MYBB_ROOT."inc/functions_forumlist.php";
require_once 
MYBB_ROOT."inc/class_parser.php";
$parser = new postParser;

$plugins->run_hooks("index_start");

// Load global language phrases
$lang->load("index");

$logoutlink $loginform '';
if(
$mybb->user['uid'] != 0)
{
    eval(
"\$logoutlink = \"".$templates->get("index_logoutlink")."\";");
}
else
{
    
//Checks to make sure the user can login; they haven't had too many tries at logging in.
    //Function call is not fatal
    
if(login_attempt_check(false) !== false)
    {
        switch(
$mybb->settings['username_method'])
        {
            case 
0:
                
$login_username $lang->login_username;
                break;
            case 
1:
                
$login_username $lang->login_username1;
                break;
            case 
2:
                
$login_username $lang->login_username2;
                break;
            default:
                
$login_username $lang->login_username;
                break;
        }
        eval(
"\$loginform = \"".$templates->get("index_loginform")."\";");
    }
}
$whosonline '';
if(
$mybb->settings['showwol'] != && $mybb->usergroup['canviewonline'] != 0)
{
    
// Get the online users.
    
$timesearch TIME_NOW $mybb->settings['wolcutoff'];
    
$comma '';
    
$query $db->query("
        SELECT s.sid, s.ip, s.uid, s.time, s.location, s.location1, u.username, u.invisible, u.usergroup, u.displaygroup
        FROM "
.TABLE_PREFIX."sessions s
        LEFT JOIN "
.TABLE_PREFIX."users u ON (s.uid=u.uid)
        WHERE s.time>'
$timesearch'
        ORDER BY u.username ASC, s.time DESC
    "
);

    
$onlinemembers '';
    
$forum_viewers $doneusers = array();
    
$botcount $membercount $anoncount $guestcount 0;

    
// Fetch spiders
    
$spiders $cache->read("spiders");

    
// Loop through all users.
    
while($user $db->fetch_array($query))
    {
        
// Create a key to test if this user is a search bot.
        
$botkey my_strtolower(str_replace("bot="''$user['sid']));

        
// Decide what type of user we are dealing with.
        
if($user['uid'] > 0)
        {
            
// The user is registered.
            
if(empty($doneusers[$user['uid']]) || $doneusers[$user['uid']] < $user['time'])
            {
                
// If the user is logged in anonymously, update the count for that.
                
if($user['invisible'] == 1)
                {
                    ++
$anoncount;
                }
                ++
$membercount;
                if(
$user['invisible'] != || $mybb->usergroup['canviewwolinvis'] == || $user['uid'] == $mybb->user['uid'])
                {
                    
// If this usergroup can see anonymously logged-in users, mark them.
                    
if($user['invisible'] == 1)
                    {
                        
$invisiblemark "*";
                    }
                    else
                    {
                        
$invisiblemark '';
                    }

                    
// Properly format the username and assign the template.
                    
$user['username'] = format_name($user['username'], $user['usergroup'], $user['displaygroup']);
                    
$user['profilelink'] = build_profile_link($user['username'], $user['uid']);
                    eval(
"\$onlinemembers .= \"".$templates->get("index_whosonline_memberbit"10)."\";");
                    
$comma $lang->comma;
                }
                
// This user has been handled.
                
$doneusers[$user['uid']] = $user['time'];
            }
        }
        elseif(
my_strpos($user['sid'], "bot=") !== false && $spiders[$botkey])
        {
            
// The user is a search bot.
            
$onlinemembers .= $comma.format_name($spiders[$botkey]['name'], $spiders[$botkey]['usergroup']);
            
$comma $lang->comma;
            ++
$botcount;
        }
        else
        {
            
// The user is a guest.
            
++$guestcount;
        }

        if(
$user['location1'])
        {
            
$forum_viewers[$user['location1']]++;
        }
    }

    
// Build the who's online bit on the index page.
    
$onlinecount $membercount $guestcount $botcount;

    if(
$onlinecount != 1)
    {
        
$onlinebit $lang->online_online_plural;
    }
    else
    {
        
$onlinebit $lang->online_online_singular;
    }
    if(
$membercount != 1)
    {
        
$memberbit $lang->online_member_plural;
    }
    else
    {
        
$memberbit $lang->online_member_singular;
    }
    if(
$anoncount != 1)
    {
        
$anonbit $lang->online_anon_plural;
    }
    else
    {
        
$anonbit $lang->online_anon_singular;
    }
    if(
$guestcount != 1)
    {
        
$guestbit $lang->online_guest_plural;
    }
    else
    {
        
$guestbit $lang->online_guest_singular;
    }
    
$lang->online_note $lang->sprintf($lang->online_notemy_number_format($onlinecount), $onlinebit$mybb->settings['wolcutoffmins'], my_number_format($membercount), $memberbitmy_number_format($anoncount), $anonbitmy_number_format($guestcount), $guestbit);
    eval(
"\$whosonline = \"".$templates->get("index_whosonline")."\";");
}

// Build the birthdays for to show on the index page.
$bdays $birthdays '';
if(
$mybb->settings['showbirthdays'] != 0)
{
    
// First, see what day this is.
    
$bdaycount 0$bdayhidden 0;
    
$bdaytime TIME_NOW;
    
$bdaydate my_date("j-n"$bdaytime''0);
    
$year my_date("Y"$bdaytime''0);

    
$bdaycache $cache->read("birthdays");

    if(!
is_array($bdaycache))
    {
        
$cache->update_birthdays();
        
$bdaycache $cache->read("birthdays");
    }

    
$hiddencount $today_bdays 0;
    if(isset(
$bdaycache[$bdaydate]))
    {
        
$hiddencount $bdaycache[$bdaydate]['hiddencount'];
        
$today_bdays $bdaycache[$bdaydate]['users'];
    }

    
$comma '';
    if(!empty(
$today_bdays))
    {
        if(
intval($mybb->settings['showbirthdayspostlimit']) > 0)
        {
            
$bdayusers = array();
            foreach(
$today_bdays as $key => $bdayuser_pc)
            {
                
$bdayusers[$bdayuser_pc['uid']] = $key;
            }

            if(!empty(
$bdayusers))
            {
                
// Find out if our users have enough posts to be seen on our birthday list
                
$bday_sql implode(","array_keys($bdayusers));
                
$query $db->simple_select("users""uid, postnum""uid IN ({$bday_sql})");

                while(
$bdayuser $db->fetch_array($query))
                {
                    if(
$bdayuser['postnum'] < $mybb->settings['showbirthdayspostlimit'])
                    {
                        unset(
$today_bdays[$bdayusers[$bdayuser['uid']]]);
                    }
                }
            }
        }

        
// We still have birthdays - display them in our list!
        
if(!empty($today_bdays))
        {
            foreach(
$today_bdays as $bdayuser)
            {
                if(
$bdayuser['displaygroup'] == 0)
                {
                    
$bdayuser['displaygroup'] = $bdayuser['usergroup'];
                }

                
// If this user's display group can't be seen in the birthday list, skip it
                
if($groupscache[$bdayuser['displaygroup']] && $groupscache[$bdayuser['displaygroup']]['showinbirthdaylist'] != 1)
                {
                    continue;
                }

                
$bday explode("-"$bdayuser['birthday']);
                if(
$year $bday['2'] && $bday['2'] != '')
                {
                    
$age " (".($year $bday['2']).")";
                }
                else
                {
                    
$age '';
                }

                
$bdayuser['username'] = format_name($bdayuser['username'], $bdayuser['usergroup'], $bdayuser['displaygroup']);
                
$bdayuser['profilelink'] = build_profile_link($bdayuser['username'], $bdayuser['uid']);
                eval(
"\$bdays .= \"".$templates->get("index_birthdays_birthday"10)."\";");
                ++
$bdaycount;
                
$comma $lang->comma;
            }
        }
    }

    if(
$hiddencount 0)
    {
        if(
$bdaycount 0)
        {
            
$bdays .= " - ";
        }
        
$bdays .= "{$hiddencount} {$lang->birthdayhidden}";
    }

    
// If there are one or more birthdays, show them.
    
if($bdaycount || $hiddencount 0)
    {
        eval(
"\$birthdays = \"".$templates->get("index_birthdays")."\";");
    }
}

// Build the forum statistics to show on the index page.
if($mybb->settings['showindexstats'] != 0)
{
    
// First, load the stats cache.
    
$stats $cache->read("stats");

    
// Check who's the newest member.
    
if(!$stats['lastusername'])
    {
        
$newestmember "no-one";
    }
    else
    {
        
$newestmember build_profile_link($stats['lastusername'], $stats['lastuid']);
    }

    
// Format the stats language.
    
$lang->stats_posts_threads $lang->sprintf($lang->stats_posts_threadsmy_number_format($stats['numposts']), my_number_format($stats['numthreads']));
    
$lang->stats_numusers $lang->sprintf($lang->stats_numusersmy_number_format($stats['numusers']));
    
$lang->stats_newestuser $lang->sprintf($lang->stats_newestuser$newestmember);

    
// Find out what the highest users online count is.
    
$mostonline $cache->read("mostonline");
    if(
$onlinecount $mostonline['numusers'])
    {
        
$time TIME_NOW;
        
$mostonline['numusers'] = $onlinecount;
        
$mostonline['time'] = $time;
        
$cache->update("mostonline"$mostonline);
    }
    
$recordcount $mostonline['numusers'];
    
$recorddate my_date($mybb->settings['dateformat'], $mostonline['time']);
    
$recordtime my_date($mybb->settings['timeformat'], $mostonline['time']);

    
// Then format that language string.
    
$lang->stats_mostonline $lang->sprintf($lang->stats_mostonlinemy_number_format($recordcount), $recorddate$recordtime);

    eval(
"\$forumstats = \"".$templates->get("index_stats")."\";");
}

// Show the board statistics table only if one or more index statistics are enabled.
if(($mybb->settings['showwol'] != && $mybb->usergroup['canviewonline'] != 0) || $mybb->settings['showindexstats'] != || ($mybb->settings['showbirthdays'] != && $bdaycount 0))
{
    if(!
is_array($stats))
    {
        
// Load the stats cache.
        
$stats $cache->read("stats");
    }

    
$post_code_string '';
    if(
$mybb->user['uid'])
    {
        
$post_code_string "&amp;my_post_key=".$mybb->post_code;
    }

    eval(
"\$boardstats = \"".$templates->get("index_boardstats")."\";");
}

if(
$mybb->user['uid'] == 0)
{
    
// Build a forum cache.
    
$query $db->query("
        SELECT *
        FROM "
.TABLE_PREFIX."forums
        WHERE active != 0
        ORDER BY pid, disporder
    "
);

    
$forumsread my_unserialize($mybb->cookies['mybb']['forumread']);
}
else
{
    
// Build a forum cache.
    
$query $db->query("
        SELECT f.*, fr.dateline AS lastread
        FROM "
.TABLE_PREFIX."forums f
        LEFT JOIN "
.TABLE_PREFIX."forumsread fr ON (fr.fid=f.fid AND fr.uid='{$mybb->user['uid']}')
        WHERE f.active != 0
        ORDER BY pid, disporder
    "
);
}

while(
$forum $db->fetch_array($query))
{
    if(
$mybb->user['uid'] == 0)
    {
        if(!empty(
$forumsread[$forum['fid']]))
        {
            
$forum['lastread'] = $forumsread[$forum['fid']];
        }
    }
    
$fcache[$forum['pid']][$forum['disporder']][$forum['fid']] = $forum;
}
$forumpermissions forum_permissions();

// Get the forum moderators if the setting is enabled.
if($mybb->settings['modlist'] != "off")
{
    
$moderatorcache $cache->read("moderators");
}

$excols "index";
$permissioncache['-1'] = "1";
$bgcolor "trow1";

// Decide if we're showing first-level subforums on the index page.
if($mybb->settings['subforumsindex'] != 0)
{
    
$showdepth 3;
}
else
{
    
$showdepth 2;
}
$forum_list build_forumbits();
$forums $forum_list['forum_list'];

$plugins->run_hooks("index_end");

eval(
"\$index = \"".$templates->get("index")."\";");
output_page($index);

?>
po za tym forum wgl nie dziala
Bo cały czas mam ten styl aktywny. Załączyć default?
nie, zostaw ten

[Obrazek: JfZ2oRk.png]

tak nie dziala
Dlatego pytam, co mam zrobić z tym zapytaniem. Coś zmienić?
UPS. drobna literówka, już działa. Przepraszam.
blad ktory pokazalem na ss wyzej nie jest od tego zaptrania, wlacz podstawowy styl i i tak mi nie zadziala, nie wiem moze to tylko mi
Spójrz teraz :)



Użytkownicy przeglądający ten wątek:

1 gości