Mini Shell Moded By TiGER HeX
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
mnt
/
volume_sfo2_01
/
50mmla
/
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/battle.php
<?php include_once('includes/static/configure.php'); include_once('includes/static/util.php'); include_once('includes/static/dbcon.php'); include_once('includes/static/gdimg.php'); include_once('includes/static/sessions.php'); include_once('includes/appTop.php'); $pg_name = basename($_SERVER['PHP_SELF']); include_once('includes/header.php'); ?> <? //content $sql = "SELECT page_body FROM 50mm_pages WHERE page_name ='battle'"; 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']); ?> <table width="700" border="0" cellspacing="2" cellpadding="10"> <tr> <td> <div align="left"> <h2><a href="http://www.50mmlosangeles.com/bookDraw.php?userId=1&pageNum=1"><img src="images/blackbook/BLSCKBOOK.jpg" alt="" width="230" height="229" border="0"></a><br> <br> The 50mm Los Angeles<br> Online Blackbook (BETA)</h2> This online blackbook was inspired by Tommie Frazier's real life 50mm Blackbook project. Register and hit a page up.<br> <br> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td> <img src="http://www.50mmlosangeles.com/images/next.gif" border=0 align=absmiddle> </td> <td> <? if(is_authorized()){ $uid = $_SESSION['user_id']; $bburl = "/bookContributions.php?userId=".$uid; }else{ $bburl = "/login.php?refurl=bookContributions.php&appendUserId=1"; } ?> <a href="<?echo $bburl;?>"><font size=3>Hit the blackbook...</font></a> </td> </tr> </table> <br> </div> </td> <td align="left" valign="top" width="300" ><img src="images/blackbook/BATTLEBOARDTHUMB.jpg" alt="" height="150" width="186" border="0"><br> How it works:<br> <font size="1"><br> " This is a BETA version of the blackbook meaning you might encounter some errors and bugs. SCREENSHOT your shit if you want to be extra cautious. If you encounter an error and want to help, send us an email stating in detail what errors you encountered or how this thing can be improved. Email: <a href="mailto:blackbook@50mmlosangeles.com">blackbook@50mmlosangeles.com</a><br> " Every Registered user gets 8 pages in the blackbook to hit. You can see your pages on your profile page.<br> " Use the wonderfully intuitive drawing tools to bust your shit.<br> <br> SOFTWARE REQUIREMENTS:<br> " Firewall software must be turned OFF<br> " Internet Explorer or Safari<br> " You must have the Shockwave Plugin. Shockwave is free. <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=Shockwave" target="_blank">Click here to download Shockwave.<br> <br> <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=Shockwave" target="_blank"><img src = "http://www.macromedia.com/images/shared/download_buttons/get_shock_player.gif" border="0" hspace="20"> </a></font></td> </tr> </table> <p> <? //get top rated $top_rated=""; $colcount=0; $numcol = 3; //$sql = "SELECT t.tag_image,t.tag_id,t.user_id,t.page_num,AVG(v.vote) AS high_votes FROM 50mm_tags t,50mm_tag_votes v WHERE t.tag_id=v.tag_id GROUP BY t.tag_id ORDER BY high_votes DESC LIMIT BOOK_NUM_TOP"; $sql = "SELECT AVG(v.vote) as average,COUNT(v.vote),t.tag_image,t.tag_id FROM 50mm_tag_votes v,50mm_tags t WHERE v.tag_id = t.tag_id AND (TO_DAYS(NOW()) - TO_DAYS(v.entry_time)) <= ".BOOK_VOTE_SAMPLE_DAYS." GROUP BY t.tag_id HAVING COUNT(v.vote) >= ".BOOK_VOTES_REQUIRED." ORDER BY average DESC LIMIT ".BOOK_NUM_TOP; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } //make blank pages //*********************** // this method isn't the most efficent however the manner in which php handles mysql result // makes it difficult to loop through the sql result array $book_pages = Array(); $db_count = 0; while ($row = $db->sql_fetchrow($result)){ $book_pages[$db_count]["tag_id"] = $row['tag_id']; $book_pages[$db_count]["tag_image"] = $row['tag_image']; $db_count++; } for($i=$db_count;$i<BOOK_NUM_TOP;$i++){ $book_pages[$i] = Array("tag_id"=>0,"tag_image"=>""); } for($i=0;$i< BOOK_NUM_TOP;$i++){ $tag_id = $book_pages[$i]['tag_id']; $thumb_src = BOOK_SIMG_DIR.$book_pages[$i]['tag_image']; if($colcount==0){ $top_rated.="<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"; $top_rated.="<tr>\n"; } $top_rated.="<td align=\"center\">\n"; if(!empty($book_pages[$i]['tag_image'])){ $top_rated.="<a href=\"viewTopPages.php?tagId=$tag_id\"><img src=\"$thumb_src\" border=\"0\" hspace=\"8\" vspace=\"8\"></a><br>\n"; }else{ $top_rated.="<img src=\"".BOOK_SIMG_DIR."blackbook.jpg\" border=\"0\" hspace=\"8\" vspace=\"8\"><br>\n"; } $top_rated.="</td>\n"; $colcount++; if(($colcount==$numcol)||($i==BOOK_NUM_TOP-1)){//close table $colcount =0; $top_rated.="</tr>\n"; $top_rated.="</table>\n"; } } $recent_pages = ""; $colcount=0; $numcol = 2; $sql = "SELECT t.tag_image,t.tag_id,t.user_id,t.tag_date FROM 50mm_tags t ORDER BY tag_date DESC LIMIT ".BOOK_NUM_RECENT; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } //make blank pages //*********************** // this method isn't the most efficent however the manner in which php handles mysql result // makes it difficult to loop through the sql result array $book_pages = Array(); //populate pages $db_count = 0; while ($row = $db->sql_fetchrow($result)){ $book_pages[$db_count]["tag_id"] = $row['tag_id']; $book_pages[$db_count]["tag_image"] = $row['tag_image']; $db_count++; } for($i=$db_count;$i<BOOK_NUM_RECENT;$i++){ $book_pages[$i] = Array("tag_id"=>0,"tag_image"=>""); } for($i=0;$i< BOOK_NUM_RECENT;$i++){ $tag_id = $book_pages[$i]['tag_id']; $thumb_src = BOOK_SIMG_DIR.$book_pages[$i]['tag_image']; if($colcount==0){ $recent_pages.="<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"; $recent_pages.="<tr>\n"; } $recent_pages.="<td align=\"center\">\n"; if(!empty($book_pages[$i]['tag_image'])){ $recent_pages.="<a href=\"viewRecentPages.php?tagId=$tag_id\"><img src=\"$thumb_src\" border=\"0\" hspace=\"8\" vspace=\"8\"></a><br>\n"; }else{ $recent_pages.="<img src=\"".BOOK_SIMG_DIR."blackbook.jpg\" border=\"0\" hspace=\"8\" vspace=\"8\"><br>\n"; } $recent_pages.="</td>\n"; $colcount++; if(($colcount==$numcol)||($i==BOOK_NUM_RECENT-1)){//close table $colcount =0; $recent_pages.="</tr>\n"; $recent_pages.="</table>\n"; } } ?> <table cellpadding="0" cellspacing="0" border="0" align="center"> <tr> <td width="20"> </td> <td valign="top"> <div style="padding-left:8px;"> Recent Pages:<?echo $recent_pages?></div> </td> <td width="50"> </td> <td valign="top"> <div style="padding-left:8px;"> Top Rated Pages:<?echo $top_rated?></div> </td> <td width="20"> </td> </tr> </table> <? include_once('includes/footer.php'); include_once('includes/appBottom.php'); ?>