mirror of
https://github.com/torrentpier/torrentpier.git
synced 2025-02-02 08:12:52 -08:00
bf7fea1f20
* Added demo mode 📺
* Updated
* Update main.php
* Updated
* Updated
* Update admin_cron.php
* Update admin_phpinfo.php
* Updated
* Update admin_forums.php
* Update admin_extensions.php
* Update admin_ug_auth.php
* Update index.php
* Update admin_phpinfo.php
* Update admin_forums.php
* Updated
* Update admin_extensions.php
* Update register.php
* Updated
* Update mysql.sql
* Updated
* Update demo_mode.php
* Update demo_mode.php
* Update demo_mode.php
* Updated
* Update demo_mode.php
* Update demo_mode.php
* Update demo_mode.php
* Update demo_mode.php
* Update mysql.sql
* Update mysql.sql
* Update demo_mode.php
* Update admin_cron.php
* Update admin_phpinfo.php
* Revert "Update mysql.sql"
This reverts commit d2ec089d8f4e47572dcf6b296f11ef86234ca75d.
* Revert "Update mysql.sql"
This reverts commit dd7a584c47510cd604ad8557186cebc090a99699.
* Update mysql.sql
* Update demo_mode.php
* Updated
* Update usercp_viewprofile.tpl
* Update demo_mode.php
* Update main.php
* Update demo_mode.php
* Updated
* Update admin_cron.php
* Update admin_cron.php
* Update edit_user_profile.php
* Update CHANGELOG.md
* Update viewtopic.tpl
* Update CHANGELOG.md
30 lines
729 B
PHP
30 lines
729 B
PHP
<?php
|
||
/**
|
||
* TorrentPier – Bull-powered BitTorrent tracker engine
|
||
*
|
||
* @copyright Copyright (c) 2005-2024 TorrentPier (https://torrentpier.com)
|
||
* @link https://github.com/torrentpier/torrentpier for the canonical source repository
|
||
* @license https://github.com/torrentpier/torrentpier/blob/master/LICENSE MIT License
|
||
*/
|
||
|
||
if (!empty($setmodules)) {
|
||
if (IS_SUPER_ADMIN) {
|
||
$module['GENERAL']['PHP_INFO'] = basename(__FILE__);
|
||
}
|
||
return;
|
||
}
|
||
|
||
require __DIR__ . '/pagestart.php';
|
||
|
||
if (!IS_SUPER_ADMIN) {
|
||
bb_die($lang['ONLY_FOR_SUPER_ADMIN']);
|
||
}
|
||
|
||
// Check for demo mode
|
||
if (IN_DEMO_MODE) {
|
||
bb_die($lang['CANT_EDIT_IN_DEMO_MODE']);
|
||
}
|
||
|
||
/** @noinspection ForgottenDebugOutputInspection */
|
||
phpinfo();
|