Umfragen
|
Handles edit pages from edit.php also handles actions on option lists. More...
Go to the source code of this file.
Variables | |
$db = new db( DB_USER, DB_PASS, DB_DATABASE, DB_HOST ) | |
$config = new config($db) | |
$messages = new messageHandler() | |
$err_reason = array() | |
if((isset($_POST["pollID"])) AND($_POST["pollID"]!="") AND(is_numeric($_POST["pollID"]))) if((isset($_POST["wID"])) AND($_POST["wID"]!="") AND(is_numeric($_POST["wID"])) AND(isset($poll))) if((isset($_POST["oID"])) AND($_POST["oID"]!="") AND(is_numeric($_POST["oID"])) AND(isset($widget))) if((intval($_SESSION["user"]-> ID)!==intval($poll->owner)) AND(!in_array("{$_SESSION["user"]-> ID}", explode(",", SUPER_ADMIN)))) | $keys = array_keys($_POST) |
Handles edit pages from edit.php also handles actions on option lists.
scans for fields according to action+"_option_ID"+ID where action is one of these: "add","rm","mvup","mvdwn","addq","rmq","mvupq","mvdwnq","editq" if one is detected the widget is saved, then redirected to option.add.php
according to object type (widget poll or option) and if the save or apply button was hit
/inc/backend/handle/* according to the widget type
Definition in file edit.handle.php.
Definition at line 73 of file edit.handle.php.
Definition at line 72 of file edit.handle.php.
$err_reason = array() |
Definition at line 78 of file edit.handle.php.
if ((isset($_POST["pollID"])) AND($_POST["pollID"]!="") AND(is_numeric($_POST["pollID"]))) if ((isset($_POST["wID"])) AND($_POST["wID"]!="") AND(is_numeric($_POST["wID"])) AND(isset($poll))) if ((isset($_POST["oID"])) AND($_POST["oID"]!="") AND(is_numeric($_POST["oID"])) AND(isset($widget))) if ((intval($_SESSION["user"]->ID)!==intval($poll->owner)) AND(!in_array("{$_SESSION["user"]->ID}", explode(",", SUPER_ADMIN)))) $keys = array_keys($_POST) |
Definition at line 115 of file edit.handle.php.
$messages = new messageHandler() |
Definition at line 76 of file edit.handle.php.