Exploit databaseDownload repository ZIP
GH-67cfe9274a84b2ab15965e26c8740df4
ctlyz123/cve-2020-17496
Sources for CVE-2020-17496
4 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files14
ctlyz123/cve-2020-17496Revision d621d414aa56
- ↑..Parent directory
- bbcode/
- cache/
- bbcode.php
- cache.php
- headlink.php
- index.html
- javascript.php
- nodetext.php
- options.php
- phrase.php
- runtime.php
- stylesheet.php
- stylevar.php
- url.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
html/includes/vb5/template/options.php
PHP · 1,946 bytes<?php
/*========================================================================*\
|| ###################################################################### ||
|| # vBulletin 5.6.0
|| # ------------------------------------------------------------------ # ||
|| # Copyright 2000-2020 MH Sub I, LLC dba vBulletin. All Rights Reserved. # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ----------------- VBULLETIN IS NOT FREE SOFTWARE ----------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| ###################################################################### ||
\*========================================================================*/
class vB5_Template_Options
{
protected static $instance;
protected $cache = array();
public static function instance()
{
if (!isset(self::$instance))
{
$c = __CLASS__;
self::$instance = new $c;
self::$instance->getOptions();
}
return self::$instance;
}
public function get($name)
{
$path = explode('.', $name);
$var = $this->cache;
foreach ($path AS $t)
{
if (isset($var[$t]))
{
$var = $var[$t];
}
else
{
return NULL;
}
}
return $var;
}
public function getOptions()
{
if (!isset($this->cache['options']))
{
$this->fetchOptions();
}
return $this->cache;
}
private function fetchOptions()
{
$response = Api_InterfaceAbstract::instance()->callApi('options', 'fetch');
foreach ($response AS $key => $value)
{
$this->cache[$key] = $value;
}
}
}
/*=========================================================================*\
|| #######################################################################
|| # NulleD By - vBSupport.org
|| # CVS: $RCSfile$ - $Revision: 102575 $
|| #######################################################################
\*=========================================================================*/