=1)){ $db->set_Rating($newsid,$Rating); } $result = $db->getnewsbyid($newsid); $title = $result[0]["title"]; $intro = $result[0]["intro"]; $content = $result[0]["content"]; $picturepath = "./photo/"; $viewnum = $result[0]["viewnum"]; $sourceurl = $result[0]["sourceurl"]; $source = $result[0]["source"]; $adddate = $result[0]["adddate"]; $db->addhit($viewnum,$newsid); $Rate = $result[0]["rating"]; $Rate1 = $Rate*10; $Rate2 = ceil($Rate1); $Rate = $Rate2/10; $pre[0] = $newsid-1; for ($i=1; $i<=$prenumber-1; $i++){ $pre[$i] = $pre[$i-1]-1; } $next[0] = $newsid+1; for ($i=1; $i<=$nextnumber-1; $i++){ $next[$i] = $next[$i-1]+1; } $picresult = $db->getpicbynewsid($newsid); include('functions.php'); ?> <?php print "$title"; ?> - News - Amazing Holidays
Add to Favourites
 
 
 
"; } if (!empty($picresult)){ while ( list($key,$val)=each($picresult) ) { $pictitle = stripslashes($val["pictitle"]); $picture = stripslashes($val["picture"]); print ""; } } if (!empty($content)){ $content = nl2br($content); print ""; } if (!empty($sourceurl)){ print ""; } else { if (!empty($source)){ print ""; } } if (!empty($adddate)){ print " "; } for ($i=0; $i<=$prenumber-1; $i++){ $prename[$i] = $db->getname($pre[$i]); if (!empty($prename[$i])){ $prenotemptytag = true; } } for ($i=0; $i<=$nextnumber-1; $i++){ $nextname[$i] = $db->getname($next[$i]); if (!empty($nextname[$i])){ $nextnotemptytag = true; } } if (($prenotemptytag)||($nextnotemptytag)){ print ""; } ?>

( $viewnum times read"; ?> )
» $intro ...

\"$pictitle\"

$pictitle

".wordwrap(ParseCode($content))."

Source:
$source
$front_source :
$source
$front_more ...
"; for ($i=0; $i<=$prenumber-1; $i++){ if (!empty($prename[$i])){ print "$prename[$i]
"; } } for ($i=0; $i<=$nextnumber-1; $i++){ if (!empty($nextname[$i])){ print "$nextname[$i]
"; } } print "