wedqwedqwed

activeactiveactive activeactiveactiveactive activeactiveactiveactiveactive if ($uid == $_SESSION['token']) {
$downs = DB::run() -> querySingle("SELECT `down` FROM `commload` WHERE `id`=?;", array($id));
if (!empty($downs)) {
DB::run() -> query("DELETE FROM `commload` WHERE `id`=? AND `down`=?;", array($id, $downs));
DB::run() -> query("UPDATE `downs` SET `comments`=`comments`-? WHERE `id`=?;", array(1, $downs));

notice('Комментарий успешно удален!');
redirect("/load/active?act=comments&uz=$uz&start=$start");
} else {
show_error('Ошибка! Данного комментария не существует!');
}
} else {
show_error('Ошибка! Неверный идентификатор сессии, повторите действие!');
}
} else {
show_error('Ошибка! Удалять комментарии могут

URL: Whoops! There was an error.
Whoops \ Exception \ ErrorException (E_NOTICE)
Undefined variable: config Whoops\Exception\ErrorException thrown with message "Undefined variable: config" Stacktrace: #4 Whoops\Exception\ErrorException in /var/www/projects/pizdec/app/views/blog/print.php:12 #3 Whoops\Run:handleError in /var/www/projects/pizdec/app/views/blog/print.php:12 #2 include in /var/www/projects/pizdec/app/helpers.php:1909 #1 render in /var/www/projects/pizdec/app/modules/blog/print.php:19 #0 include_once in /var/www/projects/pizdec/public/index.php:29
Stack frames (5)
4
Whoops
\
Exception
\
ErrorException
/
app
/
views
/
blog
/
print.php
12
3
Whoops
\
Run
handleError
/
app
/
views
/
blog
/
print.php
12
2
include
/
app
/
helpers.php
1909
1
render
/
app
/
modules
/
blog
/
print.php
19
0
include_once
/
public
/
index.php
29
/
var
/
www
/
projects
/
pizdec
/
app
/
views
/
blog
/
print.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
<head>
	<title><?=$blog['title']?></title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<h2><?=$blog['title']?></h2>

	<?=App::bbCode($blog['text'])?><br /><br />

	URL: <a href="<?=$config['home']?>/blog/blog?act=view&amp;id=<?=$blog['id']?>"><?=$config['home']?>/blog/blog?act=view&amp;id=<?=$blog['id']?></a>
</body>
</html>
 
/
var
/
www
/
projects
/
pizdec
/
app
/
views
/
blog
/
print.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
<head>
	<title><?=$blog['title']?></title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<h2><?=$blog['title']?></h2>

	<?=App::bbCode($blog['text'])?><br /><br />

	URL: <a href="<?=$config['home']?>/blog/blog?act=view&amp;id=<?=$blog['id']?>"><?=$config['home']?>/blog/blog?act=view&amp;id=<?=$blog['id']?></a>
</body>
</html>
 
/
var
/
www
/
projects
/
pizdec
/
app
/
helpers.php
/**
 * @deprecated нужно использовать App::view($view, $params = array(), $return = false)
 * @param $view
 * @param array $params
 * @param bool $return
 * @return string
 */
// ------------ Функция подключения шаблонов -----------//
function render($view, $params = [], $return = false){

    extract($params);

    if ($return) {
        ob_start();
    }

    if (file_exists(HOME.'/themes/'.App::setting('themes').'/views/'.$view.'.php')){
        include (HOME.'/themes/'.App::setting('themes').'/views/'.$view.'.php');
    } else {
        include (APP.'/views/'.$view.'.php');
    }

    if ($return) {
        return ob_get_clean();
    }
}

// ------------ Подготовка массивов -----------//
function prepare_array($array, $key = 'show') {
    $prepared_array = [];

    if (is_array($array) && count($array)) {
        foreach ($array as &$el) {
            if (isset($el[$key]) && $el[$key] == false) continue;
                $prepared_array[] = $el;
        }
        return $prepared_array;
    }
    return false;
}
/
var
/
www
/
projects
/
pizdec
/
app
/
modules
/
blog
/
print.php
<?php
App::view($config['themes'].'/index');

$id = (isset($_GET['id'])) ? abs(intval($_GET['id'])) : 0;

show_title('Блоги - Печать страницы');

$blog = DB::run() -> queryFetch("SELECT * FROM `blogs` WHERE `id`=? LIMIT 1;", [$id]);

if (!empty($blog)) {

    while (ob_get_level()) {
        ob_end_clean();
    }
    $blog['text'] = preg_replace('|\[nextpage\](<br * /?>)*|', '', $blog['text']);

    header("Content-Encoding: none");
    header('Content-type:text/html; charset=utf-8');
    die(render('blog/print', ['blog' => $blog]));

} else {
    show_error('Ошибка! Выбранная вами статья не существует, возможно она была удалена!');
}

render('includes/back', ['link' => '/blog', 'title' => 'К блогам', 'icon' => 'reload.gif']);

App::view($config['themes'].'/foot');
 
/
var
/
www
/
projects
/
pizdec
/
public
/
index.php
include_once __DIR__.'/../app/start.php';

$params = App::router('params');
$target = App::router('target');

if ($target && is_callable($target)) {

    call_user_func_array($target, $params);

} elseif ($target) {

    $target = explode('@', $target);

    $act = isset($target[1]) ? $target[1] : 'index';

    if (isset($params['action'])) {
        $act = $params['action'];
    }

    include_once (APP.$target[0]);

} else {
    App::abort(404);
}
if (isset($_SESSION['input'])) unset($_SESSION['input']);


/// $config['editfiles'] удалить
 

Environment & details:

Key Value
id 1
empty
empty
empty
Key Value
protect 5368
counton 0
token BG5VkU
Key Value
USER www-data
HOME /var/www
HTTP_IF_MODIFIED_SINCE Mon, 16 Oct 2017 21:55:48 GMT
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
HTTP_HOST pizdec.ru
REDIRECT_STATUS 200
SERVER_NAME pizdec.ru
SERVER_PORT 80
SERVER_ADDR 62.173.154.81
REMOTE_PORT 38592
REMOTE_ADDR 54.234.247.118
SERVER_SOFTWARE nginx/1.6.2
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
DOCUMENT_ROOT /var/www/projects/pizdec/public
DOCUMENT_URI /index.php
REQUEST_URI /blog/print?id=1
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING id=1
SCRIPT_FILENAME /var/www/projects/pizdec/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1513581099.4738
REQUEST_TIME 1513581099
empty
0. Whoops\Handler\PrettyPageHandler
1. Whoops\Handler\CallbackHandler