Server IP : 180.180.241.3 / Your IP : 216.73.216.252 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/news/administrator/components/com_phocagallery/controllers/ |
Upload File : |
<?php /* * @package Joomla 1.5 * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * * @component Phoca Gallery * @copyright Copyright (C) Jan Pavelka www.phoca.cz * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die(); class PhocaGalleryCpControllerPhocaGalleryRa extends PhocaGalleryCpController { function __construct() { parent::__construct(); } function remove() { global $mainframe; $cid = JRequest::getVar( 'cid', array(), 'post', 'array' ); JArrayHelper::toInteger($cid); if (count( $cid ) < 1) { JError::raiseError(500, JText::_( 'Select an item to delete' ) ); } $model = $this->getModel( 'phocagalleryra' ); if(!$model->delete($cid)) { echo "<script> alert('".$model->getError(true)."'); window.history.go(-1); </script>\n"; $msg = JText::_( 'Error Deleting Phoca Gallery Rating' ); } else { $msg = JText::_( 'Phoca Gallery Rating Deleted' ); } $this->setRedirect( 'index.php?option=com_phocagallery&view=phocagalleryra', $msg ); } function cancel() { $model = $this->getModel( 'phocagallery' ); $model->checkin(); $this->setRedirect( 'index.php?option=com_phocagallery&view=phocagallerys' ); } } ?>