Parašė 3degrees· 2011 Geg. 12 00:05:46
#1
Sveiki, ką reikia pakeist kode, jei įjungus panelę meta štai tokias klaidas.
Notice: Undefined variable: image_url in /home/lasinkilas/public_html/infusions/randomphoto_panel/randomphoto_panel.php on line 16
Notice: Undefined index: thumb_image_w in /home/lasinkilas/public_html/infusions/randomphoto_panel/randomphoto_panel.php on line 19
Notice: Undefined index: thumb_image_h in /home/lasinkilas/public_html/infusions/randomphoto_panel/randomphoto_panel.php on line 19
Štai čia panelės kodas:
<?php
if (file_exists(INFUSIONS."randomphoto_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."randomphoto_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."randomphoto_panel/locale/English.php";
}
$result=dbquery(
"SELECT ta.album_id,album_title,photo_id,photo_title FROM ".$db_prefix."photo_albums ta ".
"JOIN ".$db_prefix."photos USING (album_id) ORDER BY RAND() LIMIT 1"
);
if(dbrows($result)==1){
openside($locale['FOT_001']);
$data=dbarray($result);
$filename=PHOTOS.$data['photo_id'].'t.jpg';
if(!file_exists($filename)) $filename=$image_url.'/imagenotfound.jpg';
echo "<center>
<a href='".BASEDIR."photogallery.php?photo=".$data['photo_id']."' class='gallery'>
<img src='".PHOTOS."".$data['photo_id']."t.jpg' width='".$settings['thumb_image_w']."' height='".$settings['thumb_image_h']."'
title='".$data['photo_title']."' alt='".$data['photo_title']."'>
</a><br /><a href='".BASEDIR."photogallery.php?album=".$data['album_id']."'>".$data['photo_title']."</a>
<br>
".$data['album_title']."
</center>";
@closeside();
}
?>
Ačiū.