0){ $output .= poll_vote($PollID); }else{ $output .= "

$T_POLL $T_NOEXISTS!

"; } }elseif($act == "votepoll"){ $output .= poll_vote($PollID); }elseif($act == "collect"){ poll_collect($PollID, $PollDataID); $output .= poll_results($PollID); }elseif($act == "results"){ $output .= poll_results($PollID); }elseif($act == "vipoll"){ if(!isset($pos)){$pos=0;} $temp_pos = $pos; $get_count = mysql_query("SELECT COUNT(PollID) AS Total FROM $pdesc_file",$db); $count_row = @mysql_fetch_array($get_count); $numrec = $count_row[Total]; $numpage = intval($numrec/$step); if($numrec%$step){ $numpage++; } $get_poll = mysql_query("SELECT * FROM $pdesc_file ORDER BY PollDate DESC LIMIT $pos,$step",$db); if(mysql_num_rows($get_poll) == "0"){ $output .= <<$T_POLL $T_NOEXISTS!

$T_RETURN EOF; }else{ $output .= ""; while($get_rows=mysql_fetch_array($get_poll)){ $pretty_time = pretty_time($get_rows[PollDate],1); $output .= "\n"; } $output .= "
$get_rows[PollDesc] – $pretty_time
"; } $ps_text = $T_POLL; $ps_query = "$PHP_SELF?act=vipoll"; } $output = theme_opencenter_box($T_POLL) . $output . theme_closecenter_box(); /* ------------------------------------ * * Push what we got above on the screen * * ------------------------------------ */ flush(); include("$base_themepath/$theme/header.php"); include("$base_themepath/$theme/body-inside-open.php"); echo $output; $randpg = "
 
" . DisplayRandGal(); $file_file = "WMNArticle_Files"; $randcontent = DisplayRandContent(); $randcontent = "
 
" . $randcontent; echo $randpg; echo $randcontent; if($numpage > 1){ echo pagespan($ps_query, $ps_text, $T_WITH_S); } //echo ""; //echo "

Managed by WMLink, PHP & MySQL"; include("$base_themepath/$theme/body-inside-close.php"); include("$base_themepath/$theme/footer.php"); mysql_close($db); ?>