Guest User

Untitled

a guest
Jan 2nd, 2024
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. $RootPath = realpath(__DIR__ . '/../');
  4. require_once __DIR__ . '/../vendor/autoload.php';
  5. require_once __DIR__ . '/language.php';
  6. require_once __DIR__ . '/function.php';
  7. require_once __DIR__ . '/config.php';
  8. require_once __DIR__ . '/database.php';
  9. $db = new MysqliDb(array(
  10. 'host' => $dbhost,
  11. 'username' => $dbuser,
  12. 'password' => $dbpass,
  13. 'db' => $dbname,
  14. 'port' => $dbport,
  15. 'prefix' => $dbprefix,
  16. 'charset' => $dbcharset
  17. ));
  18.  
  19. if (!file_exists($RootPath . '/lock.txt')) {
  20. Redirect('../install');
  21. }
  22. if (APP_HTTPS == 1) {
  23. $wwwurl = 'www.' . BASE_URL;
  24. $httpsurl = 'https://' . BASE_URL;
  25. if ($_SERVER['HTTP_HOST'] == $wwwurl || empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "off") {
  26. header('Location: ' . $httpsurl . $_SERVER['REQUEST_URI'], TRUE, 301);
  27. exit;
  28. }
  29. }
  30. $AmpURL = '';
  31. $schema = array();
  32. $allowExt = array('mp3', 'mid', 'midi', 'aac', 'wav', 'zip', 'rar', 'jpg', 'png', 'gif', 'jpeg', 'webp', 'tar.gz');
  33. $Route = '';
  34. $breadcrumb[] = [
  35. "@type" => "ListItem",
  36. "position" => 1,
  37. "item" => [
  38. "@id" => "" . APP_URL . "",
  39. "name" => "Home"
  40. ]
  41. ];
  42.  
Add Comment
Please, Sign In to add comment