From: Verdon V. <ve...@us...> - 2009-02-19 20:32:36
|
Update of /cvsroot/phpwebsite-comm/modules/elections In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv11368 Modified Files: index.php Removed Files: README Log Message: preparing for 2.0.0 --- README DELETED --- Index: index.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/elections/index.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** index.php 14 Nov 2006 00:50:49 -0000 1.1.1.1 --- index.php 19 Feb 2009 20:30:58 -0000 1.2 *************** *** 1,44 **** ! <?php ! /** ! * elections ! * ! * See docs/AUTHORS and docs/COPYRIGHT for relevant info. ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * ! * You should have received a copy of the GNU General Public License ! * along with this program; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! * ! * @version $Id$ ! */ ! ! ! $CNT_elections['content'] = NULL; ! ! if (!isset($_SESSION['ELECTIONS_Manager'])) ! $_SESSION['ELECTIONS_Manager'] = new ELECTIONS_Manager; ! ! if (isset($_REQUEST['Man_OP'])) ! $_SESSION['ELECTIONS_Manager']->action(); ! ! if (isset($_REQUEST['Election_OP']) && isset($_SESSION['ELECTIONS_Manager']->election)) ! $_SESSION['ELECTIONS_Manager']->election->action(); ! ! if (isset($_REQUEST['Candidate_OP']) && isset($_SESSION['ELECTIONS_Manager']->candidate)) ! $_SESSION['ELECTIONS_Manager']->candidate->action(); ! ! if (isset($_REQUEST['Voter_OP']) && isset($_SESSION['ELECTIONS_Manager']->voter)) ! $_SESSION['ELECTIONS_Manager']->voter->action(); ! ! ! ?> ! --- 1,53 ---- ! <?php ! /** ! * elections - phpwebsite module ! * ! * See docs/AUTHORS and docs/COPYRIGHT for relevant info. ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * ! * You should have received a copy of the GNU General Public License ! * along with this program; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! * ! * @version $Id$ ! * @author Verdon Vaillancourt <verdonv at users dot sourceforge dot net> ! */ ! ! if (!defined('PHPWS_SOURCE_DIR')) { ! include '../../config/core/404.html'; ! exit(); ! } ! ! PHPWS_Core::initModClass('elections', 'Election.php'); ! $election = new Election; ! ! if (isset($_REQUEST['aop'])) { ! $election->adminMenu(); ! } elseif (isset($_REQUEST['uop'])) { ! $election->userMenu(); ! } elseif (isset($_REQUEST['id']) && isset($_REQUEST['candidate_id'])) { ! $election->userMenu('view_candidate'); ! } elseif (isset($_REQUEST['id'])) { ! $election->userMenu('view_ballot'); ! } elseif (isset($_REQUEST['ballot']) && isset($_REQUEST['candidate'])) { ! $election->userMenu('view_candidate'); ! } elseif (isset($_REQUEST['ballot'])) { ! $election->userMenu('view_ballot'); ! } elseif (isset($_REQUEST['candidate'])) { ! $election->userMenu('view_candidate'); ! } else { ! // PHPWS_Core::home(); ! $election->userMenu('list_ballots'); ! } ! ! ! ?> \ No newline at end of file |