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
12
const
APP_AUTHOR_NAME
=
'N6REJ'
;
13
const
APP_TITLE
=
'Bearsampp'
;
14
const
APP_WEBSITE
=
'https://bearsampp.com'
;
15
const
APP_LICENSE
=
'GPL3 License'
;
16
const
APP_GITHUB_USER
=
'Bearsampp'
;
17
const
APP_GITHUB_REPO
=
'Bearsampp'
;
18
const
APP_GITHUB_USERAGENT
=
'Bearsampp'
;
19
const
APP_GITHUB_LATEST_URL
=
'https://api.github.com/repos/'
.
APP_GITHUB_USER
.
'/'
.
APP_GITHUB_REPO
.
'/releases/latest'
;
20
const
RETURN_TAB
=
' '
;
21
22
// Membership Pro API key & URL
23
const
QUICKPICK_API_KEY
=
'4abe15e5-95f2-4663-ad12-eadb245b28b4'
;
24
const
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
27
const
QUICKPICK_JSON_URL
=
'https://raw.githubusercontent.com/Bearsampp/Bearsampp/main/core/resources/quickpick-releases.json'
;
28
33
require_once dirname(__FILE__) .
'/classes/class.root.php'
;
34
$bearsamppRoot
=
new
Root
(dirname(__FILE__));
35
$bearsamppRoot
->register();
36
40
$bearsamppAction
=
new
Action
();
41
$bearsamppAction
->process();
42
46
if
(
$bearsamppRoot
->isRoot()) {
47
Util::stopLoading
();
48
}
49
53
global
$bearsamppLang
;
54
$locale
=
$bearsamppLang
->getValue(
'locale'
);
$bearsamppLang
global $bearsamppLang
Definition
ajax.apache.php:16
$bearsamppRoot
global $bearsamppRoot
Definition
ajax.apache.php:16
Action
Definition
class.action.php:14
Root
Definition
class.root.php:17
Util\stopLoading
static stopLoading()
Definition
class.util.php:944
QUICKPICK_JSON_URL
const QUICKPICK_JSON_URL
Definition
root.php:27
APP_GITHUB_USERAGENT
const APP_GITHUB_USERAGENT
Definition
root.php:18
APP_AUTHOR_NAME
const APP_AUTHOR_NAME
Definition
root.php:12
APP_WEBSITE
const APP_WEBSITE
Definition
root.php:14
$locale
$locale
Definition
root.php:54
APP_GITHUB_USER
const APP_GITHUB_USER
Definition
root.php:16
APP_GITHUB_REPO
const APP_GITHUB_REPO
Definition
root.php:17
QUICKPICK_API_URL
const QUICKPICK_API_URL
Definition
root.php:24
APP_LICENSE
const APP_LICENSE
Definition
root.php:15
APP_GITHUB_LATEST_URL
const APP_GITHUB_LATEST_URL
Definition
root.php:19
QUICKPICK_API_KEY
const QUICKPICK_API_KEY
Definition
root.php:23
RETURN_TAB
const RETURN_TAB
Definition
root.php:20
$bearsamppAction
$bearsamppAction
Definition
root.php:40
APP_TITLE
const APP_TITLE
Definition
root.php:13
Bearsampp-development
sandbox
core
root.php
Generated by
1.14.0