? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/public_html/old/modules/mod_lightboxpopup/
File Upload :
Current File : /home/admin/public_html/old/modules/mod_lightboxpopup/helper.php

<?php
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
 
class LightboxPopup2Helper
{
    /**
     * Returns a list of post items
    */
    public function lightbox_draw($article_id,$width,$height,$BasePath)
    {
		
	//=== Get DB Object =====
	$db = &JFactory::getDBO();
	$query = 'SELECT #__content.title,#__content.introtext,#__content.fulltext FROM #__content WHERE #__content.id='.$article_id;
         $db->setQuery($query);
         $items = ($items = $db->loadObjectList())?$items:array();
		
		foreach($items as $item){
		
			$Introtext=$item->introtext;
			$Lboxtitle=$item->title;
		
		}
		$containners=array('title'=>$Lboxtitle,'introtext'=>$Introtext,'width'=>$width,'height'=>$height,'basepath'=>$BasePath);
		
		return $containners;
    } //end lightbox_draw
 
} //end Module

?>

T1KUS90T
  root-grov@210.1.60.28:~$