diff --git a/database/seeders/ModpanelTableSeeder.php b/database/seeders/ModpanelTableSeeder.php index c46f7b8e..3fb39af0 100644 --- a/database/seeders/ModpanelTableSeeder.php +++ b/database/seeders/ModpanelTableSeeder.php @@ -68,13 +68,13 @@ class ModpanelTableSeeder extends Seeder 'url' => 'testip.php', 'info' => 'Test if IP is banned', ), - 7 => - array ( - 'id' => 8, - 'name' => 'Add Bonus Points', - 'url' => 'amountbonus.php', - 'info' => 'Add Bonus Points to one or All Users.', - ), +// 7 => +// array ( +// 'id' => 8, +// 'name' => 'Add Bonus Points', +// 'url' => 'amountbonus.php', +// 'info' => 'Add Bonus Points to one or All Users.', +// ), 8 => array ( 'id' => 9, diff --git a/database/seeders/SysoppanelTableSeeder.php b/database/seeders/SysoppanelTableSeeder.php index 832787de..85792c80 100644 --- a/database/seeders/SysoppanelTableSeeder.php +++ b/database/seeders/SysoppanelTableSeeder.php @@ -14,97 +14,97 @@ class SysoppanelTableSeeder extends Seeder */ public function run() { - + \DB::table('sysoppanel')->delete(); - + \DB::table('sysoppanel')->insert(array ( - 0 => - array ( - 'id' => 1, - 'name' => 'Delete disabled users', - 'url' => 'deletedisabled.php', - 'info' => 'Delete all disabled users', - ), - 1 => +// 0 => +// array ( +// 'id' => 1, +// 'name' => 'Delete disabled users', +// 'url' => 'deletedisabled.php', +// 'info' => 'Delete all disabled users', +// ), + 1 => array ( 'id' => 2, 'name' => 'Manage tracker forum', 'url' => 'forummanage.php', 'info' => 'Edit/Delete forum', ), - 2 => + 2 => array ( 'id' => 3, 'name' => 'MySQL Stats', 'url' => 'mysql_stats.php', 'info' => 'See MySql stats', ), - 3 => + 3 => array ( 'id' => 4, 'name' => 'Mass mailer', 'url' => 'massmail.php', 'info' => 'Send e-mail to all users on the tracker', ), - 4 => + 4 => array ( 'id' => 5, 'name' => 'Do cleanup', 'url' => 'docleanup.php', 'info' => 'Do cleanup functions', ), - 5 => + 5 => array ( 'id' => 6, 'name' => 'Ban System', 'url' => 'bans.php', 'info' => 'Ban / Unban IP', ), - 6 => + 6 => array ( 'id' => 7, 'name' => 'Failed Logins', 'url' => 'maxlogin.php', 'info' => 'Show Failed Login Attempts', ), - 7 => + 7 => array ( 'id' => 8, 'name' => 'Bitbucket', 'url' => 'bitbucketlog.php', 'info' => 'Bitbucket Log', ), - 8 => + 8 => array ( 'id' => 9, 'name' => 'Ban EMAIL address', 'url' => 'bannedemails.php', 'info' => 'Ban EMAILs stop registration.', ), - 9 => + 9 => array ( 'id' => 10, 'name' => 'Allow EMAIL address', 'url' => 'allowedemails.php', 'info' => 'Allow EMAIL registration.', ), - 10 => + 10 => array ( 'id' => 11, 'name' => 'Location', 'url' => 'location.php', 'info' => 'Manage location and location speed', ), - 11 => + 11 => array ( 'id' => 12, - 'name' => 'Add Upload', - 'url' => 'amountupload.php', - 'info' => 'Add upload to certain classes', + 'name' => 'Add Bonus/Attend card/Invite/upload', + 'url' => 'increment-bulk.php', + 'info' => 'Add Bonus/Attend card/Invite/upload to certain classes', ), )); - - + + } -} \ No newline at end of file +} diff --git a/include/globalfunctions.php b/include/globalfunctions.php index 972c79dc..75f2f007 100644 --- a/include/globalfunctions.php +++ b/include/globalfunctions.php @@ -229,8 +229,14 @@ function getLogFile() return $logFile; } $config = nexus_config('nexus'); - $logFile = sys_get_temp_dir() . '/nexus_' . date('Y-m-d') . '.log'; - if (!empty($config['log_file'])) { + $path = getenv('NEXUS_LOG_DIR', true); + $fromEnv = true; + if ($path === false) { + $fromEnv = false; + $path = sys_get_temp_dir(); + } + $logFile = rtrim($path, '/') . '/nexus_' . date('Y-m-d') . '.log'; + if (!$fromEnv && !empty($config['log_file'])) { $logFile = $config['log_file']; } $lastDotPos = strrpos($logFile, '.');