Bearsampp 2026.5.5
Loading...
Searching...
No Matches
root.php File Reference

Go to the source code of this file.

Variables

 $bearsamppAction = new Action()
if($bearsamppRoot->isRoot()) global $bearsamppLang
 $bearsamppRoot = new Root(dirname(__FILE__))
 $locale = $bearsamppLang->getValue('locale')
const APP_AUTHOR_NAME = 'N6REJ'
const APP_GITHUB_LATEST_URL = 'https://api.github.com/repos/' . APP_GITHUB_USER . '/' . APP_GITHUB_REPO . '/releases/latest'
const APP_GITHUB_REPO = 'Bearsampp'
const APP_GITHUB_USER = 'Bearsampp'
const APP_GITHUB_USERAGENT = 'Bearsampp'
const APP_LICENSE = 'GPL3 License'
const APP_TITLE = 'Bearsampp'
const APP_WEBSITE = 'https://bearsampp.com'
 if (isset( $_SERVER[ 'argv']) &&isset( $_SERVER[ 'argv'][1]) &&$_SERVER[ 'argv'][1]==='startup')
const QUICKPICK_API_KEY = '4abe15e5-95f2-4663-ad12-eadb245b28b4'
const QUICKPICK_API_URL = 'https://bearsampp.com/index.php?option=com_osmembership&task=api.get_active_plan_ids&api_key='
const QUICKPICK_JSON_URL = 'https://raw.githubusercontent.com/Bearsampp/Bearsampp/main/core/resources/quickpick-releases.json'
const RETURN_TAB = ' '

Variable Documentation

◆ $bearsamppAction

$bearsamppAction = new Action()

Creates an instance of the Action class and processes the action based on command line arguments.

Definition at line 150 of file root.php.

Referenced by ActionExt\procRefresh().

◆ $bearsamppLang

if ( $bearsamppRoot->isRoot()) global $bearsamppLang

Checks if the current user has root privileges and stops loading if true. Retrieves the locale setting from the global language instance.

Definition at line 163 of file root.php.

◆ $bearsamppRoot

$bearsamppRoot = new Root(dirname(__FILE__))

Definition at line 144 of file root.php.

◆ $locale

$locale = $bearsamppLang->getValue('locale')

Definition at line 164 of file root.php.

◆ APP_AUTHOR_NAME

const APP_AUTHOR_NAME = 'N6REJ'

Defines constants used throughout the Bearsampp application.

Definition at line 12 of file root.php.

Referenced by ActionAbout\__construct().

◆ APP_GITHUB_LATEST_URL

const APP_GITHUB_LATEST_URL = 'https://api.github.com/repos/' . APP_GITHUB_USER . '/' . APP_GITHUB_REPO . '/releases/latest'

Definition at line 19 of file root.php.

Referenced by ActionCheckVersion\__construct().

◆ APP_GITHUB_REPO

const APP_GITHUB_REPO = 'Bearsampp'

Definition at line 17 of file root.php.

◆ APP_GITHUB_USER

const APP_GITHUB_USER = 'Bearsampp'

Definition at line 16 of file root.php.

Referenced by Util\getGithubUrl(), and Util\getGithubUserUrl().

◆ APP_GITHUB_USERAGENT

const APP_GITHUB_USERAGENT = 'Bearsampp'

Definition at line 18 of file root.php.

Referenced by HttpClient\getApiHeaders().

◆ APP_LICENSE

const APP_LICENSE = 'GPL3 License'

Definition at line 15 of file root.php.

◆ APP_TITLE

◆ APP_WEBSITE

const APP_WEBSITE = 'https://bearsampp.com'

Definition at line 14 of file root.php.

Referenced by Util\getWebsiteUrl().

◆ if

if(isset($_SERVER['argv']) &&isset($_SERVER['argv'][1]) && $_SERVER['argv'][1]==='startup') ( isset($_SERVER['argv']) &&isset($_SERVER['argv'][1]) && $_SERVER[ 'argv'][1] = == 'startup')

CRITICAL: Check for elevation IMMEDIATELY - must be FAST to minimize console window visibility Includes the Root class file and creates an instance of Root. Registers the root directory of the application.

Definition at line 32 of file root.php.

◆ QUICKPICK_API_KEY

const QUICKPICK_API_KEY = '4abe15e5-95f2-4663-ad12-eadb245b28b4'

Definition at line 23 of file root.php.

Referenced by QuickPick\checkDownloadId().

◆ QUICKPICK_API_URL

const QUICKPICK_API_URL = 'https://bearsampp.com/index.php?option=com_osmembership&task=api.get_active_plan_ids&api_key='

Definition at line 24 of file root.php.

Referenced by QuickPick\checkDownloadId().

◆ QUICKPICK_JSON_URL

const QUICKPICK_JSON_URL = 'https://raw.githubusercontent.com/Bearsampp/Bearsampp/main/core/resources/quickpick-releases.json'

Definition at line 27 of file root.php.

Referenced by QuickPick\checkQuickpickJson(), and QuickPick\rebuildQuickpickJson().

◆ RETURN_TAB

const RETURN_TAB = ' '

Definition at line 20 of file root.php.