* @copyright (C) 2003 - 2010 RSGallery2 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * RSGallery is Free Software */ // no direct access defined('_JEXEC') or die('Restricted access'); require_once $rsgOptions_path . 'images.html.php'; require_once $rsgOptions_path . 'images.class.php'; require_once JPATH_RSGALLERY2_ADMIN . '/admin.rsgallery2.html.php'; $cid = JRequest::getVar("cid", array(), 'default', 'array'); switch ($task) { case 'new': editImage($option, 0); break; case 'batchupload': HTML_RSGallery::RSGalleryHeader('', JText::_('Upload ZIP-file')); batchupload($option); HTML_RSGallery::RSGalleryFooter(); break; case 'save_batchupload': save_batchupload(); break; case 'upload': uploadImage($option); break; case 'save_upload': saveUploadedImage($option); break; case 'edit': editImage($option, $cid[0]); break;
save_batchupload(); break; //image and category tasks //image and category tasks case "categories_orderup": case "images_orderup": orderRSGallery($cid[0], -1, $option, $task); break; case "categories_orderdown": case "images_orderdown": orderRSGallery($cid[0], 1, $option, $task); break; // special/debug tasks // special/debug tasks case 'viewChangelog': HTML_RSGallery::RSGalleryHeader('viewChangelog', JText::_('Changelog')); viewChangelog(); HTML_RSGallery::RSGalleryFooter(); break; case "controlPanel": default: //HTML_RSGallery::RSGalleryHeader('cpanel', JText::_('Control Panel')); HTML_RSGallery::showCP(); HTML_RSGallery::RSGalleryFooter(); break; } } /** * @param string The name of the php (temporary) uploaded file * @param string The name of the file to put in the temp directory * @param string The message to return