CoreFiles by mySites.guru
poll.php33 lines, 1,104 bytes, from Joomla_1.5.1-Stable-Full_Package.zip
Raw History Compare with 1.5.0
md5
5ba74024eaf8467865931127cb8532d4
sha1
961b087d2fe473ec9b990585513fb37341388601
sha256
08e609bb811cc73c5f6fbadb2908bc20eba4b788dc955277d66e423875a8d48b
<?php
/**
* @version		$Id: poll.php 9764 2007-12-30 07:48:11Z ircmaxell $
* @package		Joomla
* @subpackage	Polls
* @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

// Make sure the user is authorized to view this page
$user = & JFactory::getUser();
if (!$user->authorize( 'com_poll', 'manage' )) {
	$mainframe->redirect( 'index.php', JText::_('ALERTNOTAUTH') );
}

require_once( JPATH_COMPONENT.DS.'controller.php' );

// Set the table directory
JTable::addIncludePath( JPATH_COMPONENT.DS.'tables' );

// Create the controller
$controller	= new PollController( );

$controller->execute( JRequest::getCmd( 'task' ) );
$controller->redirect();

The same content is in 4 releases, Joomla 1.5.0 to 1.5.3. See them all, or every version of this file.