* Constructs the exception. * @link http://php.net/manual/en/errorexception.construct.php * @param $message [optional] * @param $code [optional] * @param $severity [optional] * @param $filename [optional] * @param $lineno [optional] * @param $previous [optional] */ public function __construct($message = '', $code = 0, $severity = 1, $filename = __FILE__, $lineno = __LINE__, \Exception $previous = null) { parent::__construct($message, $code, $severity, $filename, $lineno, $previous); if (function_exists('xdebug_get_function_stack')) { $trace = array_slice(array_reverse(xdebug_get_function_stack()), 3, -1); foreach ($trace as &$frame) { if (!isset($frame['function'])) { $frame['function'] = 'unknown'; }
$default_image = substr($path, $pos+1, $len); $uploads=Yii::getAlias('@userFiles'); if($userfile === false) { $image=Yii::$app->image->load($uploads.'/'.$default_image); list($width) = getimagesize($uploads.'/'.$default_image); if($size > $width) { $image->resize($width,0)->save($uploads.'/thumbs/'.'w'.$size.'-'.$default_image); } else { $image->resize($size,0)->save($uploads.'/thumbs/'.'w'.$size.'-'.$default_image);
$args = $this->controller->bindActionParams($this, $params); Yii::trace('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } return call_user_func_array([$this->controller, $this->actionMethod], $args); } }
} $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules foreach ($modules as $module) { /* @var $module Module */
$parts = $this->createController($route); if (is_array($parts)) { /* @var $controller Controller */ list($controller, $actionID) = $parts; $oldController = Yii::$app->controller; Yii::$app->controller = $controller; $result = $controller->runAction($actionID, $params); Yii::$app->controller = $oldController; return $result; } else { $id = $this->getUniqueId(); throw new InvalidRouteException('Unable to resolve the request "' . ($id === '' ? $route : $id . '/' . $route) . '".');
$params = $this->catchAll; unset($params[0]); } try { Yii::trace("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } else { $response = $this->getResponse(); if ($result !== null) { $response->data = $result;
try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send();
require(__DIR__ . '/../../common/config/main-local.php'), require(__DIR__ . '/../config/main.php'), require(__DIR__ . '/../config/main-local.php') ); $application = new yii\web\Application($config); $application->run();
$_GET = [ 'path' => '1629980286M6295.jpg', ]; $_SERVER = [ 'PATH' => '/sbin:/usr/sbin:/bin:/usr/bin', 'DOCUMENT_ROOT' => '/web/htdocs5/polyformcz/home/www', 'PHPRC' => '/web/htdocs5/polyformcz/php.ini', 'MAGICK_THREAD_LIMIT' => '1', 'HTTP_CONNECTION' => 'close', 'PATH_TRANSLATED' => 'redirect:/frontend/web/gallery/show/show', 'PATH_INFO' => '/gallery/show', 'SCRIPT_NAME' => '/backend/web/index.php', 'REQUEST_URI' => '/backend/web/index.php/gallery/show?path=1629980286M6295.jpg', 'QUERY_STRING' => 'path=1629980286M6295.jpg', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTP_GEOIP_COUNTRY_NAME' => 'United States', 'HTTP_GEOIP_COUNTRY_CODE' => 'US', 'HTTP_GEOIP_CONTINENT_CODE' => 'NA', 'HTTP_GEOIP_ADDR' => '50.17.92.200', 'GEOIP_COUNTRY_NAME' => 'United States', 'GEOIP_COUNTRY_CODE' => 'US', 'GEOIP_CONTINENT_CODE' => 'NA', 'GEOIP_ADDR' => '50.17.92.200', 'REMOTE_PORT' => '47730', 'SCRIPT_FILENAME' => '/web/htdocs5/polyformcz/home/www/backend/web/index.php', 'SERVER_ADMIN' => 'admin@forpsi.com', 'REMOTE_ADDR' => '50.17.92.200', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '185.129.138.39', 'SERVER_NAME' => 'polyform.cz', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => 'Apache Server at polyform.cz Port 80 ', 'HTTP_HOST' => 'www.polyform.cz', 'HTTP_REFERER' => 'http://www.polyform.cz/uploads/1629980286M6295.jpg', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'UNIQUE_ID' => 'ZgU4NH8AAAEAAfBHktoAAAES', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/backend/web/index.php/gallery/show', 'REQUEST_TIME_FLOAT' => 1711618100.240993976593017578125, 'REQUEST_TIME' => 1711618100, 'argv' => [ 'path=1629980286M6295.jpg', ], 'argc' => 1, ];