system/library/response.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
* @package OpenCart
* @author Daniel Kerr
* @copyright Copyright (c) 2005 - 2017, OpenCart, Ltd. (https://www.opencart.com/)
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.opencart.com
*/
/**
* Response class
*/
class Response {
private $headers = array();
private $level = 0;
private $output;
/**
* Constructor
*
* @param string $header
*
*/
public function addHeader($header) {
$this->headers[] = $header;
}
/**
*
*
* @param string $url
* @param int $status
*
*/
public function redirect($url, $status = 302) {
header('Location: ' . str_replace(array('&', "\n", "\r"), array('&', '', ''), $url), true, $status);
exit();
}
/**
*
*
* @param int $level
*/
public function setCompression($level) {
$this->level = $level;
}
/**
*
*
* @return array
*/
public function getOutput() {
return $this->output;
}
/**
*
*
后面还有 61 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
