/** * get input from user and return it in some sort of namespace * */ function init_args() { $iParams = array("doEditUser" => array(tlInputParameter::STRING_N, 0, 1), "login" => array(tlInputParameter::STRING_N, 0, 30), "password" => array(tlInputParameter::STRING_N, 0, 32), "password2" => array(tlInputParameter::STRING_N, 0, 32), "firstName" => array(tlInputParameter::STRING_N, 0, 30), "lastName" => array(tlInputParameter::STRING_N, 0, 30), "email" => array(tlInputParameter::STRING_N, 0, 100)); $args = new stdClass(); P_PARAMS($iParams, $args); return $args; }
/** * */ function init_args() { $iParams = array("login" => array(tlInputParameter::STRING_N, 0, 30)); $args = new stdClass(); P_PARAMS($iParams, $args); return $args; }
/** * * @return object returns the arguments of the page */ function init_args() { $iParams = array("id" => array(tlInputParameter::INT_N)); $args = new stdClass(); P_PARAMS($iParams, $args); return $args; }
/** * get input from user and return it in some sort of namespace * */ function init_args() { $args = new stdClass(); $args->pwdInputSize = config_get('loginPagePasswordSize'); $iParams = array("doEditUser" => array(tlInputParameter::STRING_N, 0, 1), "login" => array(tlInputParameter::STRING_N, 0, 30), "password" => array(tlInputParameter::STRING_N, 0, $args->pwdInputSize), "password2" => array(tlInputParameter::STRING_N, 0, $args->pwdInputSize), "firstName" => array(tlInputParameter::STRING_N, 0, 30), "lastName" => array(tlInputParameter::STRING_N, 0, 30), "email" => array(tlInputParameter::STRING_N, 0, 100)); P_PARAMS($iParams, $args); return $args; }
/** * * @return object returns the arguments of the page */ function init_args() { $iParams = array("id" => array(tlInputParameter::STRING_N, 0, 50)); $args = new stdClass(); P_PARAMS($iParams, $args); // BUGID 4066 - take care of proper escaping when magic_quotes_gpc is enabled $_REQUEST = strings_stripSlashes($_REQUEST); return $args; }
/** * @return object returns the arguments for the page */ function init_args() { $iParams = array("UploadFile" => array(tlInputParameter::STRING_N, 0, 1), "importType" => array(tlInputParameter::STRING_N, 0, 100)); $args = new stdClass(); P_PARAMS($iParams, $args); $args->UploadFile = $args->UploadFile != "" ? 1 : 0; $args->testproject_id = isset($_SESSION['testprojectID']) ? $_SESSION['testprojectID'] : 0; $args->testproject_name = $_SESSION['testprojectName']; $args->fInfo = isset($_FILES['uploadedFile']) ? $_FILES['uploadedFile'] : null; $args->source = isset($args->fInfo['tmp_name']) ? $args->fInfo['tmp_name'] : null; return $args; }