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/gallery_workingads.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 ='gallery'"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } $row = $db->sql_fetchrow($result); $content = stripslashes($row['page_body']); $sql = "SELECT artist_id,artist_name FROM 50mm_artists WHERE approved = 1 ORDER BY artist_name ASC"; if(!($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } $artist_string ='<div align="center">'."\n"; while($row = $db->sql_fetchrow($result)){ $artist_string.=' <a class="galleryLink" href="artist.php?artistId='.$row['artist_id'].'">'.$row['artist_name'].'</a> '; } $artist_string.='</div>'."\n"; ?><div align="right"><!-- AdRevenue Ad Code --> <script src="http://www.50mmlosangeles.com/advertise/index.php?section=serve&id=43&output=js"></script></div> <table cellpadding="0" cellspacing="0" border="0"> <tr valign="top"> <td width="550"> <? echo $content."<br><br>"; $sql = "SELECT COUNT(*) AS total FROM 50mm_gallery"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } $row = $db->sql_fetchrow($result); echo "There are <span class=\"hilite\">".$row['total']."</span> photos in the gallery.<br><br>"; echo $artist_string; ?> </td> <td width="20"> </td> <td><?include_once('includes/galleryStats.php');?></td> </tr> </td> </table> <? include_once('includes/footer.php'); include_once('includes/appBottom.php'); ?>