| Revision 15211,
784 bytes
checked in by Alexander Trofimov, 12 months ago
(diff) |
|
Code cleaning:
- converting new lines to \n
- deleting spaces at the end of every line
- converting all tabs to 4 spaces
- automated script for future cleaning was added
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * @package Dolphin Core |
|---|
| 4 | * @copyright Copyright (c) BoonEx Pty Limited - http://www.boonex.com/ |
|---|
| 5 | * @license CC-BY - http://creativecommons.org/licenses/by/3.0/ |
|---|
| 6 | */ |
|---|
| 7 | |
|---|
| 8 | require_once('./inc/header.inc.php'); |
|---|
| 9 | |
|---|
| 10 | bx_import("BxDolVoting"); |
|---|
| 11 | |
|---|
| 12 | $aSystems =& BxDolVoting::getSystems (); |
|---|
| 13 | |
|---|
| 14 | $sSys = isset($_GET['sys']) ? bx_process_input($_GET['sys']) : false; |
|---|
| 15 | $iId = isset($_GET['id']) ? bx_process_input($_GET['id'], BX_DATA_INT) : 0; |
|---|
| 16 | |
|---|
| 17 | if ($sSys && isset($aSystems[$sSys])) { |
|---|
| 18 | |
|---|
| 19 | if ($aSystems[$sSys]['override_class_name']) { |
|---|
| 20 | require_once (BX_DIRECTORY_PATH_ROOT . $aSystems[$sSys]['override_class_file']); |
|---|
| 21 | $sClassName = $aSystems[$sSys]['override_class_name']; |
|---|
| 22 | new $sClassName($sSys, $iId); |
|---|
| 23 | } else { |
|---|
| 24 | new BxDolVoting($sSys, $iId); |
|---|
| 25 | } |
|---|
| 26 | |
|---|
| 27 | } |
|---|
| 28 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.