mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-27 22:47:23 +08:00
change default announce to old
This commit is contained in:
@@ -21,7 +21,7 @@ class ExamUserResource extends Resource
|
|||||||
{
|
{
|
||||||
protected static ?string $model = ExamUser::class;
|
protected static ?string $model = ExamUser::class;
|
||||||
|
|
||||||
protected static ?string $navigationIcon = 'heroicon-o-user';
|
protected static ?string $navigationIcon = 'heroicon-o-shield-check';
|
||||||
|
|
||||||
protected static ?string $navigationGroup = 'User';
|
protected static ?string $navigationGroup = 'User';
|
||||||
|
|
||||||
|
|||||||
Generated
+446
-421
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -25,7 +25,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'path' => env('FILAMENT_PATH', 'filament'),
|
'path' => env('FILAMENT_PATH', 'nexusphp'),
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
+1
-1
@@ -70,7 +70,7 @@ foreach ($settings as $name => $value) {
|
|||||||
$SITENAME = $BASIC['SITENAME'];
|
$SITENAME = $BASIC['SITENAME'];
|
||||||
$BASEURL = $BASIC['BASEURL'] ?: ($_SERVER['HTTP_HOST'] ?? '');
|
$BASEURL = $BASIC['BASEURL'] ?: ($_SERVER['HTTP_HOST'] ?? '');
|
||||||
$announce_urls = array();
|
$announce_urls = array();
|
||||||
$announce_urls[] = $BASIC['announce_url'] ?: ($BASEURL . '/api/announce');
|
$announce_urls[] = $BASIC['announce_url'] ?: ($BASEURL . DEFAULT_TRACKER_URI);
|
||||||
|
|
||||||
$SITE_ONLINE = $MAIN['site_online'];
|
$SITE_ONLINE = $MAIN['site_online'];
|
||||||
$max_torrent_size = (int)$MAIN['max_torrent_size'];
|
$max_torrent_size = (int)$MAIN['max_torrent_size'];
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ defined('NEXUSWIKIURL') || define("NEXUSWIKIURL","https://doc.nexusphp.org");
|
|||||||
defined('VERSION') || define("VERSION","Powered by <a href=\"aboutnexus.php\">".PROJECTNAME."</a>");
|
defined('VERSION') || define("VERSION","Powered by <a href=\"aboutnexus.php\">".PROJECTNAME."</a>");
|
||||||
defined('THISTRACKER') || define("THISTRACKER","General");
|
defined('THISTRACKER') || define("THISTRACKER","General");
|
||||||
defined('ROOT_PATH') || define('ROOT_PATH', dirname(__DIR__) . '/');
|
defined('ROOT_PATH') || define('ROOT_PATH', dirname(__DIR__) . '/');
|
||||||
|
defined('DEFAULT_TRACKER_URI') || define('DEFAULT_TRACKER_URI', '/announce.php');
|
||||||
if (!defined('RUNNING_IN_OCTANE')) {
|
if (!defined('RUNNING_IN_OCTANE')) {
|
||||||
$runningInOctane = false;
|
$runningInOctane = false;
|
||||||
foreach (($_SERVER['argv'] ?? []) as $command) {
|
foreach (($_SERVER['argv'] ?? []) as $command) {
|
||||||
|
|||||||
+1
-1
@@ -468,7 +468,7 @@ elseif ($action == 'basicsettings') // basic settings
|
|||||||
print ("<form method='post' action='".$_SERVER["SCRIPT_NAME"]."'><input type='hidden' name='action' value='savesettings_basic'>");
|
print ("<form method='post' action='".$_SERVER["SCRIPT_NAME"]."'><input type='hidden' name='action' value='savesettings_basic'>");
|
||||||
tr($lang_settings['row_site_name'],"<input type='text' style=\"width: 300px\" name=SITENAME value='".($config["SITENAME"] ? $config["SITENAME"]: "Nexus")."'> ".$lang_settings['text_site_name_note'], 1);
|
tr($lang_settings['row_site_name'],"<input type='text' style=\"width: 300px\" name=SITENAME value='".($config["SITENAME"] ? $config["SITENAME"]: "Nexus")."'> ".$lang_settings['text_site_name_note'], 1);
|
||||||
tr($lang_settings['row_base_url'],"<input type='text' style=\"width: 300px\" name=BASEURL value='".($config["BASEURL"] ? $config["BASEURL"] : $_SERVER["HTTP_HOST"])."'> ".$lang_settings['text_it_should_be'] . $_SERVER["HTTP_HOST"] . $lang_settings['text_base_url_note'], 1);
|
tr($lang_settings['row_base_url'],"<input type='text' style=\"width: 300px\" name=BASEURL value='".($config["BASEURL"] ? $config["BASEURL"] : $_SERVER["HTTP_HOST"])."'> ".$lang_settings['text_it_should_be'] . $_SERVER["HTTP_HOST"] . $lang_settings['text_base_url_note'], 1);
|
||||||
tr($lang_settings['row_announce_url'],"<input type='text' style=\"width: 300px\" name=announce_url value='".($config["announce_url"] ? $config["announce_url"] : $_SERVER["HTTP_HOST"]."/api/announce")."'> ".$lang_settings['text_it_should_be'] . $_SERVER["HTTP_HOST"]."/api/announce", 1);
|
tr($lang_settings['row_announce_url'],"<input type='text' style=\"width: 300px\" name=announce_url value='".($config["announce_url"] ? $config["announce_url"] : $_SERVER["HTTP_HOST"].DEFAULT_TRACKER_URI)."'> ".$lang_settings['text_it_should_be'] . $_SERVER["HTTP_HOST"].DEFAULT_TRACKER_URI, 1);
|
||||||
// tr($lang_settings['row_mysql_host'],"<input type='text' style=\"width: 300px\" name=mysql_host value='".($config["mysql_host"] ? $config["mysql_host"] : "localhost")."'> ".$lang_settings['text_mysql_host_note'], 1);
|
// tr($lang_settings['row_mysql_host'],"<input type='text' style=\"width: 300px\" name=mysql_host value='".($config["mysql_host"] ? $config["mysql_host"] : "localhost")."'> ".$lang_settings['text_mysql_host_note'], 1);
|
||||||
// tr($lang_settings['row_mysql_user'],"<input type='text' style=\"width: 300px\" name=mysql_user value='".($config["mysql_user"] ? $config["mysql_user"] : "root")."'> ".$lang_settings['text_mysql_user_note'], 1);
|
// tr($lang_settings['row_mysql_user'],"<input type='text' style=\"width: 300px\" name=mysql_user value='".($config["mysql_user"] ? $config["mysql_user"] : "root")."'> ".$lang_settings['text_mysql_user_note'], 1);
|
||||||
// tr($lang_settings['row_mysql_password'],"<input type='password' style=\"width: 300px\" name=mysql_pass value=''> ".$lang_settings['text_mysql_password_note'], 1);
|
// tr($lang_settings['row_mysql_password'],"<input type='password' style=\"width: 300px\" name=mysql_pass value=''> ".$lang_settings['text_mysql_password_note'], 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user