Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- $RootPath = realpath(__DIR__ . '/../');
- require_once __DIR__ . '/../vendor/autoload.php';
- require_once __DIR__ . '/language.php';
- require_once __DIR__ . '/function.php';
- require_once __DIR__ . '/config.php';
- require_once __DIR__ . '/database.php';
- $db = new MysqliDb(array(
- 'host' => $dbhost,
- 'username' => $dbuser,
- 'password' => $dbpass,
- 'db' => $dbname,
- 'port' => $dbport,
- 'prefix' => $dbprefix,
- 'charset' => $dbcharset
- ));
- if (!file_exists($RootPath . '/lock.txt')) {
- Redirect('../install');
- }
- if (APP_HTTPS == 1) {
- $wwwurl = 'www.' . BASE_URL;
- $httpsurl = 'https://' . BASE_URL;
- if ($_SERVER['HTTP_HOST'] == $wwwurl || empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "off") {
- header('Location: ' . $httpsurl . $_SERVER['REQUEST_URI'], TRUE, 301);
- exit;
- }
- }
- $AmpURL = '';
- $schema = array();
- $allowExt = array('mp3', 'mid', 'midi', 'aac', 'wav', 'zip', 'rar', 'jpg', 'png', 'gif', 'jpeg', 'webp', 'tar.gz');
- $Route = '';
- $breadcrumb[] = [
- "@type" => "ListItem",
- "position" => 1,
- "item" => [
- "@id" => "" . APP_URL . "",
- "name" => "Home"
- ]
- ];
Add Comment
Please, Sign In to add comment