Mam problem z wtyczką Brotator v2.0
Wyskakuje mi błąd:
Fatal error: Call to undefined function: dbquery() in /home/chemart/public_html/infusions/brotator/brotator.php on line 5
A oto treśc pliku /home/chemart/public_html/infusions/brotator/brotator.php:
<?php
require_once("brotator_config.php");
// Wy¶wietlamy losowy banner
$result = dbquery("SELECT id, counter, banner, expireby, expireat FROM fusion_pb_brotator WHERE active=1 ORDER BY RAND() LIMIT 1;");
if (dbrows($result)) {
$data = dbarray($result);
if ($data['expireby']=='c') {
if ($data['counter']<=1) {
dbquery("UPDATE ".DB_PREFIX."pb_brotator SET counter=counter-1, views=views+1, active=0 WHERE id = '".$data['id']."'");
}
else {
dbquery("UPDATE ".DB_PREFIX."pb_brotator SET counter=counter-1, views=views+1 WHERE id = '".$data['id']."'");
}
}
if ($data['expireby']=='d') {
$tmpstr = explode("-", $data['expireat']);
$db_year = $tmpstr[0];
$db_month = $tmpstr[1];
$db_day = $tmpstr[2];
if ( mktime(0,0,0,date("m"),date("d"),date("Y")) > mktime(0,0,0, $db_month, $db_day, $db_year) ) {
dbquery("UPDATE ".DB_PREFIX."pb_brotator SET views=views+1, active=0 WHERE id = '".$data['id']."'");
}
else {
dbquery("UPDATE ".DB_PREFIX."pb_brotator SET views=views+1 WHERE id = '".$data['id']."'");
}
}
echo "<center><table width='360' cellspacing='0' cellpadding='0' border='0'><tr><td><fieldset width><legend>Reklama:</legend>";
echo "<a href='".PB_JUMP."?bid=".$data['id']."' target='_external'>";
echo "<img src='".$data['banner']."' border='0'>";
echo "</a>\n";
echo "</fieldset></td></tr></table></center>";
}
else {
// echo "<img src='".BASEDIR."images/banner.gif' border='0'>";
echo "";
}
?>
|