/**
  * Switch for the main page, when not handled by rsgOption
  */
 function mainPage()
 {
     global $rsgConfig;
     $page = rsgInstance::getWord('page', '');
     switch ($page) {
         case 'slideshow':
             $gallery = rsgGalleryManager::get();
             rsgInstance::instance(array('rsgTemplate' => $rsgConfig->get('current_slideshow'), 'gid' => $gallery->id));
             break;
         case 'inline':
             $this->inline();
             break;
         case 'viewChangelog':
             $this->viewChangelog();
             break;
         case 'test':
             $this->test();
             break;
         default:
             $this->showMainGalleries();
             $this->showThumbs();
     }
 }
Beispiel #2
0
<?php

/**
* Initialize default instance of RSGallery2
* @version $Id: rsgallery2.php 1010 2011-01-26 15:26:17Z mirjam $
* @package RSGallery2
* @copyright (C) 2003 - 2006 RSGallery2
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* RSGallery is Free Software
*/
defined('_JEXEC') or die;
// initialize RSG2 core functionality
require_once JPATH_ADMINISTRATOR . "/components/com_rsgallery2/init.rsgallery2.php";
// create a new instance of RSGallery2
rsgInstance::instance();
<?php

/**
* This file contains the non-presentation processing for the Admin section of RSGallery.
* @version $Id: admin.rsgallery2.php 1010 2011-01-26 15:26:17Z mirjam $
* @package RSGallery2
* @copyright (C) 2003 - 2010 RSGallery2
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* RSGallery is Free Software
*/
defined('_JEXEC') or die;
// initialize RSG2 core functionality
require_once JPATH_ADMINISTRATOR . '/components/com_rsgallery2/init.rsgallery2.php';
// instantate user variables but don't show a frontend template
rsgInstance::instance('request', false);
// XML library
require_once JPATH_SITE . '/includes/domit/xml_domit_lite_include.php';
//Load Tooltips
JHTML::_('behavior.tooltip');
?>
<link href="<?php 
echo JURI_SITE;
?>
/administrator/components/com_rsgallery2/admin.rsgallery2.css" rel="stylesheet" type="text/css" />
<?php 
require_once JApplicationHelper::getPath('admin_html');
global $opt, $catid, $uploadStep, $numberOfUploads, $e_id;
$opt = rsgInstance::getVar('opt', null);
$catid = rsgInstance::getInt('catid', null);
$uploadStep = rsgInstance::getInt('uploadStep', 0);
$numberOfUploads = rsgInstance::getInt('numberOfUploads', 1);