Bearsampp 2025.8.29
Loading...
Searching...
No Matches
root.php
Go to the documentation of this file.
1<?php
2/*
3 * Copyright (c) 2022 - 2024 Bearsampp
4 * License: GNU General Public License version 3 or later; see LICENSE.txt
5 * Website: https://bearsampp.com
6 * Github: https://github.com/Bearsampp
7 */
8
12const APP_AUTHOR_NAME = 'N6REJ';
13const APP_TITLE = 'Bearsampp';
14const APP_WEBSITE = 'https://bearsampp.com';
15const APP_LICENSE = 'GPL3 License';
16const APP_GITHUB_USER = 'Bearsampp';
17const APP_GITHUB_REPO = 'Bearsampp';
18const APP_GITHUB_USERAGENT = 'Bearsampp';
19const APP_GITHUB_LATEST_URL = 'https://api.github.com/repos/' . APP_GITHUB_USER . '/' . APP_GITHUB_REPO . '/releases/latest';
20const RETURN_TAB = ' ';
21
22// Membership Pro API key & URL
23const QUICKPICK_API_KEY = '4abe15e5-95f2-4663-ad12-eadb245b28b4';
24const QUICKPICK_API_URL = 'https://bearsampp.com/index.php?option=com_osmembership&task=api.get_active_plan_ids&api_key=';
25
26// URL where quickpick-releases.json lives
27const QUICKPICK_JSON_URL = 'https://raw.githubusercontent.com/Bearsampp/Bearsampp/main/core/resources/quickpick-releases.json';
28
33require_once dirname(__FILE__) . '/classes/class.root.php';
34$bearsamppRoot = new Root(dirname(__FILE__));
35$bearsamppRoot->register();
36
41$bearsamppAction->process();
42
46if ($bearsamppRoot->isRoot()) {
48}
49
54$locale = $bearsamppLang->getValue('locale');
global $bearsamppLang
global $bearsamppRoot
static stopLoading()
const QUICKPICK_JSON_URL
Definition root.php:27
const APP_GITHUB_USERAGENT
Definition root.php:18
const APP_AUTHOR_NAME
Definition root.php:12
const APP_WEBSITE
Definition root.php:14
$locale
Definition root.php:54
const APP_GITHUB_USER
Definition root.php:16
const APP_GITHUB_REPO
Definition root.php:17
const QUICKPICK_API_URL
Definition root.php:24
const APP_LICENSE
Definition root.php:15
const APP_GITHUB_LATEST_URL
Definition root.php:19
const QUICKPICK_API_KEY
Definition root.php:23
const RETURN_TAB
Definition root.php:20
$bearsamppAction
Definition root.php:40
const APP_TITLE
Definition root.php:13