Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
Apache/2.4.59 (Debian)
: 10.2.73.233 | : 18.117.156.26
Cant Read [ /etc/named.conf ]
5.6.40-64+0~20230107.71+debian10~1.gbp673146
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
ifk /
web /
prado4.3.2 /
Web /
UI /
ActiveControls /
[ HOME SHELL ]
Name
Size
Permission
Action
IActiveControl.php
571
B
-rw-r--r--
ICallbackEventHandler.php
881
B
-rw-r--r--
TActiveBoundColumn.php
2.53
KB
-rw-r--r--
TActiveButton.php
4.19
KB
-rw-r--r--
TActiveButtonColumn.php
2.17
KB
-rw-r--r--
TActiveCheckBox.php
5.5
KB
-rw-r--r--
TActiveCheckBoxColumn.php
3.59
KB
-rw-r--r--
TActiveCheckBoxList.php
4.15
KB
-rw-r--r--
TActiveCheckBoxListItem.php
814
B
-rw-r--r--
TActiveClientScript.php
2.51
KB
-rw-r--r--
TActiveControlAdapter.php
4.76
KB
-rw-r--r--
TActiveCustomValidator.php
5.52
KB
-rw-r--r--
TActiveCustomValidatorClientSi...
2.33
KB
-rw-r--r--
TActiveDataGrid.php
7.38
KB
-rw-r--r--
TActiveDataGridPager.php
842
B
-rw-r--r--
TActiveDataGridPagerEventParam...
1.02
KB
-rw-r--r--
TActiveDataList.php
3.75
KB
-rw-r--r--
TActiveDatePicker.php
5.28
KB
-rw-r--r--
TActiveDatePickerClientScript....
1.28
KB
-rw-r--r--
TActiveDropDownList.php
4.26
KB
-rw-r--r--
TActiveDropDownListColumn.php
2.33
KB
-rw-r--r--
TActiveEditCommandColumn.php
2.08
KB
-rw-r--r--
TActiveFileUpload.php
16.59
KB
-rw-r--r--
TActiveFileUploadCallbackParam...
737
B
-rw-r--r--
TActiveFileUploadItem.php
1.36
KB
-rw-r--r--
TActiveHiddenField.php
1.76
KB
-rw-r--r--
TActiveHtmlArea.php
3.18
KB
-rw-r--r--
TActiveHtmlArea5.php
3.15
KB
-rw-r--r--
TActiveHyperLink.php
3.45
KB
-rw-r--r--
TActiveHyperLinkColumn.php
2.29
KB
-rw-r--r--
TActiveImage.php
3.06
KB
-rw-r--r--
TActiveImageButton.php
5.33
KB
-rw-r--r--
TActiveLabel.php
2.67
KB
-rw-r--r--
TActiveLinkButton.php
4.86
KB
-rw-r--r--
TActiveListBox.php
4.43
KB
-rw-r--r--
TActiveListControlAdapter.php
4.18
KB
-rw-r--r--
TActiveListItemCollection.php
2.88
KB
-rw-r--r--
TActiveLiteralColumn.php
2.73
KB
-rw-r--r--
TActiveMultiView.php
3.54
KB
-rw-r--r--
TActivePageAdapter.php
9.87
KB
-rw-r--r--
TActivePager.php
6.39
KB
-rw-r--r--
TActivePanel.php
2.77
KB
-rw-r--r--
TActiveRadioButton.php
5.56
KB
-rw-r--r--
TActiveRadioButtonItem.php
824
B
-rw-r--r--
TActiveRadioButtonList.php
3.84
KB
-rw-r--r--
TActiveRatingList.php
4.12
KB
-rw-r--r--
TActiveRepeater.php
4.45
KB
-rw-r--r--
TActiveTableCell.php
7.01
KB
-rw-r--r--
TActiveTableCellEventParameter...
1.77
KB
-rw-r--r--
TActiveTableRow.php
7.6
KB
-rw-r--r--
TActiveTableRowEventParameter....
1.78
KB
-rw-r--r--
TActiveTemplateColumn.php
2.56
KB
-rw-r--r--
TActiveTextBox.php
3.7
KB
-rw-r--r--
TBaseActiveCallbackControl.php
8.29
KB
-rw-r--r--
TBaseActiveControl.php
3.65
KB
-rw-r--r--
TCallback.php
2.95
KB
-rw-r--r--
TCallbackClientScript.php
24.66
KB
-rw-r--r--
TCallbackClientSide.php
8.14
KB
-rw-r--r--
TCallbackErrorHandler.php
3.53
KB
-rw-r--r--
TCallbackEventParameter.php
2.27
KB
-rw-r--r--
TCallbackOptions.php
1.26
KB
-rw-r--r--
TCallbackPageStateTracker.php
5.39
KB
-rw-r--r--
TCallbackResponseAdapter.php
2.38
KB
-rw-r--r--
TCallbackResponseWriter.php
1.67
KB
-rw-r--r--
TEventTriggeredCallback.php
2.38
KB
-rw-r--r--
TInPlaceTextBox.php
8.29
KB
-rw-r--r--
TInvalidCallbackException.php
595
B
-rw-r--r--
TMapCollectionDiff.php
874
B
-rw-r--r--
TScalarDiff.php
711
B
-rw-r--r--
TStyleDiff.php
2.35
KB
-rw-r--r--
TTimeTriggeredCallback.php
3.54
KB
-rw-r--r--
TTriggeredCallback.php
1.65
KB
-rw-r--r--
TValueTriggeredCallback.php
3.21
KB
-rw-r--r--
TViewStateDiff.php
1.07
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : TActivePageAdapter.php
<?php /** * TActivePageAdapter, TCallbackErrorHandler and TInvalidCallbackException class file. * * @author Wei Zhuo <weizhuo[at]gamil[dot]com> * @author Gabor Berczi <gabor.berczi@devworx.hu> (lazyload additions & progressive rendering) * @link https://github.com/pradosoft/prado * @license https://github.com/pradosoft/prado/blob/master/LICENSE */ namespace Prado\Web\UI\ActiveControls; /** * Load callback response adapter class. */ use Prado\Prado; use Prado\Web\Javascripts\TJavaScript; use Prado\Web\UI\TControl; use Prado\Web\UI\TControlAdapter; use Prado\Web\UI\TPage; /** * TActivePageAdapter class. * * Callback request handler. * * @author Wei Zhuo <weizhuo[at]gamil[dot]com> * @author Gabor Berczi <gabor.berczi@devworx.hu> (lazyload additions & progressive rendering) * @since 3.1 */ class TActivePageAdapter extends TControlAdapter { /** * Callback response data header name. */ public const CALLBACK_DATA_HEADER = 'X-PRADO-DATA'; /** * Callback response client-side action header name. */ public const CALLBACK_ACTION_HEADER = 'X-PRADO-ACTIONS'; /** * Callback error header name. */ public const CALLBACK_ERROR_HEADER = 'X-PRADO-ERROR'; /** * Callback error header name. */ public const CALLBACK_DEBUG_HEADER = 'X-PRADO-DEBUG'; /** * Callback page state header name. */ public const CALLBACK_PAGESTATE_HEADER = 'X-PRADO-PAGESTATE'; /** * Script list header name. */ public const CALLBACK_SCRIPTLIST_HEADER = 'X-PRADO-SCRIPTLIST'; /** * Stylesheet list header name. */ public const CALLBACK_STYLESHEETLIST_HEADER = 'X-PRADO-STYLESHEETLIST'; /** * Stylesheet header name. */ public const CALLBACK_STYLESHEET_HEADER = 'X-PRADO-STYLESHEET'; /** * Hidden field list header name. */ public const CALLBACK_HIDDENFIELDLIST_HEADER = 'X-PRADO-HIDDENFIELDLIST'; /** * Callback redirect url header name. */ public const CALLBACK_REDIRECT = 'X-PRADO-REDIRECT'; /** * @var ICallbackEventHandler callback event handler. */ private $_callbackEventTarget; /** * @var mixed callback event parameter. */ private $_callbackEventParameter; /** * @var TCallbackClientScript callback client script handler */ private $_callbackClient; private $_controlsToRender = []; /** * Constructor, trap errors and exception to let the callback response * handle them. * @param TPage $control */ public function __construct(TPage $control) { parent::__construct($control); //TODO: can this be done later? $response = $this->getApplication()->getResponse(); $response->setAdapter(new TCallbackResponseAdapter($response)); $this->trapCallbackErrorsExceptions(); } /** * Process the callback request. * @param \Prado\Web\UI\THtmlWriter $writer html content writer. */ public function processCallbackEvent($writer) { Prado::trace("ActivePage raiseCallbackEvent()", 'Prado\Web\UI\ActiveControls\TActivePageAdapter'); $this->raiseCallbackEvent(); } /** * Register a control for defered render() call. * @param \Prado\Web\UI\TControl $control control for defered rendering * @param \Prado\Web\UI\THtmlWriter $writer the renderer */ public function registerControlToRender($control, $writer) { $id = $control->getUniqueID(); if (!isset($this->_controlsToRender[$id])) { $this->_controlsToRender[$id] = [$control, $writer]; } } /** * Trap errors and exceptions to be handled by TCallbackErrorHandler. */ protected function trapCallbackErrorsExceptions() { $this->getApplication()->setErrorHandler(new TCallbackErrorHandler()); } /** * Render the callback response. * @param \Prado\Web\UI\THtmlWriter $writer html content writer. */ public function renderCallbackResponse($writer) { Prado::trace("ActivePage renderCallbackResponse()", 'Prado\Web\UI\ActiveControls\TActivePageAdapter'); /** @var TCallbackResponseAdapter $adapter */ $adapter = $this->getResponse()->getAdapter(); if (($url = $adapter->getRedirectedUrl()) === null) { $this->renderResponse($writer); } else { $this->redirect($url); } } /** * Redirect url on the client-side using javascript. * @param string $url new url to load. */ protected function redirect($url) { Prado::trace("ActivePage redirect()", 'Prado\Web\UI\ActiveControls\TActivePageAdapter'); $this->appendContentPart($this->getResponse(), self::CALLBACK_REDIRECT, $url); } /** * Renders the callback response by adding additional callback data and * javascript actions in the header and page state if required. * @param \Prado\Web\UI\THtmlWriter $writer html content writer. */ protected function renderResponse($writer) { Prado::trace("ActivePage renderResponse()", 'Prado\Web\UI\ActiveControls\TActivePageAdapter'); //renders all the defered render() calls. foreach ($this->_controlsToRender as $rid => $forRender) { $forRender[0]->render($forRender[1]); } $response = $this->getResponse(); //send response data in header if ($response->getHasAdapter()) { $responseData = $response->getAdapter()->getResponseData(); if ($responseData !== null) { $data = TJavaScript::jsonEncode($responseData); $this->appendContentPart($response, self::CALLBACK_DATA_HEADER, $data); } } //sends page state in header if (($handler = $this->getCallbackEventTarget()) !== null) { if ($handler->getActiveControl()->getClientSide()->getEnablePageStateUpdate()) { $pagestate = $this->getPage()->getClientState(); $this->appendContentPart($response, self::CALLBACK_PAGESTATE_HEADER, $pagestate); } } //safari must receive at least 1 byte of data. $writer->write(" "); //output the end javascript if ($this->getPage()->getClientScript()->hasEndScripts()) { $writer = $response->createHtmlWriter(); $this->getPage()->getClientScript()->renderEndScriptsCallback($writer); $this->getPage()->getCallbackClient()->evaluateScript($writer); } //output the actions $executeJavascript = $this->getCallbackClientHandler()->getClientFunctionsToExecute(); $actions = TJavaScript::jsonEncode($executeJavascript); $this->appendContentPart($response, self::CALLBACK_ACTION_HEADER, $actions); $cs = $this->getPage()->getClientScript(); // collect all stylesheet file references $stylesheets = $cs->getStyleSheetUrls(); if (count($stylesheets) > 0) { $this->appendContentPart($response, self::CALLBACK_STYLESHEETLIST_HEADER, TJavaScript::jsonEncode($stylesheets)); } // collect all stylesheet snippets references $stylesheets = $cs->getStyleSheetCodes(); if (count($stylesheets) > 0) { $this->appendContentPart($response, self::CALLBACK_STYLESHEET_HEADER, TJavaScript::jsonEncode($stylesheets)); } // collect all script file references $scripts = $cs->getScriptUrls(); if (count($scripts) > 0) { $this->appendContentPart($response, self::CALLBACK_SCRIPTLIST_HEADER, TJavaScript::jsonEncode($scripts)); } // collect all hidden field references $fields = $cs->getHiddenFields(); if (count($fields) > 0) { $this->appendContentPart($response, self::CALLBACK_HIDDENFIELDLIST_HEADER, TJavaScript::jsonEncode($fields)); } } /** * Appends data or javascript code to the body content surrounded with delimiters * @param mixed $response * @param mixed $delimiter * @param mixed $data */ private function appendContentPart($response, $delimiter, $data) { $content = $response->createHtmlWriter(); $content->getWriter()->setBoundary($delimiter); $content->write($data); } /** * Trys to find the callback event handler and raise its callback event. * @throws TInvalidCallbackException if call back target is not found. * @throws TInvalidCallbackException if the requested target does not * implement ICallbackEventHandler. */ private function raiseCallbackEvent() { if (($callbackHandler = $this->getCallbackEventTarget()) !== null) { if ($callbackHandler instanceof ICallbackEventHandler) { $param = $this->getCallbackEventParameter(); $result = new TCallbackEventParameter($this->getResponse(), $param); $callbackHandler->raiseCallbackEvent($result); } else { throw new TInvalidCallbackException( 'callback_invalid_handler', $callbackHandler->getUniqueID() ); } } else { $target = $this->getRequest()->itemAt(TPage::FIELD_CALLBACK_TARGET); throw new TInvalidCallbackException('callback_invalid_target', $target); } } /** * @return null|\Prado\Web\UI\ActiveControls\IActiveControl|\Prado\Web\UI\TControl the control responsible for the current callback event, * null if nonexistent */ public function getCallbackEventTarget() { if ($this->_callbackEventTarget === null) { $eventTarget = $this->getRequest()->itemAt(TPage::FIELD_CALLBACK_TARGET); if (!empty($eventTarget)) { $this->_callbackEventTarget = $this->getPage()->findControl($eventTarget); } } return $this->_callbackEventTarget; } /** * Registers a control to raise callback event in the current request. * @param \Prado\Web\UI\TControl $control control registered to raise callback event. */ public function setCallbackEventTarget(TControl $control) { $this->_callbackEventTarget = $control; } /** * Gets callback parameter. * @return string postback event parameter */ public function getCallbackEventParameter() { if ($this->_callbackEventParameter === null) { $param = $this->getRequest()->itemAt(TPage::FIELD_CALLBACK_PARAMETER); $this->_callbackEventParameter = $param; } return $this->_callbackEventParameter; } /** * @param mixed $value postback event parameter */ public function setCallbackEventParameter($value) { $this->_callbackEventParameter = $value; } /** * Gets the callback client script handler. It handlers the javascript functions * to be executed during the callback response. * @return TCallbackClientScript callback client handler. */ public function getCallbackClientHandler() { if ($this->_callbackClient === null) { $this->_callbackClient = new TCallbackClientScript(); } return $this->_callbackClient; } }
Close