protected function Form_Run() { // Sanitize the Path in the PathInfo $strSanitizedFullPath = WikiItem::ValidateOrGenerateSanitizedFullPath(QApplication::$PathInfo); if ($strSanitizedFullPath) { QApplication::Redirect('/wiki/admin.php' . $strSanitizedFullPath . QApplication::GenerateQueryString()); } }
public function Filter_Change() { $_GET = array(); if (strlen($strText = trim($this->txtServerIdentifier->Text))) { $_GET['id'] = $strText; } if (strlen($strText = trim($this->txtFirstName->Text))) { $_GET['fn'] = $strText; } if (strlen($strText = trim($this->txtLastName->Text))) { $_GET['ln'] = $strText; } if (strlen($strText = trim($this->txtGraduationYear->Text))) { $_GET['year'] = $strText; } if ($strValue = $this->lstParentPagerSyncStatusTypeId->SelectedValue) { $_GET['sync'] = $strValue; } if ($strValue = $this->lstGender->SelectedValue) { $_GET['g'] = $strValue; } QApplication::Redirect('/sk/index.php' . QApplication::GenerateQueryString()); }
<?php require '../../includes/prepend.inc.php'; QApplication::Authenticate(); // Sanitize the Path in the PathInfo $strSanitizedFullPath = WikiItem::ValidateOrGenerateSanitizedFullPath(QApplication::$PathInfo); if ($strSanitizedFullPath) { QApplication::Redirect('/wiki/edit.php' . $strSanitizedFullPath . QApplication::GenerateQueryString()); } // Get the WikiItemTypeId WikiItem::SanitizeForPath(QApplication::$PathInfo, $intWikiItemTypeId); // Based on the requested WikiItemTypeId, figure out the EditWikiForm to use $strWikiItemType = WikiItemType::$TokenArray[$intWikiItemTypeId]; $strEditWikiClassName = 'EditWiki' . $strWikiItemType . 'Form'; // Include the required class files require dirname(__FILE__) . '/EditWikiForm.class.php'; require dirname(__FILE__) . '/' . $strEditWikiClassName . '.class.php'; // Make a call to the QForm::Run() for that Form call_user_func_array(array($strEditWikiClassName, 'Run'), array($strEditWikiClassName, dirname(__FILE__) . '/' . $strEditWikiClassName . '.tpl.php'));