<?php
if(!defined("DNREAD")) exit();
global $db,$basepref;
?>
<script language="javascript">
setTimeout( <?
$bt = '';
align=\"center\" >";
$inq = $db->query("SELECT photosid,cpu,title,image_thumb,image_alt FROM ".$basepref."_photos WHERE act='yes' ORDER BY MD5(RAND()) LIMIT 0, 15");
if($db->numrows($inq)>0){
while ($random = $db->fetchrow($inq)){
$randomimage_alt = ($random['image_alt']) ? $random['image_alt'] : '';
$randomimage = "<img align=\"right\" src=\"".$random['image_thumb']."\" alt=\"".$randomimage_alt."\">";
$randomcpu = ($workcpu==1 && $random['cpu']) ? "&cpu=".$random['cpu'] : "";
$img = ($randomimage) ? '<a href="index.php?dn=photos&to=image&id='.$random['photosid'].$randomcpu.'">ss'.$randomimage.'</a>' : "";
$bt.= "".$img."";
$a++;
}
return $api->siteuni($bt);
}
?>, 1000); </script>
я уже запутался во всем...