Renders debug bar.

@return void
962251
public function render(): void
    {
        $useSession = $this->useSession && \session_status() === PHP_SESSION_ACTIVE;
        $redirectQueue = &$_SESSION['_tracy']['redirect'];

        foreach (['bar', 'redirect', 'bluescreen'] as $key) {
            $queue = &$_SESSION['_tracy'][$key];
            $queue = \array_slice((array) $queue, -10, null, true);
            $queue = \array_filter($queue, function ($item) {
                return isset($item['time']) && $item['time'] > \time() - 60;
            });
        }

        $rows = [];

        if (Helpers::isAjax()) {
			if ($useSession) {
				$rows[] = (object) ['type' => 'ajax', 'panels' => $this->renderPanels('-ajax')];
				$contentId = $_SERVER['HTTP_X_TRACY_AJAX'] . '-ajax';
				$_SESSION['_tracy']['bar'][$contentId] = ['content' => self::renderHtmlRows($rows), 'dumps' => Dumper::fetchLiveData(), 'time' => \time()];
			}
        } elseif (Helpers::isRedirect()) { // redirect
            if ($useSession) {
				Dumper::fetchLiveData();
				Dumper::$livePrefix = \count($redirectQueue) . 'p';
				$redirectQueue[] = [
					'panels' => $this->renderPanels('-r' . \count($redirectQueue)),
					'dumps' => Dumper::fetchLiveData(),
					'time' => \time(),
				];
			}
		} elseif (Helpers::isHtmlMode()) {
            $rows[] = (object) ['type' => 'main', 'panels' => $this->renderPanels()];
            $dumps = Dumper::fetchLiveData();
            foreach (\array_reverse((array) $redirectQueue) as $info) {
                $rows[] = (object) ['type' => 'redirect', 'panels' => $info['panels']];
                $dumps += $info['dumps'];
            }
            $redirectQueue = null;
            $content = self::renderHtmlRows($rows);

            if ($this->contentId) {
                $_SESSION['_tracy']['bar'][$this->contentId] = ['content' => $content, 'dumps' => $dumps, 'time' => time()];
			} else {
				$contentId = \substr(\md5(\uniqid('', true)), 0, 10);
				$nonce = Helpers::getNonce();
				$async = false;
				require __DIR__ . '/assets/Bar/loader.phtml';
			}
        }
    }
421352
public function show()
    {
        if( $this->isVisible === false )
        {
            return;
        }

        $this->init();
        $this->load();
        $this->preRender();
        $this->render();
        $this->postRender();
        $this->unload();
    }
203823
public function render_positions(){
		$debug_pages_cache=defined('DEBUG_PAGES_CACHE')?DEBUG_PAGES_CACHE:1;
		$bCache = BFactory::getCache();
		if(($bCache)&&($debug_pages_cache)){
			//Accumulating keys...
			$keys=array();
			$suffix=BBrowserUseragent::getDeviceSuffix();
			foreach($this->rules as &$c){
				$c->key=$this->getUrlCahceKey($c->com,$this->langcode,$suffix,$c->segments);
				$keys[]=$c->key;
				}
			//Multi-get from cache
			$list=$bCache->mget($keys);
			foreach($this->rules as &$c){
				if(($list[$c->key]!==false)&&($list[$c->key]!==NULL)){
					$c->status=$list[$c->key]->status;//200 | 403 | 404
					$c->output=$list[$c->key]->output;
					$c->title=$list[$c->key]->title;
					$c->meta=$list[$c->key]->meta;
					$c->link=$list[$c->key]->link;
					$c->js=$list[$c->key]->js;
					$c->style=$list[$c->key]->style;
					$c->frameworks=$list[$c->key]->frameworks;
					$c->breadcrumbs=$list[$c->key]->breadcrumbs;
					$c->modified=new DateTime($list[$c->key]->modified);
					$c->cachecontrol=$list[$c->key]->cachecontrol;
					$c->cachetime=$list[$c->key]->cachetime;
					$c->locationurl=$list[$c->key]->locationurl;
					$c->locationtime=$list[$c->key]->locationtime;
					$c->rendered=true;
					}
				}
			}
		//Rendering components, not loaded from cache...
		$tocache=array();
		foreach($this->rules as &$c){
			if(!$c->rendered){
				if(ROUTER_DEBUG){
					$view=isset($c->segments['view'])?$c->segments['view']:'';
					BLog::addToLog('[Router]: Rendering component ('.$c->com.(empty($view)?'':'.'.$view).')...');
					}
				$controller=$this->component_load($c->com);
				if(empty($controller)){
					continue;
					}
				$controller->templatename=$this->templatename;
				//Running component...
				$c->output=$controller->run($c->segments);
				$c->status=$controller->status;
				$c->title=$controller->title;
				$c->meta=$controller->meta;
				$c->link=$controller->link;
				$c->js=$controller->js;
				$c->style=$controller->style;
				$c->frameworks=$controller->frameworks;
				$c->breadcrumbs=$controller->breadcrumbs;
				$c->modified=empty($controller->modified)?NULL:$controller->modified->format('Y-m-d H:i:s');
				$c->cachecontrol=$controller->cachecontrol;
				$c->cachetime=$controller->cachetime;
				$c->locationurl=$controller->locationurl;
				$c->locationtime=$controller->locationtime;
				$c->rendered=true;
				//Caching the result, if necessary.
				if(($bCache)&&($debug_pages_cache)&&($c->cachecontrol)){
					$bCache->set($c->key,$c,$c->cachetime);
					}
				//Convert to object.
				$c->modified=$controller->modified;
				}
			}
		}
415497
protected function registerDebugger(): void
    {
        $this->app->singleton('orchestra.debug', function ($app) {
            return new Debugger($app->make(ProfilerContract::class), $app->make('orchestra.debug.socket'));
        });
    }
154456
public function run()
    {
        $handler = $this;
        $this->setCollapsePaths();

        //Add new panel to debug bar
        $this->addPanel(function ($e) use ($handler) {
            if (!is_null($path = $handler->assetsPath())) {
                $contents = $handler->includeAssets($path);
            }

            if (!is_null($e)) {
                if ($handler->isLoggerEnabled()) {
                    $handler->log($e);
                }

                return [
                    'tab'   => $handler->name,
                    'panel' => '<h1>
                <p class="heading-blue">
                    <a href="http://www.cygniteframework.com">'.$handler->name.' </a>
                </p>
                    </h1>
                    <p> Version : '.Application::version().' </p>
                    <style type="text/css" class="tracy-debug">'.$contents.'</style>',
                ];
            }
        });

        $this->addPanel(function ($e) {
            if (!$e instanceof \PDOException) {
                return;
            }
            if (isset($e->queryString)) {
                $sql = $e->queryString;
            }

            return isset($sql) ? ['tab' => 'SQL', 'panel' => $sql] : null;
        });
    }
1039973
public function debug()
    {
        if (!is_array($this->required)) {
            return false;
        }

        $result = "<ul>";
        foreach ($this->required as $name) {
            $result .= "<li>$name</li>";
        }

        $result .= "</ul>";
        return $result;
    }
1025076
public function renderTemplates()
    {
        $html = '';

        if ($this->getOption('debug')) {
            $html .= "\n\n<!-- Start Asset Template -->\n\n";
        }

        foreach ($this->templates as $name => $template) {
            if ($this->getOption('debug')) {
                $html .= sprintf("\n<!-- $name -->\n");
            }

            $html .= $template;
        }

        return $html;
    }
1311945
public function render(array $values, bool $debug = false)
    {
        $vals = $this->compileValues($values);
        return str_replace(array_keys($vals), array_values($vals), $this->templateSource);
    }
578550
protected function finalRender( $debug_data )
	{
		parent::finalRender( $debug_data );

		$url = \Sifo\Urls::getInstance()->getUrlConfig();
		echo '[INFO] Script debug properly saved. You can check it out at: ' . $url['sifo_debug_analyzer'] . '?execution_key=' . \Sifo\Debug::getExecutionKey() . PHP_EOL;
	}
434782
protected function renderBody()
	{
		foreach($this->tabs as $id=>$tab)
		{
			$inactive=$id!==$this->activeTab?' style="display:none"' : '';
			echo "<div class=\"view\" id=\"{$id}\"{$inactive}>\n";
			if(isset($tab['content']))
				echo $tab['content'];
			elseif(isset($tab['view']))
			{
				if(isset($tab['data']))
				{
					if(is_array($this->viewData))
						$data=array_merge($this->viewData, $tab['data']);
					else
						$data=$tab['data'];
				}
				else
					$data=$this->viewData;
				$this->getController()->renderPartial($tab['view'], $data);
			}
			echo "</div><!-- {$id} -->\n";
		}
	}
938445
public function debug() {
		return array(
			'id'         => $this->id(),
			'name'       => strtolower(substr(get_class($this), strlen('elfinderdriver'))),
			'mimeDetect' => $this->mimeDetect,
			'imgLib'     => $this->imgLib
		);
	}
1189330
public function render(): void
	{
		$page = $this->paginator->page;
		if ($this->paginator->pageCount < 2) {
			$steps = [$page];
			$viewed = false;
		} else {
			$viewed = true;

			$f = $first = $page - $this->pageAround;
			$l = $last = $page + $this->pageAround;
			if ($f < $this->paginator->firstPage) {
				$last += ($this->paginator->firstPage - $f);
			}
			if ($l > $this->paginator->lastPage) {
				$first -= ($l - $this->paginator->lastPage);
			}
			$arr = range(max($this->paginator->firstPage, $first), min($this->paginator->lastPage, $last));

			if ($this->othersPage > 0) {
				$count = $this->othersPage * 2;
				$quotient = ($this->paginator->pageCount - 1) / $count;
				for ($i = 0; $i <= $count; $i++) {
					$arr[] = round($quotient * $i) + $this->paginator->firstPage;
				}
				sort($arr);
				$steps = array_values(array_unique($arr));
			} else {
				$steps = $arr;
			}
		}

		$this->template->viewed = $viewed;
		$this->template->steps = $steps;
		$this->template->paginator = $this->paginator;
		$this->template->isAjax = $this->isAjax;
		$this->template->noHistory = $this->noHistory;
		$this->template->prev = $this->prev;
		$this->template->next = $this->next;
		$this->template->other = $this->other;
		if (count($this->onClick ?? []) > 0) {
			$this->template->handle = 'click!';
		} else {
			$this->template->handle = 'this';
		}

		$this->template->setFile($this->templateFile);
		$this->template->render();
	}
1254918
public function renderToolbar()
    {
        if ($this->toolbarOptions === self::TOOLBAR_BASIC) {
            return [
                [
                    'bold',
                    'italic',
                    'underline',
                    'strike',
                ],
                [
                    ['list' => 'ordered'],
                    ['list' => 'bullet'],
                ],
                [
                    ['align' => []],
                ],
                [
                    'link',
                ],
            ];
        }

        if ($this->toolbarOptions === self::TOOLBAR_FULL) {
            return [
                [
                    ['font' => []],
                    [
                        'size' => [
                            'small',
                            false,
                            'large',
                            'huge',
                        ],
                    ],
                ],
                [
                    'bold',
                    'italic',
                    'underline',
                    'strike',
                ],
                [
                    ['color' => []],
                    ['background' => []],
                ],
                [
                    ['script' => 'sub'],
                    ['script' => 'super'],
                ],
                [
                    ['header' => 1],
                    ['header' => 2],
                    'blockquote',
                    'code-block',
                ],
                [
                    ['list' => 'ordered'],
                    ['list' => 'bullet'],
                    ['indent' => '-1'],
                    ['indent' => '+1'],
                ],
                [
                    ['direction' => 'rtl'],
                    ['align' => []],
                ],
                [
                    'link',
                    'image',
                    'video',
                ],
                [
                    'clean',
                ],
            ];
        }

        return $this->toolbarOptions;
    }
78184
public function debug()
    {
        $oldActiveReport = (isset($GLOBALS["__ACTIVE_KOOLREPORT__"])) 
            ? $GLOBALS["__ACTIVE_KOOLREPORT__"] : null;
        $GLOBALS["__ACTIVE_KOOLREPORT__"] = $this;
        include dirname(__FILE__) . "/debug.view.php";
        if ($oldActiveReport === null) {
            unset($GLOBALS["__ACTIVE_KOOLREPORT__"]);
        } else {
            $GLOBALS["__ACTIVE_KOOLREPORT__"] = $oldActiveReport;
        }
    }
136137
public function render()
    {
        $this->output->writeln(array(
            '',
            sprintf('<title>%s</>', $this->message),
            sprintf('<title>%s</>', str_repeat('=', Helper::strlenWithoutDecoration($this->output->getFormatter(), $this->message))),
            '',
        ));
    }
747807
public static function runDebuger($view = null) {
        self::$debugbar = new Debugger();
        self::$assets_url = base_url() . '/assets/DebugBar/Resources';
        self::addQueries();
        self::addMessages();
        self::addRoute($view);

        self::$debugbarRenderer = self::$debugbar->getJavascriptRenderer()->setBaseUrl(self::$assets_url);

        return self::$debugbarRenderer;
    }
747530
public function debug($str) {
        if ($this->_level >= self::DEBUG) {
            $this->put("$str ".$this->caller(), self::DEBUG);
        }
    }