MOON
Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4
System: Linux vps.panamaemb.org.sg 3.10.0-1160.80.1.vz7.191.4 #1 SMP Thu Dec 15 20:31:06 MSK 2022 x86_64
User: panama (500)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: /home/panama/public_html_old/event_detail.php
<? 
	include("include/config.php"); 
	
	if($_GET['event_id']<>"") 
	{
	
		$db_photo = new database();
		$db_photo->where("event_id=".base64_decode($_GET['event_id']));
		$db_photo->selectstmt("event_photos");	
		if($db_photo->row_count > 0)
		{ 	
			$str=""; $cnt=0;
			for($j=0;$j<$db_photo->row_count;$j++) 
			{
				$db_photo->moveto($j);	
				if($db_photo->f_path<>"") 
				{
				$str .='{ url:"display_image.php?path=uploaded_images/'.$db_photo->f_path.'&width=200&height=200&watermark=-1", description: "'.ucfirst($db_photo->f_title).'" }';
				  
				 /*--------------------------------------------------------------------------*/ 
				    $file_image[$cnt]	= "uploaded_images/".$db_photo->f_path;		
				   $title1[$cnt]=ucfirst($db_photo->f_title);
				   $descr1="";
 				 /*--------------------------------------------------------------------------*/
				  
				   $cnt++;
				if($cnt<$db_photo->row_count) $str .=",";
				}
			} 
		} // of photo found  
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="<?=$pagemetadesc?>" />
<meta name="keywords" content="<?=$pagemeta?>"/>
<title><?=SITE_TITLE."- Events"?></title>
<!-- Stylesheets -->
<link rel="stylesheet" type="text/css" href="styles.css"/>
<!-- Javascript -->
<!--[if IE 6]><script src="js/ie6.js"></script><![endif]--> 
<link rel="stylesheet" href="css/dropdownmenu.css" type="text/css" />
<script type="text/javascript" src="js/dropdownmenu.js"></script>


<? include('includescript.php')?>
						
<script>
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 7000

// Duration of crossfade (seconds)
var crossFadeDuration = 5

// Specify the image files
var Pic = new Array()
var Picalt = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below
<?
if($db_photo->row_count > 0)
		{ 	
			$str=""; $cnt=0;
			for($j=0;$j<$db_photo->row_count;$j++) 
			{
				$db_photo->moveto($j);	
				if($db_photo->f_path<>"") 
				{
?>
Pic[<?=$j?>] = "uploaded_images/<?=$db_photo->f_path?>";	
Picalt[<?=$j?>] = "<?=$db_photo->f_title?>";	

<? } } }?>


// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
 preLoad[i].title = Picalt[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   document.images.SlideShow.title = preLoad[j].title
 
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
</script>						
<!----------------------------------------------------------------------------------------->								
						
							
</head>

<body onload="runSlideShow()">
<? include('header.php')?>

<div id="contentwrapper">
     <div class="contentcontainer">
          <div class="maincontainer">
               <div class="servicesbannerwrapper"><img src="images/banner_services.jpg" width="958" height="178" alt=""/></div>
          </div>
          <div class="maincontainer">
			  <div class="maincontainer">
    	           <div class="servicetextwrapper">
                  
					<?
						if($_GET['event_id']<>"") 
						{
							$event_list = new database();
							$event_list->where("eid=".base64_decode($_GET['event_id']));
							$event_list->selectstmt("events");
							if($event_list->row_count > 0)
							{
							$title= $event_list->f_title;
					?>
					
					<div class="title">
                       <div class="breadcrumbs">
                            <ul>
                                  <li class="first"><span class="titleicons"><img src="images/icon_events.png" width="36" height="42" alt=""/></span>&nbsp;
								  <a href="events.php">Events</a></li>
                                  <li><?=$title?></li>
                            </ul>
                        </div>
                    </div>
					<div class="servicescontainer">
					<?	
								
									$simg = $event_list->f_simg;
									$dt="";
									if($event_list->f_datetime<>"0000-00-00")
									{
										$tmp=split(" ",$event_list->f_datetime);
										list($m,$d,$y) = split("-",$tmp[0]);									
										$dt  = date("M jS, Y",mktime(0,0,0,$m,$d,$y))." ".$tmp[1];                
									}
									
									$description = $event_list->f_longdesc;	
				   ?>
							 <div align="left">					   
									<p align="left">
										<strong>When:&nbsp;</strong><?=$dt?><br/>
										<strong>Where:&nbsp;</strong><?=$event_list->f_venue?>
									</p>
							 </div>
							 <!--<div style="clear:both"></div>-->
							 <div align="center" style="width:100%"><!-- id="showcase">-->									
									<img src="uploaded_images/<?=$db_photo->f_path?>" name='SlideShow' id="SlideShow" alt="Test......" title="this is test...." width='350' height='280' style="padding:6px; border:2px #CCC solid">									
									<p>&nbsp;</p>
							 </div>	
				  						
						 	<div align="left"><?=$description?></div>		
					
					<? 	 } 	?>
					</div>
					<?	
					  } 
					?>
					
               </div>
        	       <div class="servicesphotowrapper">
                    <div class="servicesphotocontainer">
                           <? include("right.php");?>
                    </div>
              </div>
			  </div>
          </div>
     </div>
     <? include('footer.php')?>
</div>
       
</body>
</html>