Mini Shell Moded By TiGER HeX
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
mnt
/
volume_sfo2_01
/
50mmla
/
includes
/
Linux midnightridazz 4.19.0-11-cloud-amd64 #1 SMP Debian 4.19.146-1 (2020-09-17) x86_64
Upload File :
New :
File
Dir
/mnt/volume_sfo2_01/50mmla/includes/footerHELL.php
<br><br><br></td> <td class="borderLines"><img height="1" width="1" src="images/spacer.gif" border="0"></td> <td valign="top" class="rightColumn" width="123"> <? //rightcolumn_ads $sql = "SELECT page_body FROM 50mm_pages WHERE page_name ='rightcolumn_ads'"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } $row = $db->sql_fetchrow($result); echo stripslashes($row['page_body']); ?> <div style="padding:5px;" class="rightColumn"> 50mm poll...<br><br> <script> count=0; function validateVote(theForm) { visibleOff('error');//turn of error div err = true; for(i=0;i<theForm.poll_cid.length;i++){ if (theForm.poll_cid[i].checked) { err = false; } } if (err) { visibleOn('error'); return false; } count++; if(count==1){ return true; }else{ alert ("We are currently processing your request."); return false; } } </script> <? $view_votes = ""; if(!$poll_voted){ $url = str_replace("viewResults=1","",$_SERVER['REQUEST_URI']); $view_votes = "<div align=\"center\"><a class=\"rightColumn\" href=\"".$url."\">[ view poll ]</a></div>"; } if( ($poll_voted) || isset($_REQUEST['viewResults']) ){ $sql = "SELECT question FROM 50mm_polls WHERE poll_id='$poll_id'"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } $row = $db->sql_fetchrow($result); $question = $row['question']; //get total number of votes //this query is too slow so a convulted method is used. Get all votes and all 0 votes //$sql = "SELECT COUNT(v.poll_cid) as total,c.choice FROM 50mm_poll_choices c LEFT JOIN 50mm_poll_votes v ON c.poll_cid=v.poll_cid WHERE c.poll_id = '$poll_id' GROUP BY v.poll_cid"; //get all votes and assume that they have a value of 0 $sql = "SELECT choice FROM 50mm_poll_choices WHERE poll_id = '$poll_id'"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } //get all votes and assume that they have a value of 0 $choices = Array(); while($row = $db->sql_fetchrow($result)){ $choices[$row['choice']] = 0; } //get all non zero votes $sql = "SELECT COUNT(v.poll_cid) as total,c.choice FROM 50mm_poll_votes v,50mm_poll_choices c WHERE c.poll_cid = v.poll_cid AND v.poll_id = '$poll_id' GROUP BY v.poll_cid"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } $total = 0; while($row = $db->sql_fetchrow($result)){ $total += $row['total']; $choices[$row['choice']] = $row['total']; } $results = $question."<br><br>\n"; while (list($choice, $votes) = each($choices)) { if($total > 0){ $percent = round(100*$votes/$total); }else{ $percent = 0; } $results.= "<img src=\"images/spacer_black.gif\" width=\"".round($percent/2)."\" height=\"10\"> ".$percent." %<br>\n"; $results.= $choice."<br><br>\n"; } $results.="<br><div align=\"center\" class=\"rightColumn\">".$total." Votes</div>"; echo $results; echo $view_votes; }else{ $sql = "SELECT question FROM 50mm_polls WHERE poll_id = '$poll_id'"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } $row = $db->sql_fetchrow($result); $poll = $row['question']."<br>\n"; $poll.= "<form action=\"".$_SERVER['REQUEST_URI']."\" method=\"POST\" onSubmit=\"return validateVote(this);\">\n"; $sql = "SELECT poll_cid, choice FROM 50mm_poll_choices WHERE poll_id='$poll_id'"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } while($row = $db->sql_fetchrow($result)){ $poll.= "<input type=\"radio\" name=\"poll_cid\" value=\"".$row['poll_cid']."\">".$row['choice']."<br>\n"; } $poll.= "<div align=\"center\">\n"; $poll.= "<br><input name=\"poll_vote\" type=\"submit\" value=\"Cast Vote\" class=\"button\"><br>\n"; $purl = append_query($_SERVER['REQUEST_URI'],'viewResults',1); $poll.= "<a class=\"rightColumn\" href=\"".$purl."\">[ view results ]</a><br>\n"; $poll.= "<span id=\"error\" class=\"error\" style=\"visibility:hidden;font-size:10px;\">Make a Selection!</span>\n"; $poll.= "<input name=\"refurl\" type=\"hidden\" value=\"".$_SERVER['REQUEST_URI']."\">\n"; $poll.= "</div>\n"; $poll.= "</form>\n"; echo $poll; } ?> <!--<a href="http://www.gmi-mr.com/survey/s.phtml?sn=47641" target=_blank> <img src="images/ads/surveybanner.gif" border="0"></a> --> <BR><BR></div> <!-- recent blackbook --> <div class="borderLines" height="1"> <img src="images/spacer.gif" width="123" height="1"></div> <div style="padding:5px;" class="rightColumn"> recent blackbook...<br> <br> <? $sql ="SELECT t.tag_id,t.user_id,u.username FROM 50mm_tags t, 50mm_users u WHERE t.user_id=u.user_id ORDER BY tag_date DESC LIMIT 20"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } $topics ="<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"; while($row = $db->sql_fetchrow($result)){ $topics.="<a class=\"rightColumn\" href=\"viewRecentPages.php?tagId=".$row['tag_id']."\">".get_trim_string($row['username'],15)."</a>  \n"; } $topics.="</table>"; echo $topics; ?></div> <!--recent gallery --> <div class="borderLines" height="1"> <img src="images/spacer.gif" width="123" height="1"></div> <div style="padding:5px;" class="rightColumn"> recent gallery...<br> <br> <? $sql="SELECT a.artist_name,a.artist_id,g.gallery_id FROM 50mm_gallery g,50mm_artists a WHERE g.artist_id = a.artist_id AND g.approved = 1 ORDER BY g.entry_time DESC LIMIT 275"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } $gal_links = ""; while($row = $db->sql_fetchrow($result)){ $gal_links.='<a href="viewPhoto.php?artistId='.$row['artist_id'].'&galleryId='.$row['gallery_id'].'" class="rightColumn">'.$row['artist_name'].'</a> '; } echo $gal_links; ?></div> </td> <td class="borderLines" width="1"><img height="1" width="1" src="images/spacer.gif" border="0"></td> </tr></table> <table border="0" cellpadding="0" cellspacing="0" width="979"> <tr> <td class="borderLines" height="30"><img height="1" width="1" src="images/spacer.gif" border="0"></td> <td align="center" valign="middle" class="footer"> <?php $fnav_arr = Array(); $fnav_arr["Advertise"]="advertise.php"; $fnav_arr["Site Policies"]="policies.php"; $fnav_arr["Submit an Event"]="submitEvent.php"; $fnav_arr["Submit Photos"]="submitFlick.php"; $fnav_arr["Contact 50mm"]="contact.php"; $fnav = ""; while (list($txt, $fnav_url) = each($fnav_arr)) { if($pg_name == $fnav_url){ $fnav.= '<a class="footerNavOn" href="'.$fnav_url.'"> '.$txt.'</a> '; }else{ $fnav.= '<a class="footerNav" href="'.$fnav_url.'"> '.$txt.'</a> '; } } ?>All content © 1996-2006 50mm Los Angeles. Reproduction Prohibited. <?echo $fnav?> </td> <td class="borderLines"><img height="1" width="1" src="images/spacer.gif" border="0"></td> </tr> <tr> <td class="borderLines" colspan="3" height="1"><img height="1" width="1" src="images/spacer.gif" border="0"></td> </tr> </table><script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-493959-1"; urchinTracker(); </script> </body> </html>