PATH:
home
/
letacommog
/
letaweb
/
admin
/
api
/
settings
<?php class Code_injectionManager extends BaseManager { // execute subscription cancel request public function actionsaveInjectionCode() { Yii::import('application.classes.htmlpurifier.library.HTMLPurifier_auto', true); $config = HTMLPurifier_Config::createDefault(); $config->set('Core.Encoding', 'UTF-8'); // replace with your encoding $config->set('HTML.Doctype', 'XHTML 1.0 Transitional'); // replace with your doctype $config->set('HTML.Trusted', true); if (isset($_REQUEST["footer_code"])) { $code = $_REQUEST["footer_code"]; $purifier = new HTMLPurifier($config); $pure_html = $purifier->purify($code); Yii::app()->site->model->writeFile("", "footer_injection_code", $pure_html); } if (isset($_REQUEST["header_code"])) { $config = HTMLPurifier_Config::createDefault(); $config->set('Core.Encoding', 'UTF-8'); // replace with your encoding $config->set('HTML.Doctype', 'XHTML 1.0 Transitional'); // replace with your doctype $config->set('CSS.Trusted', true); $config->set('HTML.Trusted', true); $code = $_REQUEST["header_code"]; $purifier = new HTMLPurifier($config); $pure_html = $purifier->purify($code); Yii::app()->site->model->writeFile("", "header_injection_code", $pure_html); } $this->ajaxSuccess(1); } public function actiongetInjectionCode() { $header_code = ""; $header_code_file_path = Yii::app()->site->model->getFilePath("","header_injection_code"); if (@file_exists($header_code_file_path)) { $header_code = file_get_contents($header_code_file_path); } $footer_code = ""; $footer_code_file_path = Yii::app()->site->model->getFilePath("","footer_injection_code"); if (@file_exists($footer_code_file_path)) { $footer_code = file_get_contents($footer_code_file_path); } $this->ajaxSuccess(array("header_code"=>$header_code, "footer_code"=>$footer_code)); } }
[+]
..
[-] DomainManager.php
[edit]
[-] PageManager.php
[edit]
[+]
contributor
[-] BillingManager.php
[edit]
[-] ContributorManager.php
[edit]
[-] Code_injectionManager.php
[edit]