CHips L MINI SHELL

CHips L pro

Current Path : /opt/cpanel/ea-php70/root/usr/share/pear/RVSeagullMod/modules/photogallery/classes/
Upload File :
Current File : //opt/cpanel/ea-php70/root/usr/share/pear/RVSeagullMod/modules/photogallery/classes/FbMgr.php

<?php
##copyright##

/**
 * Photogallery Manager
 *
 * @package forums
 * @author  Pairote Manunphol <pairote@rvglobalsoft.com>
 */


class FbMgr extends SGL_Manager 
{
    function  FbMgr()
    {
        SGL::logMessage(null, PEAR_LOG_DEBUG);
        parent::SGL_Manager();
        $this->pageTitle        = 'photogallery';
        $this->template         = 'photogallery.html';
        $this->_aActionsMapping =  array(
            'vpg'   => array('vpg') 
        );   
    }
    
    function validate($req, &$input)
    {
        SGL::logMessage(null, PEAR_LOG_DEBUG);
        $this->validated    = true;
        $input->error       = array();
        $input->pageTitle   = $this->pageTitle;
        $input->masterTemplate = 'masterLeftCol.html';
        $input->template    = $this->template;
		$input->action      = ($req->get('action')) ? $req->get('action') : 'vpg';
		$input->img   = ($req->get('img')) ? str_replace('p', '' ,$req->get('img')) : '';
		$input->modeleView   = ($req->get('mo')) ? $req->get('mo') : ''; // module (ga=gallery,im=image)
		$this->publishPath = RVSGLWrapper::getWebRoot(0);
		$c = SGL_Config::singleton();
		$this->conf = $c->getAll();
		$this->dbh = $this->_getDb();
    }
    
 	function _cmd_vpg($input, &$output)
    {
    	SGL::logMessage(null, PEAR_LOG_DEBUG);
		$query = "SELECT 
							path_photo
						  FROM " 
						 . $this->conf['table']['rvs_photogalery_url'] 
						 . " WHERE  rvs_photogalery_url_id =" . $this->dbh->quoteSmart($input->img);   
        $pathImg = $this->dbh->getone($query);
  		if ($input->modeleView == 'ga') {  			
  			$url = SGL_BASE_URL  . '/' . SGL_Config::get('site.frontScriptName') . '/photogallery/photogallery/galleryId/'. $pathImg;
  			header('Location: ' . $url);
  		} else {
    		$url = $pathImg;
            $output->masterTemplate = 'masterBlank.html';
  		    $output->template    = 'showimg.html';
  	        $output->pathImg = $pathImg;
  		}
    }

    function display(&$output)
    {
    }
}

?>

Copyright 2K16 - 2K18 Indonesian Hacker Rulez