<?php require "login/login.php"; include 'monitor.inc'; // $folderId = $_REQUEST['folderId']; // $user_id=getCurrentUserId(); $id = $_REQUEST['id']; if ($id) { $folderId = getFolderIdFor($id, 'WPTScript'); } else { $folderId = $_REQUEST['folderId']; } $user_id = getUserIdForFolder('WPTScript', $folderId); $url = $_REQUEST['url']; $label = $_REQUEST['label']; $description = $_REQUEST['description']; $urlscript = $_REQUEST['urlscript']; $navigationscript = $_REQUEST['navigationscript']; $validationrequest = $_REQUEST['validationrequest']; $validationtype = $_REQUEST['validationtype']; $validationmarkas = $_REQUEST['validationmarkas']; $validationmarkaselse = $_REQUEST['validationmarkaselse']; if (!($validate = $_REQUEST['validate'])) { $validate = 0; } if (!($multistep = $_REQUEST['multistep'])) { $multistep = 0; } if (!($authenticate = $_REQUEST['authenticate'])) { $authenticate = 0; }
<?php require "login/login.php"; include 'monitor.inc'; $folderId = $_REQUEST['folderId']; // $user_id=getCurrentUserId(); $user_id = getUserIdForFolder('Alert', $folderId); $id = $_REQUEST['id']; if (!($active = $_REQUEST['active'])) { $active = 0; } $label = $_REQUEST['label']; $description = $_REQUEST['description']; $emailaddresses = $_REQUEST['emailaddresses']; $alerton = $_REQUEST['alerton']; $alertontype = $_REQUEST['alertOnType']; $alertoncomparator = $_REQUEST['alertOnComparator']; $alertonvalue = $_REQUEST['alertOnValue']; $alertthreshold = $_REQUEST['alertThreshold']; if ($alertontype == "Response Code") { $alerton = $_REQUEST['alertOnResponseCode']; } else { if ($alertontype == "Response Time") { $alerton = $_REQUEST['alertOnResponseTime']; } else { if ($alertontype == "Validation Code") { $alerton = $_REQUEST['alertOnValidationCode']; } } } try {
<?php require "login/login.php"; include 'monitor.inc'; $folderId = $_REQUEST['folderId']; // $user_id=getCurrentUserId(); $user_id = getUserIdForFolder('Changenote', $folderId); //print_r($_REQUEST);exit; $startMonth = $_REQUEST['startMonth']; $startDay = $_REQUEST['startDay']; $startYear = $_REQUEST['startYear']; $startHour = $_REQUEST['startHour']; $startMinute = $_REQUEST['startMinute']; $dateTime = mktime($startHour, $startMinute, 0, $startMonth, $startDay, $startYear); $id = $_REQUEST['id']; if (isset($_REQUEST['public'])) { $public = true; } $label = $_REQUEST['label']; $description = $_REQUEST['description']; $releaseInfo = $_REQUEST['releaseInfo']; try { if ($id) { $changeNoteTable = Doctrine_Core::getTable('ChangeNote'); $result = $changeNoteTable->find($id); if ($result) { $changeNote = $result; } else { //TODO: Passed in an Id, but didn't find it. Add error here. } } else {