mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Merge tmux settings into settings table
This commit is contained in:
+6
-5
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace Blacklight;
|
||||
|
||||
use App\Models\Settings;
|
||||
use Blacklight\db\DB;
|
||||
use App\Models\Category;
|
||||
use App\Extensions\util\Versions;
|
||||
@@ -581,12 +582,12 @@ class Tmux
|
||||
*/
|
||||
public function isRunning(): bool
|
||||
{
|
||||
$running = $this->get()->running;
|
||||
if ($running === false) {
|
||||
$running = Settings::query()->where(['section' => 'site', 'subsection' => 'tmux', 'setting' => 'running'])->first(['value']);
|
||||
if ($running === null) {
|
||||
throw new \RuntimeException('Tmux\\\'s running flag was not found in the database.'.PHP_EOL.'Please check the tables are correctly setup.'.PHP_EOL);
|
||||
}
|
||||
|
||||
return ! ((int) $running === 0);
|
||||
return ! ((int) $running->value === 0);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -598,7 +599,7 @@ class Tmux
|
||||
public function stopIfRunning(): bool
|
||||
{
|
||||
if ($this->isRunning() === true) {
|
||||
TmuxModel::query()->where('setting', '=', 'running')->update(['value' => 0]);
|
||||
Settings::query()->where(['section' => 'site', 'subsection' => 'tmux', 'setting' => 'running'])->update(['value' => 0]);
|
||||
$sleep = $this->get()->monitor_delay;
|
||||
ColorCLI::doEcho(ColorCLI::header('Stopping tmux scripts and waiting '.$sleep.' seconds for all panes to shutdown'), true);
|
||||
sleep($sleep);
|
||||
@@ -616,7 +617,7 @@ class Tmux
|
||||
public function startRunning(): void
|
||||
{
|
||||
if ($this->isRunning() === false) {
|
||||
TmuxModel::query()->where('setting', '=', 'running')->update(['value' => 1]);
|
||||
Settings::query()->where(['section' => 'site', 'subsection' => 'tmux', 'setting' => 'running'])->update(['value' => 1]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -403,9 +403,9 @@ class Forking extends \fork_daemon
|
||||
{
|
||||
$this->register_child_run([0 => $this, 1 => 'safeBackfillChildWorker']);
|
||||
|
||||
$backfill_qty = Tmux::value('backfill_qty');
|
||||
$backfill_order = Tmux::value('backfill_order');
|
||||
$backfill_days = Tmux::value('backfill_days');
|
||||
$backfill_qty = Settings::settingValue('site.tmux.backfill_qty');
|
||||
$backfill_order = Settings::settingValue('site.tmux.backfill_order');
|
||||
$backfill_days = Settings::settingValue('site.tmux.backfill_days');
|
||||
$maxmssgs = Settings::settingValue('maxmssgs');
|
||||
$threads = Settings::settingValue('..backfillthreads');
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
2018-02-19 DariusIII
|
||||
* Chg: Merge tmux settings into settings table
|
||||
* Chg: Move web and cli settings from settings to .env file (settings.php will be obsoleted very soon)
|
||||
2018-02-17 DariusIII
|
||||
* Chg: Update ColorCLI class
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Models\Settings;
|
||||
use App\Models\Tmux;
|
||||
use Illuminate\Console\Command;
|
||||
use Symfony\Component\Process\Process;
|
||||
@@ -58,7 +59,7 @@ class TmuxUIStop extends Command
|
||||
);
|
||||
|
||||
if ($this->argument('type') === 'true') {
|
||||
$sessionName = Tmux::value('tmux_session');
|
||||
$sessionName = Settings::settingValue('site.tmux.tmux_session');
|
||||
$tmuxSession = new Process('tmux kill-session -t '.$sessionName);
|
||||
$this->info('Killing active tmux session: '.$sessionName);
|
||||
$tmuxSession->run(
|
||||
|
||||
@@ -24,12 +24,14 @@ use Blacklight\utility\Utility;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Yadakhov\InsertOnDuplicateKey;
|
||||
|
||||
/**
|
||||
* Settings - model for settings table.
|
||||
*/
|
||||
class Settings extends Model
|
||||
{
|
||||
use InsertOnDuplicateKey;
|
||||
public const REGISTER_STATUS_OPEN = 0;
|
||||
|
||||
public const REGISTER_STATUS_INVITE = 1;
|
||||
|
||||
Generated
+6
-6
@@ -4630,12 +4630,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Roave/SecurityAdvisories.git",
|
||||
"reference": "adf65120a84d3adb371ba32150cdc320aa659f77"
|
||||
"reference": "94230db36bded9d164ffccabcb38c67eedd63595"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/adf65120a84d3adb371ba32150cdc320aa659f77",
|
||||
"reference": "adf65120a84d3adb371ba32150cdc320aa659f77",
|
||||
"url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/94230db36bded9d164ffccabcb38c67eedd63595",
|
||||
"reference": "94230db36bded9d164ffccabcb38c67eedd63595",
|
||||
"shasum": ""
|
||||
},
|
||||
"conflict": {
|
||||
@@ -4727,9 +4727,9 @@
|
||||
"typo3/neos": ">=1.1,<1.1.3|>=1.2,<1.2.13|>=2,<2.0.4",
|
||||
"willdurand/js-translation-bundle": "<2.1.1",
|
||||
"yiisoft/yii": ">=1.1.14,<1.1.15",
|
||||
"yiisoft/yii2": "<2.0.5",
|
||||
"yiisoft/yii2": "<2.0.14",
|
||||
"yiisoft/yii2-bootstrap": "<2.0.4",
|
||||
"yiisoft/yii2-dev": "<2.0.4",
|
||||
"yiisoft/yii2-dev": "<2.0.14",
|
||||
"yiisoft/yii2-gii": "<2.0.4",
|
||||
"yiisoft/yii2-jui": "<2.0.4",
|
||||
"zendframework/zend-cache": ">=2.4,<2.4.8|>=2.5,<2.5.3",
|
||||
@@ -4769,7 +4769,7 @@
|
||||
}
|
||||
],
|
||||
"description": "Prevents installation of composer packages with known security vulnerabilities: no API, simply require it",
|
||||
"time": "2018-02-19T07:06:43+00:00"
|
||||
"time": "2018-02-19T09:31:21+00:00"
|
||||
},
|
||||
{
|
||||
"name": "rtheunissen/guzzle-log-middleware",
|
||||
|
||||
@@ -501,7 +501,7 @@ return [
|
||||
'section' => '',
|
||||
'subsection' => '',
|
||||
'name' => 'nzbpath',
|
||||
'value' => '/var/www/NNTmux/resources/nzb/',
|
||||
'value' => '/home/darius/PhpstormProjects/newznab-tmux/resources/nzb/',
|
||||
'hint' => 'The directory where nzb files will be stored.',
|
||||
'setting' => 'nzbpath',
|
||||
],
|
||||
@@ -757,7 +757,7 @@ return [
|
||||
'section' => '',
|
||||
'subsection' => '',
|
||||
'name' => 'sqlpatch',
|
||||
'value' => '336',
|
||||
'value' => '343',
|
||||
'hint' => '',
|
||||
'setting' => 'sqlpatch',
|
||||
],
|
||||
@@ -781,7 +781,7 @@ return [
|
||||
'section' => '',
|
||||
'subsection' => '',
|
||||
'name' => 'tmpunrarpath',
|
||||
'value' => '/var/www/NNTmux/resources/tmp/unrar/',
|
||||
'value' => '/home/darius/PhpstormProjects/newznab-tmux/resources/tmp/unrar/',
|
||||
'hint' => 'The path to where unrar puts files. WARNING: This directory will have its contents deleted.<br/>Use forward slashes in windows c:/temp/path/stuff/will/be/unpacked/to',
|
||||
'setting' => 'tmpunrarpath',
|
||||
],
|
||||
@@ -1142,7 +1142,7 @@ Default: %Y-%m-%d %T',
|
||||
'section' => 'site',
|
||||
'subsection' => 'main',
|
||||
'name' => 'coverspath',
|
||||
'value' => '/var/www/NNTmux/resources/covers/',
|
||||
'value' => '/home/darius/PhpstormProjects/newznab-tmux/resources/covers/',
|
||||
'hint' => 'The absolute path to the place covers will be stored.',
|
||||
'setting' => 'coverspath',
|
||||
],
|
||||
@@ -1267,6 +1267,606 @@ Default: %Y-%m-%d %T',
|
||||
'setting' => 'userselstyle',
|
||||
],
|
||||
158 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'back_timer',
|
||||
'value' => '30',
|
||||
'hint' => '',
|
||||
'setting' => 'back_timer',
|
||||
],
|
||||
159 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'backfill',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'backfill',
|
||||
],
|
||||
160 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'backfill_days',
|
||||
'value' => '1',
|
||||
'hint' => '',
|
||||
'setting' => 'backfill_days',
|
||||
],
|
||||
161 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'backfill_groups',
|
||||
'value' => '4',
|
||||
'hint' => '',
|
||||
'setting' => 'backfill_groups',
|
||||
],
|
||||
162 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'backfill_order',
|
||||
'value' => '2',
|
||||
'hint' => '',
|
||||
'setting' => 'backfill_order',
|
||||
],
|
||||
163 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'backfill_qty',
|
||||
'value' => '100000',
|
||||
'hint' => '',
|
||||
'setting' => 'backfill_qty',
|
||||
],
|
||||
164 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'binaries',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'binaries',
|
||||
],
|
||||
165 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'bins_kill_timer',
|
||||
'value' => '1',
|
||||
'hint' => '',
|
||||
'setting' => 'bins_kill_timer',
|
||||
],
|
||||
166 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'bins_timer',
|
||||
'value' => '30',
|
||||
'hint' => '',
|
||||
'setting' => 'bins_timer',
|
||||
],
|
||||
167 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'bwmng',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'bwmng',
|
||||
],
|
||||
168 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'collections_kill',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'collections_kill',
|
||||
],
|
||||
169 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'colors',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'colors',
|
||||
],
|
||||
170 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'colors_end',
|
||||
'value' => '250',
|
||||
'hint' => '',
|
||||
'setting' => 'colors_end',
|
||||
],
|
||||
171 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'colors_exc',
|
||||
'value' => '4, 8, 9, 11, 15, 16, 17, 18, 19, 46, 47, 48, 49, 50, 51, 52, 53, 59, 60',
|
||||
'hint' => '',
|
||||
'setting' => 'colors_exc',
|
||||
],
|
||||
172 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'colors_start',
|
||||
'value' => '1',
|
||||
'hint' => '',
|
||||
'setting' => 'colors_start',
|
||||
],
|
||||
173 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'console',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'console',
|
||||
],
|
||||
174 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'crap_timer',
|
||||
'value' => '30',
|
||||
'hint' => '',
|
||||
'setting' => 'crap_timer',
|
||||
],
|
||||
175 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'defrag_cache',
|
||||
'value' => '900',
|
||||
'hint' => '',
|
||||
'setting' => 'defrag_cache',
|
||||
],
|
||||
176 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'dehash',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'dehash',
|
||||
],
|
||||
177 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'dehash_timer',
|
||||
'value' => '30',
|
||||
'hint' => '',
|
||||
'setting' => 'dehash_timer',
|
||||
],
|
||||
178 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'fix_crap',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'fix_crap',
|
||||
],
|
||||
179 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'fix_crap_opt',
|
||||
'value' => 'Disabled',
|
||||
'hint' => '',
|
||||
'setting' => 'fix_crap_opt',
|
||||
],
|
||||
180 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'fix_names',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'fix_names',
|
||||
],
|
||||
181 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'fix_timer',
|
||||
'value' => '30',
|
||||
'hint' => '',
|
||||
'setting' => 'fix_timer',
|
||||
],
|
||||
182 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'htop',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'htop',
|
||||
],
|
||||
183 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'import',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'import',
|
||||
],
|
||||
184 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'import_bulk',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'import_bulk',
|
||||
],
|
||||
185 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'import_count',
|
||||
'value' => '50000',
|
||||
'hint' => '',
|
||||
'setting' => 'import_count',
|
||||
],
|
||||
186 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'import_timer',
|
||||
'value' => '30',
|
||||
'hint' => '',
|
||||
'setting' => 'import_timer',
|
||||
],
|
||||
187 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'monitor_delay',
|
||||
'value' => '300',
|
||||
'hint' => '',
|
||||
'setting' => 'monitor_delay',
|
||||
],
|
||||
188 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'monitor_path',
|
||||
'value' => 'NULL',
|
||||
'hint' => '',
|
||||
'setting' => 'monitor_path',
|
||||
],
|
||||
189 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'monitor_path_a',
|
||||
'value' => 'NULL',
|
||||
'hint' => '',
|
||||
'setting' => 'monitor_path_a',
|
||||
],
|
||||
190 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'monitor_path_b',
|
||||
'value' => 'NULL',
|
||||
'hint' => '',
|
||||
'setting' => 'monitor_path_b',
|
||||
],
|
||||
191 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'mytop',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'mytop',
|
||||
],
|
||||
192 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'nfos',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'nfos',
|
||||
],
|
||||
193 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'niceness',
|
||||
'value' => '19',
|
||||
'hint' => '',
|
||||
'setting' => 'niceness',
|
||||
],
|
||||
194 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'nmon',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'nmon',
|
||||
],
|
||||
195 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'nzbs',
|
||||
'value' => '/path/to/nzbs',
|
||||
'hint' => '',
|
||||
'setting' => 'nzbs',
|
||||
],
|
||||
196 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'optimize',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'optimize',
|
||||
],
|
||||
197 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'optimize_timer',
|
||||
'value' => '86400',
|
||||
'hint' => '',
|
||||
'setting' => 'optimize_timer',
|
||||
],
|
||||
198 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'patchdb',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'patchdb',
|
||||
],
|
||||
199 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'patchdb_timer',
|
||||
'value' => '21600',
|
||||
'hint' => '',
|
||||
'setting' => 'patchdb_timer',
|
||||
],
|
||||
200 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'post',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'post',
|
||||
],
|
||||
201 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'post_amazon',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'post_amazon',
|
||||
],
|
||||
202 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'post_kill_timer',
|
||||
'value' => '300',
|
||||
'hint' => '',
|
||||
'setting' => 'post_kill_timer',
|
||||
],
|
||||
203 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'post_non',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'post_non',
|
||||
],
|
||||
204 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'post_timer',
|
||||
'value' => '30',
|
||||
'hint' => '',
|
||||
'setting' => 'post_timer',
|
||||
],
|
||||
205 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'post_timer_amazon',
|
||||
'value' => '30',
|
||||
'hint' => '',
|
||||
'setting' => 'post_timer_amazon',
|
||||
],
|
||||
206 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'post_timer_non',
|
||||
'value' => '30',
|
||||
'hint' => '',
|
||||
'setting' => 'post_timer_non',
|
||||
],
|
||||
207 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'postprocess_kill',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'postprocess_kill',
|
||||
],
|
||||
208 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'powerline',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'powerline',
|
||||
],
|
||||
209 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'processupdate',
|
||||
'value' => '2',
|
||||
'hint' => '',
|
||||
'setting' => 'processupdate',
|
||||
],
|
||||
210 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'progressive',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'progressive',
|
||||
],
|
||||
211 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'redis',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'redis',
|
||||
],
|
||||
212 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'rel_timer',
|
||||
'value' => '30',
|
||||
'hint' => '',
|
||||
'setting' => 'rel_timer',
|
||||
],
|
||||
213 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'releases',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'releases',
|
||||
],
|
||||
214 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'releases_threaded',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'releases_threaded',
|
||||
],
|
||||
215 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'run_ircscraper',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'run_ircscraper',
|
||||
],
|
||||
216 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'run_sharing',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'run_sharing',
|
||||
],
|
||||
217 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'running',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'running',
|
||||
],
|
||||
218 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'seq_timer',
|
||||
'value' => '30',
|
||||
'hint' => '',
|
||||
'setting' => 'seq_timer',
|
||||
],
|
||||
219 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'sequential',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'sequential',
|
||||
],
|
||||
220 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'sharing_timer',
|
||||
'value' => '60',
|
||||
'hint' => '',
|
||||
'setting' => 'sharing_timer',
|
||||
],
|
||||
221 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'showprocesslist',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'showprocesslist',
|
||||
],
|
||||
222 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'showquery',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'showquery',
|
||||
],
|
||||
223 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'sorter',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'sorter',
|
||||
],
|
||||
224 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'sorter_timer',
|
||||
'value' => '30',
|
||||
'hint' => '',
|
||||
'setting' => 'sorter_timer',
|
||||
],
|
||||
225 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'tcptrack',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'tcptrack',
|
||||
],
|
||||
226 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'tcptrack_args',
|
||||
'value' => '-i eth0 port 443',
|
||||
'hint' => '',
|
||||
'setting' => 'tcptrack_args',
|
||||
],
|
||||
227 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'tmux_session',
|
||||
'value' => 'nntmux',
|
||||
'hint' => '',
|
||||
'setting' => 'tmux_session',
|
||||
],
|
||||
228 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'tv_timer',
|
||||
'value' => '43200',
|
||||
'hint' => '',
|
||||
'setting' => 'tv_timer',
|
||||
],
|
||||
229 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'update_tv',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'update_tv',
|
||||
],
|
||||
230 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'vnstat',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'vnstat',
|
||||
],
|
||||
231 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'vnstat_args',
|
||||
'value' => 'NULL',
|
||||
'hint' => '',
|
||||
'setting' => 'vnstat_args',
|
||||
],
|
||||
232 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => 'write_logs',
|
||||
'value' => '0',
|
||||
'hint' => '',
|
||||
'setting' => 'write_logs',
|
||||
],
|
||||
233 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'trailers',
|
||||
'name' => 'trailers_display',
|
||||
@@ -1274,7 +1874,7 @@ Default: %Y-%m-%d %T',
|
||||
'hint' => 'Display trailers on the details page?',
|
||||
'setting' => 'trailers_display',
|
||||
],
|
||||
159 => [
|
||||
234 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'trailers',
|
||||
'name' => 'trailers_size_x',
|
||||
@@ -1282,7 +1882,7 @@ Default: %Y-%m-%d %T',
|
||||
'hint' => 'Width of the displayed trailer. 480 by default.',
|
||||
'setting' => 'trailers_size_x',
|
||||
],
|
||||
160 => [
|
||||
235 => [
|
||||
'section' => 'site',
|
||||
'subsection' => 'trailers',
|
||||
'name' => 'trailers_size_y',
|
||||
@@ -1290,7 +1890,7 @@ Default: %Y-%m-%d %T',
|
||||
'hint' => 'Height of the displayed trailer. 345 by default.',
|
||||
'setting' => 'trailers_size_y',
|
||||
],
|
||||
161 => [
|
||||
236 => [
|
||||
'section' => 'tmux',
|
||||
'subsection' => 'running',
|
||||
'name' => 'exit',
|
||||
|
||||
@@ -1,460 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
0 => [
|
||||
'id' => 1,
|
||||
'setting' => 'defrag_cache',
|
||||
'value' => '900',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
1 => [
|
||||
'id' => 2,
|
||||
'setting' => 'monitor_delay',
|
||||
'value' => '300',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
2 => [
|
||||
'id' => 3,
|
||||
'setting' => 'tmux_session',
|
||||
'value' => 'nntmux',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
3 => [
|
||||
'id' => 4,
|
||||
'setting' => 'niceness',
|
||||
'value' => '19',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
4 => [
|
||||
'id' => 5,
|
||||
'setting' => 'binaries',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
5 => [
|
||||
'id' => 6,
|
||||
'setting' => 'backfill',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
6 => [
|
||||
'id' => 7,
|
||||
'setting' => 'import',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
7 => [
|
||||
'id' => 8,
|
||||
'setting' => 'nzbs',
|
||||
'value' => '/path/to/nzbs',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
8 => [
|
||||
'id' => 9,
|
||||
'setting' => 'running',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
9 => [
|
||||
'id' => 10,
|
||||
'setting' => 'sequential',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
10 => [
|
||||
'id' => 11,
|
||||
'setting' => 'nfos',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
11 => [
|
||||
'id' => 12,
|
||||
'setting' => 'post',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
12 => [
|
||||
'id' => 13,
|
||||
'setting' => 'releases',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
13 => [
|
||||
'id' => 14,
|
||||
'setting' => 'releases_threaded',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
14 => [
|
||||
'id' => 15,
|
||||
'setting' => 'fix_names',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
15 => [
|
||||
'id' => 16,
|
||||
'setting' => 'seq_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
16 => [
|
||||
'id' => 17,
|
||||
'setting' => 'bins_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
17 => [
|
||||
'id' => 18,
|
||||
'setting' => 'bins_kill_timer',
|
||||
'value' => '1',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
18 => [
|
||||
'id' => 19,
|
||||
'setting' => 'back_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
19 => [
|
||||
'id' => 20,
|
||||
'setting' => 'import_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
20 => [
|
||||
'id' => 21,
|
||||
'setting' => 'rel_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
21 => [
|
||||
'id' => 22,
|
||||
'setting' => 'fix_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
22 => [
|
||||
'id' => 23,
|
||||
'setting' => 'post_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
23 => [
|
||||
'id' => 24,
|
||||
'setting' => 'import_bulk',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
24 => [
|
||||
'id' => 25,
|
||||
'setting' => 'backfill_qty',
|
||||
'value' => '100000',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
25 => [
|
||||
'id' => 26,
|
||||
'setting' => 'collections_kill',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
26 => [
|
||||
'id' => 27,
|
||||
'setting' => 'postprocess_kill',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
27 => [
|
||||
'id' => 28,
|
||||
'setting' => 'crap_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
28 => [
|
||||
'id' => 29,
|
||||
'setting' => 'fix_crap',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
29 => [
|
||||
'id' => 30,
|
||||
'setting' => 'tv_timer',
|
||||
'value' => '43200',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
30 => [
|
||||
'id' => 31,
|
||||
'setting' => 'update_tv',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
31 => [
|
||||
'id' => 32,
|
||||
'setting' => 'htop',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
32 => [
|
||||
'id' => 33,
|
||||
'setting' => 'nmon',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
33 => [
|
||||
'id' => 34,
|
||||
'setting' => 'bwmng',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
34 => [
|
||||
'id' => 35,
|
||||
'setting' => 'mytop',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
35 => [
|
||||
'id' => 36,
|
||||
'setting' => 'console',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
36 => [
|
||||
'id' => 37,
|
||||
'setting' => 'vnstat',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
37 => [
|
||||
'id' => 38,
|
||||
'setting' => 'vnstat_args',
|
||||
'value' => 'NULL',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
38 => [
|
||||
'id' => 39,
|
||||
'setting' => 'tcptrack',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
39 => [
|
||||
'id' => 40,
|
||||
'setting' => 'tcptrack_args',
|
||||
'value' => '-i eth0 port 443',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
40 => [
|
||||
'id' => 41,
|
||||
'setting' => 'backfill_groups',
|
||||
'value' => '4',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
41 => [
|
||||
'id' => 42,
|
||||
'setting' => 'post_kill_timer',
|
||||
'value' => '300',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
42 => [
|
||||
'id' => 43,
|
||||
'setting' => 'optimize',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
43 => [
|
||||
'id' => 44,
|
||||
'setting' => 'optimize_timer',
|
||||
'value' => '86400',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
44 => [
|
||||
'id' => 45,
|
||||
'setting' => 'monitor_path',
|
||||
'value' => 'NULL',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
45 => [
|
||||
'id' => 46,
|
||||
'setting' => 'write_logs',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
46 => [
|
||||
'id' => 47,
|
||||
'setting' => 'sorter',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
47 => [
|
||||
'id' => 48,
|
||||
'setting' => 'sorter_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
48 => [
|
||||
'id' => 49,
|
||||
'setting' => 'powerline',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
49 => [
|
||||
'id' => 50,
|
||||
'setting' => 'patchdb',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
50 => [
|
||||
'id' => 51,
|
||||
'setting' => 'patchdb_timer',
|
||||
'value' => '21600',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
51 => [
|
||||
'id' => 52,
|
||||
'setting' => 'progressive',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
52 => [
|
||||
'id' => 53,
|
||||
'setting' => 'dehash',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
53 => [
|
||||
'id' => 54,
|
||||
'setting' => 'dehash_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
54 => [
|
||||
'id' => 55,
|
||||
'setting' => 'backfill_order',
|
||||
'value' => '2',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
55 => [
|
||||
'id' => 56,
|
||||
'setting' => 'backfill_days',
|
||||
'value' => '1',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
56 => [
|
||||
'id' => 57,
|
||||
'setting' => 'post_amazon',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
57 => [
|
||||
'id' => 58,
|
||||
'setting' => 'post_non',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
58 => [
|
||||
'id' => 59,
|
||||
'setting' => 'post_timer_amazon',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
59 => [
|
||||
'id' => 60,
|
||||
'setting' => 'post_timer_non',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
60 => [
|
||||
'id' => 61,
|
||||
'setting' => 'colors_start',
|
||||
'value' => '1',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
61 => [
|
||||
'id' => 62,
|
||||
'setting' => 'colors_end',
|
||||
'value' => '250',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
62 => [
|
||||
'id' => 63,
|
||||
'setting' => 'colors_exc',
|
||||
'value' => '4, 8, 9, 11, 15, 16, 17, 18, 19, 46, 47, 48, 49, 50, 51, 52, 53, 59, 60',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
63 => [
|
||||
'id' => 64,
|
||||
'setting' => 'monitor_path_a',
|
||||
'value' => 'NULL',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
64 => [
|
||||
'id' => 65,
|
||||
'setting' => 'monitor_path_b',
|
||||
'value' => 'NULL',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
65 => [
|
||||
'id' => 66,
|
||||
'setting' => 'colors',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
66 => [
|
||||
'id' => 67,
|
||||
'setting' => 'showquery',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
67 => [
|
||||
'id' => 68,
|
||||
'setting' => 'fix_crap_opt',
|
||||
'value' => 'Disabled',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
68 => [
|
||||
'id' => 69,
|
||||
'setting' => 'showprocesslist',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
69 => [
|
||||
'id' => 70,
|
||||
'setting' => 'processupdate',
|
||||
'value' => '2',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
70 => [
|
||||
'id' => 71,
|
||||
'setting' => 'run_ircscraper',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
71 => [
|
||||
'id' => 72,
|
||||
'setting' => 'run_sharing',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
72 => [
|
||||
'id' => 73,
|
||||
'setting' => 'sharing_timer',
|
||||
'value' => '60',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
73 => [
|
||||
'id' => 74,
|
||||
'setting' => 'import_count',
|
||||
'value' => '50000',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
74 => [
|
||||
'id' => 75,
|
||||
'setting' => 'debuginfo',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
75 => [
|
||||
'id' => 76,
|
||||
'setting' => 'redis',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
],
|
||||
];
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,556 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class TmuxTableSeeder extends Seeder
|
||||
{
|
||||
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('tmux')->delete();
|
||||
|
||||
\DB::table('tmux')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 1,
|
||||
'setting' => 'defrag_cache',
|
||||
'value' => '900',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 2,
|
||||
'setting' => 'monitor_delay',
|
||||
'value' => '300',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 3,
|
||||
'setting' => 'tmux_session',
|
||||
'value' => 'nntmux',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'id' => 4,
|
||||
'setting' => 'niceness',
|
||||
'value' => '19',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
'id' => 5,
|
||||
'setting' => 'binaries',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
5 =>
|
||||
array (
|
||||
'id' => 6,
|
||||
'setting' => 'backfill',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
6 =>
|
||||
array (
|
||||
'id' => 7,
|
||||
'setting' => 'import',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
7 =>
|
||||
array (
|
||||
'id' => 8,
|
||||
'setting' => 'nzbs',
|
||||
'value' => '/path/to/nzbs',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
8 =>
|
||||
array (
|
||||
'id' => 9,
|
||||
'setting' => 'running',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
9 =>
|
||||
array (
|
||||
'id' => 10,
|
||||
'setting' => 'sequential',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
10 =>
|
||||
array (
|
||||
'id' => 11,
|
||||
'setting' => 'nfos',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
11 =>
|
||||
array (
|
||||
'id' => 12,
|
||||
'setting' => 'post',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
12 =>
|
||||
array (
|
||||
'id' => 13,
|
||||
'setting' => 'releases',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
13 =>
|
||||
array (
|
||||
'id' => 14,
|
||||
'setting' => 'releases_threaded',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
14 =>
|
||||
array (
|
||||
'id' => 15,
|
||||
'setting' => 'fix_names',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
15 =>
|
||||
array (
|
||||
'id' => 16,
|
||||
'setting' => 'seq_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
16 =>
|
||||
array (
|
||||
'id' => 17,
|
||||
'setting' => 'bins_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
17 =>
|
||||
array (
|
||||
'id' => 18,
|
||||
'setting' => 'bins_kill_timer',
|
||||
'value' => '1',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
18 =>
|
||||
array (
|
||||
'id' => 19,
|
||||
'setting' => 'back_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
19 =>
|
||||
array (
|
||||
'id' => 20,
|
||||
'setting' => 'import_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
20 =>
|
||||
array (
|
||||
'id' => 21,
|
||||
'setting' => 'rel_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
21 =>
|
||||
array (
|
||||
'id' => 22,
|
||||
'setting' => 'fix_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
22 =>
|
||||
array (
|
||||
'id' => 23,
|
||||
'setting' => 'post_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
23 =>
|
||||
array (
|
||||
'id' => 24,
|
||||
'setting' => 'import_bulk',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
24 =>
|
||||
array (
|
||||
'id' => 25,
|
||||
'setting' => 'backfill_qty',
|
||||
'value' => '100000',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
25 =>
|
||||
array (
|
||||
'id' => 26,
|
||||
'setting' => 'collections_kill',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
26 =>
|
||||
array (
|
||||
'id' => 27,
|
||||
'setting' => 'postprocess_kill',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
27 =>
|
||||
array (
|
||||
'id' => 28,
|
||||
'setting' => 'crap_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
28 =>
|
||||
array (
|
||||
'id' => 29,
|
||||
'setting' => 'fix_crap',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
29 =>
|
||||
array (
|
||||
'id' => 30,
|
||||
'setting' => 'tv_timer',
|
||||
'value' => '43200',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
30 =>
|
||||
array (
|
||||
'id' => 31,
|
||||
'setting' => 'update_tv',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
31 =>
|
||||
array (
|
||||
'id' => 32,
|
||||
'setting' => 'htop',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
32 =>
|
||||
array (
|
||||
'id' => 33,
|
||||
'setting' => 'nmon',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
33 =>
|
||||
array (
|
||||
'id' => 34,
|
||||
'setting' => 'bwmng',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
34 =>
|
||||
array (
|
||||
'id' => 35,
|
||||
'setting' => 'mytop',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
35 =>
|
||||
array (
|
||||
'id' => 36,
|
||||
'setting' => 'console',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
36 =>
|
||||
array (
|
||||
'id' => 37,
|
||||
'setting' => 'vnstat',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
37 =>
|
||||
array (
|
||||
'id' => 38,
|
||||
'setting' => 'vnstat_args',
|
||||
'value' => 'NULL',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
38 =>
|
||||
array (
|
||||
'id' => 39,
|
||||
'setting' => 'tcptrack',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
39 =>
|
||||
array (
|
||||
'id' => 40,
|
||||
'setting' => 'tcptrack_args',
|
||||
'value' => '-i eth0 port 443',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
40 =>
|
||||
array (
|
||||
'id' => 41,
|
||||
'setting' => 'backfill_groups',
|
||||
'value' => '4',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
41 =>
|
||||
array (
|
||||
'id' => 42,
|
||||
'setting' => 'post_kill_timer',
|
||||
'value' => '300',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
42 =>
|
||||
array (
|
||||
'id' => 43,
|
||||
'setting' => 'optimize',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
43 =>
|
||||
array (
|
||||
'id' => 44,
|
||||
'setting' => 'optimize_timer',
|
||||
'value' => '86400',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
44 =>
|
||||
array (
|
||||
'id' => 45,
|
||||
'setting' => 'monitor_path',
|
||||
'value' => 'NULL',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
45 =>
|
||||
array (
|
||||
'id' => 46,
|
||||
'setting' => 'write_logs',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
46 =>
|
||||
array (
|
||||
'id' => 47,
|
||||
'setting' => 'sorter',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
47 =>
|
||||
array (
|
||||
'id' => 48,
|
||||
'setting' => 'sorter_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
48 =>
|
||||
array (
|
||||
'id' => 49,
|
||||
'setting' => 'powerline',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
49 =>
|
||||
array (
|
||||
'id' => 50,
|
||||
'setting' => 'patchdb',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
50 =>
|
||||
array (
|
||||
'id' => 51,
|
||||
'setting' => 'patchdb_timer',
|
||||
'value' => '21600',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
51 =>
|
||||
array (
|
||||
'id' => 52,
|
||||
'setting' => 'progressive',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
52 =>
|
||||
array (
|
||||
'id' => 53,
|
||||
'setting' => 'dehash',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
53 =>
|
||||
array (
|
||||
'id' => 54,
|
||||
'setting' => 'dehash_timer',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
54 =>
|
||||
array (
|
||||
'id' => 55,
|
||||
'setting' => 'backfill_order',
|
||||
'value' => '2',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
55 =>
|
||||
array (
|
||||
'id' => 56,
|
||||
'setting' => 'backfill_days',
|
||||
'value' => '1',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
56 =>
|
||||
array (
|
||||
'id' => 57,
|
||||
'setting' => 'post_amazon',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
57 =>
|
||||
array (
|
||||
'id' => 58,
|
||||
'setting' => 'post_non',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
58 =>
|
||||
array (
|
||||
'id' => 59,
|
||||
'setting' => 'post_timer_amazon',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
59 =>
|
||||
array (
|
||||
'id' => 60,
|
||||
'setting' => 'post_timer_non',
|
||||
'value' => '30',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
60 =>
|
||||
array (
|
||||
'id' => 61,
|
||||
'setting' => 'colors_start',
|
||||
'value' => '1',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
61 =>
|
||||
array (
|
||||
'id' => 62,
|
||||
'setting' => 'colors_end',
|
||||
'value' => '250',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
62 =>
|
||||
array (
|
||||
'id' => 63,
|
||||
'setting' => 'colors_exc',
|
||||
'value' => '4, 8, 9, 11, 15, 16, 17, 18, 19, 46, 47, 48, 49, 50, 51, 52, 53, 59, 60',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
63 =>
|
||||
array (
|
||||
'id' => 64,
|
||||
'setting' => 'monitor_path_a',
|
||||
'value' => 'NULL',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
64 =>
|
||||
array (
|
||||
'id' => 65,
|
||||
'setting' => 'monitor_path_b',
|
||||
'value' => 'NULL',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
65 =>
|
||||
array (
|
||||
'id' => 66,
|
||||
'setting' => 'colors',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
66 =>
|
||||
array (
|
||||
'id' => 67,
|
||||
'setting' => 'showquery',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
67 =>
|
||||
array (
|
||||
'id' => 68,
|
||||
'setting' => 'fix_crap_opt',
|
||||
'value' => 'Disabled',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
68 =>
|
||||
array (
|
||||
'id' => 69,
|
||||
'setting' => 'showprocesslist',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
69 =>
|
||||
array (
|
||||
'id' => 70,
|
||||
'setting' => 'processupdate',
|
||||
'value' => '2',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
70 =>
|
||||
array (
|
||||
'id' => 71,
|
||||
'setting' => 'run_ircscraper',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
71 =>
|
||||
array (
|
||||
'id' => 72,
|
||||
'setting' => 'run_sharing',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
72 =>
|
||||
array (
|
||||
'id' => 73,
|
||||
'setting' => 'sharing_timer',
|
||||
'value' => '60',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
73 =>
|
||||
array (
|
||||
'id' => 74,
|
||||
'setting' => 'import_count',
|
||||
'value' => '50000',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
74 =>
|
||||
array (
|
||||
'id' => 75,
|
||||
'setting' => 'debuginfo',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
75 =>
|
||||
array (
|
||||
'id' => 76,
|
||||
'setting' => 'redis',
|
||||
'value' => '0',
|
||||
'updated_at' => '2018-01-18 11:11:35',
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php';
|
||||
|
||||
$tmux = \App\Models\Tmux::all();
|
||||
|
||||
foreach ($tmux as $item) {
|
||||
echo 'Inserting '.$item->setting. ' into settings table'. PHP_EOL;
|
||||
\App\Models\Settings::insertIgnore(
|
||||
[
|
||||
'section' => 'site',
|
||||
'subsection' => 'tmux',
|
||||
'name' => $item->setting,
|
||||
'value' => $item->value,
|
||||
'setting'=> $item->setting,
|
||||
]
|
||||
);
|
||||
}
|
||||
@@ -31,7 +31,7 @@ switch ($options[1]) {
|
||||
case 'backfill':
|
||||
if (in_array((int)$options[3], [1, 2], false)) {
|
||||
$pdo = new DB();
|
||||
$value = Tmux::value('backfill_qty');
|
||||
$value = Settings::settingValue('site.tmux.backfill_qty');
|
||||
if ($value !== false) {
|
||||
$nntp = nntp($pdo);
|
||||
(new Backfill())->backfillAllGroups($options[2], ($options[3] === 1 ? '' : $value['value']));
|
||||
|
||||
@@ -23,9 +23,8 @@ $runVar['paths']['scraper'] = NN_MISC.'IRCScraper'.DS.'scrape.php';
|
||||
|
||||
$db_name = env('DB_NAME');
|
||||
$dbtype = env('DB_SYSTEM');
|
||||
$tmux = $tRun->get('niceness');
|
||||
|
||||
$tmux_niceness = $tmux->niceness ?? 2;
|
||||
$tmux_niceness = Settings::settingValue('site.tmux.niceness') ?? 2;
|
||||
|
||||
$runVar['constants'] = $pdo->queryOneRow($tRun->getConstantSettings());
|
||||
|
||||
|
||||
+19
-26
@@ -10,14 +10,12 @@ use Blacklight\utility\Utility;
|
||||
|
||||
$pdo = new DB();
|
||||
$DIR = NN_TMUX;
|
||||
$t = new Tmux();
|
||||
$tmux = $t->get();
|
||||
$patch = Settings::settingValue('..sqlpatch');
|
||||
$import = $tmux->import ?? 0;
|
||||
$tmux_session = $tmux->tmux_session ?? 0;
|
||||
$seq = $tmux->sequential ?? 0;
|
||||
$powerline = $tmux->powerline ?? 0;
|
||||
$colors = $tmux->colors ?? 0;
|
||||
$import = Settings::settingValue('site.tmux.import') ?? 0;
|
||||
$tmux_session = Settings::settingValue('site.tmux.tmux_session') ?? 0;
|
||||
$seq = Settings::settingValue('site.tmux.sequential') ?? 0;
|
||||
$powerline = Settings::settingValue('site.tmux.powerline') ?? 0;
|
||||
$colors = Settings::settingValue('site.tmux.colors') ?? 0;
|
||||
$delaytimet = Settings::settingValue('..delaytime');
|
||||
$delaytimet = $delaytimet ? (int) $delaytimet : 2;
|
||||
|
||||
@@ -63,8 +61,7 @@ function writelog($pane)
|
||||
{
|
||||
$path = NN_RES.'logs';
|
||||
$getdate = gmdate('Ymd');
|
||||
$tmux = new Tmux();
|
||||
$logs = $tmux->get()->write_logs;
|
||||
$logs = Settings::settingValue('site.tmux.write_logs');
|
||||
if ((int) $logs === 1) {
|
||||
return "2>&1 | tee -a $path/$pane-$getdate.log";
|
||||
}
|
||||
@@ -99,20 +96,18 @@ function python_module_exist($module)
|
||||
|
||||
function start_apps($tmux_session)
|
||||
{
|
||||
$t = new Tmux();
|
||||
$tmux = $t->get();
|
||||
$htop = $tmux->htop;
|
||||
$vnstat = $tmux->vnstat;
|
||||
$vnstat_args = $tmux->vnstat_args;
|
||||
$tcptrack = $tmux->tcptrack;
|
||||
$tcptrack_args = $tmux->tcptrack_args;
|
||||
$nmon = $tmux->nmon;
|
||||
$bwmng = $tmux->bwmng;
|
||||
$mytop = $tmux->mytop;
|
||||
$redis = $tmux->redis;
|
||||
$showprocesslist = $tmux->showprocesslist;
|
||||
$processupdate = $tmux->processupdate;
|
||||
$console_bash = $tmux->console;
|
||||
$htop = Settings::settingValue('site.tmux.htop');
|
||||
$vnstat = Settings::settingValue('site.tmux.vnstat');
|
||||
$vnstat_args = Settings::settingValue('site.tmux.vnstat_args');
|
||||
$tcptrack = Settings::settingValue('site.tmux.tcptrack');
|
||||
$tcptrack_args = Settings::settingValue('site.tmux.tcptrack_args');
|
||||
$nmon = Settings::settingValue('site.tmux.nmon');
|
||||
$bwmng = Settings::settingValue('site.tmux.bwmng');
|
||||
$mytop = Settings::settingValue('site.tmux.mytop');
|
||||
$redis = Settings::settingValue('site.tmux.redis');
|
||||
$showprocesslist = Settings::settingValue('site.tmux.showprocesslist');
|
||||
$processupdate = Settings::settingValue('site.tmux.processupdate');
|
||||
$console_bash = Settings::settingValue('site.tmux.console');
|
||||
|
||||
if ((int) $htop === 1 && command_exist('htop')) {
|
||||
exec("tmux new-window -t $tmux_session -n htop 'printf \"\033]2;htop\033\" && htop'");
|
||||
@@ -188,9 +183,7 @@ function window_sharing($tmux_session)
|
||||
{
|
||||
$pdo = new Blacklight\db\DB();
|
||||
$sharing = $pdo->queryOneRow('SELECT enabled, posting, fetching FROM sharing');
|
||||
$t = new Tmux();
|
||||
$tmux = $t->get();
|
||||
$tmux_share = $tmux->run_sharing ?? 0;
|
||||
$tmux_share = Settings::settingValue('site.tmux.run_sharing') ?? 0;
|
||||
|
||||
if ($tmux_share && (int) $sharing['enabled'] === 1 && ((int) $sharing['posting'] === 1 || (int) $sharing['fetching'] === 1)) {
|
||||
exec("tmux new-window -t $tmux_session -n Sharing 'printf \"\033]2;comment_sharing\033\"'");
|
||||
|
||||
@@ -22,8 +22,7 @@ if (`which tmux`) {
|
||||
}
|
||||
|
||||
$tmux = new Tmux();
|
||||
$tmux_settings = $tmux->get('tmux_session');
|
||||
$tmux_session = $tmux_settings->tmux_session ?? 0;
|
||||
$tmux_session = Settings::settingValue('site.tmux.tmux_session') ?? 0;
|
||||
$path = __DIR__;
|
||||
|
||||
// Set running value to on.
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php';
|
||||
|
||||
use App\Models\Settings;
|
||||
use Blacklight\Tmux;
|
||||
|
||||
$page = new AdminPage();
|
||||
@@ -14,17 +15,15 @@ $action = $_REQUEST['action'] ?? 'view';
|
||||
switch ($action) {
|
||||
case 'submit':
|
||||
$error = '';
|
||||
$ret = $tmux->update($_POST);
|
||||
$ret = (new Settings())->update($_POST);
|
||||
$page->title = 'Tmux Settings Edit';
|
||||
$settings = $tmux->get();
|
||||
$page->smarty->assign('ftmux', $settings);
|
||||
$page->smarty->assign('site', $page->settings);
|
||||
break;
|
||||
|
||||
case 'view':
|
||||
default:
|
||||
$page->title = 'Tmux Settings Edit';
|
||||
$settings = $tmux->get();
|
||||
$page->smarty->assign('ftmux', $settings);
|
||||
$page->smarty->assign('site', $page->settings);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="running">Tmux Scripts Running:</label></td>
|
||||
<td>
|
||||
{html_radios id="running" name='running' values=$yesno_ids output=$yesno_names selected=$ftmux->running separator='<br />'}
|
||||
{html_radios id="running" name='running' values=$yesno_ids output=$yesno_names selected=$site->running separator='<br />'}
|
||||
<div class="hint">This is the shutdown, true/on, it runs, false/off and all scripts are terminated. This
|
||||
will start/stop all panes without terminating the monitor pane. This is not instant, it does not
|
||||
kill any panes, it simply does not allow any pane to restart if set to false.
|
||||
@@ -51,7 +51,7 @@
|
||||
<td style="width:180px;"><label for="monitor_delay">Monitor Loop Timer:</label></td>
|
||||
<td>
|
||||
<input id="monitor_delay" name="monitor_delay" class="short" type="text"
|
||||
value="{$ftmux->monitor_delay}"/>
|
||||
value="{$site->monitor_delay}"/>
|
||||
|
||||
<div class="hint">The time between query refreshes of monitor information, in seconds. This has no
|
||||
effect on any other pane, except in regards to the kill switches. The other panes are checked every
|
||||
@@ -66,7 +66,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="tmux_session">Tmux Session:</label></td>
|
||||
<td>
|
||||
<input id="tmux_session" name="tmux_session" class="long" type="text" value="{$ftmux->tmux_session}"/>
|
||||
<input id="tmux_session" name="tmux_session" class="long" type="text" value="{$site->tmux_session}"/>
|
||||
|
||||
<div class="hint">Enter the session name to be used by tmux, no spaces allowed in the name, this can't
|
||||
be changed after scripts start. If you are running multiple servers, you could put your hostname
|
||||
@@ -79,11 +79,11 @@
|
||||
<td style="width:180px;"><label for="monitor_path">Monitor a Ramdisk:</label></td>
|
||||
<td>
|
||||
<input id="monitor_path" name="monitor_path" class="long" type="text"
|
||||
value="{$ftmux->monitor_path}"/><br/>
|
||||
value="{$site->monitor_path}"/><br/>
|
||||
<input id="monitor_path_a" name="monitor_path_a" class="long" type="text"
|
||||
value="{$ftmux->monitor_path_a}"/><br/>
|
||||
value="{$site->monitor_path_a}"/><br/>
|
||||
<input id="monitor_path_b" name="monitor_path_b" class="long" type="text"
|
||||
value="{$ftmux->monitor_path_b}"/>
|
||||
value="{$site->monitor_path_b}"/>
|
||||
|
||||
<div class="hint">Enter a path here to have Monitor monitor its usage and free space. Must be a valid
|
||||
path.<br/>To use this example, add to fstab and edit path, gid and uid, then mount as user not root:<br/>tmpfs
|
||||
@@ -141,7 +141,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="sequential">Run Sequential:</label></td>
|
||||
<td>
|
||||
{html_options style="width:180px;" class="siteeditstyle" id="sequential" name='sequential' values=$sequential_ids output=$sequential_names selected=$ftmux->sequential}
|
||||
{html_options style="width:180px;" class="siteeditstyle" id="sequential" name='sequential' values=$sequential_ids output=$sequential_names selected=$site->sequential}
|
||||
<div class="hint">Sequential runs update_binaries, backfill and update releases_sequentially.<br/>Changing
|
||||
requires restart.
|
||||
</div>
|
||||
@@ -151,7 +151,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="seq_timer">Sequential Sleep Timer:</label></td>
|
||||
<td>
|
||||
<input id="seq_timer" name="seq_timer" class="short" type="text" value="{$ftmux->seq_timer}"/>
|
||||
<input id="seq_timer" name="seq_timer" class="short" type="text" value="{$site->seq_timer}"/>
|
||||
|
||||
<div class="hint">The time to sleep from the time the loop ends until it is restarted, in seconds.</div>
|
||||
</td>
|
||||
@@ -172,7 +172,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="binaries">Update Binaries:</label></td>
|
||||
<td>
|
||||
{html_options style="width:180px;" class="siteeditstyle" id="binaries" name='binaries' values=$binaries_ids output=$binaries_names selected=$ftmux->binaries}
|
||||
{html_options style="width:180px;" class="siteeditstyle" id="binaries" name='binaries' values=$binaries_ids output=$binaries_names selected=$site->binaries}
|
||||
<div class="hint">Choose to run update_binaries. Update binaries gets from your last_record to now.<br/>Simple
|
||||
Threaded Update runs 1 group per thread.<br/>Complete Threaded Update splits all work across
|
||||
multiple threads.
|
||||
@@ -183,7 +183,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="bins_timer">Update Binaries Sleep Timer:</label></td>
|
||||
<td>
|
||||
<input id="bins_timer" name="bins_timer" class="short" type="text" value="{$ftmux->bins_timer}"/>
|
||||
<input id="bins_timer" name="bins_timer" class="short" type="text" value="{$site->bins_timer}"/>
|
||||
|
||||
<div class="hint">The time to sleep from the time the loop ends until it is restarted, in seconds.</div>
|
||||
</td>
|
||||
@@ -192,7 +192,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="bins_kill_timer">Binaries Kill Timer:</label></td>
|
||||
<td>
|
||||
<input id="bins_kill_timer" name="bins_kill_timer" class="short" type="text" value="{$ftmux->bins_kill_timer}"/>
|
||||
<input id="bins_kill_timer" name="bins_kill_timer" class="short" type="text" value="{$site->bins_kill_timer}"/>
|
||||
|
||||
<div class="hint">The time update_binaries is allowed to run with no updates.Time is in minutes.</div>
|
||||
</td>
|
||||
@@ -206,9 +206,9 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="backfill">Backfill:</label></td>
|
||||
<td>
|
||||
{html_options style="width:180px;" class="siteeditstyle" id="backfill" name='backfill' values=$backfill_ids output=$backfill_names selected=$ftmux->backfill}
|
||||
{html_options style="width:180px;" class="siteeditstyle" id="backfill_order" name='backfill_order' values=$backfill_group_ids output=$backfill_group selected=$ftmux->backfill_order}
|
||||
{html_options style="width:180px;" class="siteeditstyle" id="backfill_days" name='backfill_days' values=$backfill_days_ids output=$backfill_days selected=$ftmux->backfill_days}
|
||||
{html_options style="width:180px;" class="siteeditstyle" id="backfill" name='backfill' values=$backfill_ids output=$backfill_names selected=$site->backfill}
|
||||
{html_options style="width:180px;" class="siteeditstyle" id="backfill_order" name='backfill_order' values=$backfill_group_ids output=$backfill_group selected=$site->backfill_order}
|
||||
{html_options style="width:180px;" class="siteeditstyle" id="backfill_days" name='backfill_days' values=$backfill_days_ids output=$backfill_days selected=$site->backfill_days}
|
||||
<div class="hint">Choose to run backfill type. Backfill gets from your first_record back.<br/>
|
||||
Disabled - Disables backfill from running.<br/>
|
||||
Safe - Backfills 1 group by backfill days (set in admin-view groups), using the number of threads set in admin. This downloads Backfill Quantity times the Backfill Threads, each loop.<br/>
|
||||
@@ -228,7 +228,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="backfill_qty">Backfill Quantity:</label></td>
|
||||
<td>
|
||||
<input id="backfill_qty" name="backfill_qty" class="short" type="text" value="{$ftmux->backfill_qty}"/>
|
||||
<input id="backfill_qty" name="backfill_qty" class="short" type="text" value="{$site->backfill_qty}"/>
|
||||
|
||||
<div class="hint">When not running backfill intervals, you select the number of headers per group per
|
||||
thread to download.
|
||||
@@ -240,7 +240,7 @@
|
||||
<td style="width:180px;"><label for="backfill_groups">Backfill Groups:</label></td>
|
||||
<td>
|
||||
<input id="backfill_groups" name="backfill_groups" class="short" type="text"
|
||||
value="{$ftmux->backfill_groups}"/>
|
||||
value="{$site->backfill_groups}"/>
|
||||
|
||||
<div class="hint">When running backfill the groups are sorted by the backfill method chosen above.
|
||||
Select the number of groups to backfill per loop.
|
||||
@@ -251,7 +251,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="back_timer">Backfill Sleep Timer:</label></td>
|
||||
<td>
|
||||
<input id="back_timer" name="back_timer" class="short" type="text" value="{$ftmux->back_timer}"/>
|
||||
<input id="back_timer" name="back_timer" class="short" type="text" value="{$site->back_timer}"/>
|
||||
|
||||
<div class="hint">The time to sleep from the time the loop ends until it is restarted, in seconds.</div>
|
||||
</td>
|
||||
@@ -260,7 +260,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="progressive">Variable Sleep Timer:</label></td>
|
||||
<td>
|
||||
{html_radios id="progressive" name='progressive' values=$yesno_ids output=$yesno_names selected=$ftmux->progressive separator='<br />'}
|
||||
{html_radios id="progressive" name='progressive' values=$yesno_ids output=$yesno_names selected=$site->progressive separator='<br />'}
|
||||
<div class="hint">This will vary the backfill sleep depending on how many collections you have.<br/>ie
|
||||
50k collections would make sleep timer 100 seconds and 20k releases would make sleep timer 40
|
||||
seconds.
|
||||
@@ -276,7 +276,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="import">Import nzbs:</label></td>
|
||||
<td>
|
||||
{html_options style="width:180px;" class="siteeditstyle" id="import" name='import' values=$import_ids output=$import_names selected=$ftmux->import}
|
||||
{html_options style="width:180px;" class="siteeditstyle" id="import" name='import' values=$import_ids output=$import_names selected=$site->import}
|
||||
<div class="hint">Choose to run import nzb script true/false. This can point to a single folder with
|
||||
multiple subfolders on just the one folder. If you run this threaded, it will run 1 folder per
|
||||
thread.
|
||||
@@ -287,7 +287,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="nzbs">Nzbs Folder:</label></td>
|
||||
<td>
|
||||
<input id="nzbs" class="long" name="nzbs" type="text" value="{$ftmux->nzbs}"/>
|
||||
<input id="nzbs" class="long" name="nzbs" type="text" value="{$site->nzbs}"/>
|
||||
|
||||
<div class="hint">Set the path to the nzb dump you downloaded from torrents, this is the path to bulk
|
||||
files folder of nzbs. This is by default, recursive and threaded. You set the threads in Advanced
|
||||
@@ -299,7 +299,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="import_count">Import nzbs per process:</label></td>
|
||||
<td>
|
||||
<input id="import_count" name="import_count" class="short" type="text" value="{$ftmux->import_count}"/>
|
||||
<input id="import_count" name="import_count" class="short" type="text" value="{$site->import_count}"/>
|
||||
<div class="hint">How many NZB files to import per process.</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -307,7 +307,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="import_timer">Import nzbs Sleep Timer:</label></td>
|
||||
<td>
|
||||
<input id="import_timer" name="import_timer" class="short" type="text" value="{$ftmux->import_timer}"/>
|
||||
<input id="import_timer" name="import_timer" class="short" type="text" value="{$site->import_timer}"/>
|
||||
|
||||
<div class="hint">The time to sleep from the time the loop ends until it is restarted, in seconds.</div>
|
||||
</td>
|
||||
@@ -330,7 +330,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="releases">Update Releases:</label></td>
|
||||
<td>
|
||||
{html_options style="width:180px;" class="siteeditstyle" id="releases" name='releases' values=$releases_ids output=$releases_names selected=$ftmux->releases}
|
||||
{html_options style="width:180px;" class="siteeditstyle" id="releases" name='releases' values=$releases_ids output=$releases_names selected=$site->releases}
|
||||
<div class="hint">Create releases, this is really only necessary to turn off when you only want to post
|
||||
process.<br/>.
|
||||
</div>
|
||||
@@ -340,7 +340,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="rel_timer">Update Releases Sleep Timer:</label></td>
|
||||
<td>
|
||||
<input id="rel_timer" name="rel_timer" class="short" type="text" value="{$ftmux->rel_timer}"/>
|
||||
<input id="rel_timer" name="rel_timer" class="short" type="text" value="{$site->rel_timer}"/>
|
||||
|
||||
<div class="hint">The time to sleep from the time the loop ends until it is restarted, in seconds.</div>
|
||||
</td>
|
||||
@@ -354,7 +354,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="post">Postprocess Additional:</label></td>
|
||||
<td>
|
||||
{html_options style="width:180px;" class="siteeditstyle" id="post" name='post' values=$post_ids output=$post_names selected=$ftmux->post}
|
||||
{html_options style="width:180px;" class="siteeditstyle" id="post" name='post' values=$post_ids output=$post_names selected=$site->post}
|
||||
<div class="hint">Choose to do deep rar inspection, preview and sample creation and/or nfo processing.
|
||||
true/false
|
||||
</div>
|
||||
@@ -364,7 +364,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="post_timer">Postprocess Additional Sleep Timer:</label></td>
|
||||
<td>
|
||||
<input id="post_timer" name="post_timer" class="short" type="text" value="{$ftmux->post_timer}"/>
|
||||
<input id="post_timer" name="post_timer" class="short" type="text" value="{$site->post_timer}"/>
|
||||
|
||||
<div class="hint">The time to sleep from the time the loop ends until it is restarted, in seconds.</div>
|
||||
</td>
|
||||
@@ -374,7 +374,7 @@
|
||||
<td style="width:180px;"><label for="post_kill_timer">Postprocess Kill Timer:</label></td>
|
||||
<td>
|
||||
<input id="post_kill_timer" name="post_kill_timer" class="short" type="text"
|
||||
value="{$ftmux->post_kill_timer}"/>
|
||||
value="{$site->post_kill_timer}"/>
|
||||
|
||||
<div class="hint">The time postprocess is allowed to run with no updates to the screen.Time is in
|
||||
seconds. Activity is detected when the history for the pane changes. The clock is restarted every
|
||||
@@ -386,7 +386,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="post_amazon">Postprocess Amazon:</label></td>
|
||||
<td>
|
||||
{html_radios id="post_amazon" name='post_amazon' values=$yesno_ids output=$yesno_names selected=$ftmux->post_amazon separator='<br />'}
|
||||
{html_radios id="post_amazon" name='post_amazon' values=$yesno_ids output=$yesno_names selected=$site->post_amazon separator='<br />'}
|
||||
<div class="hint">Choose to do books, music and games lookups true/false</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -395,7 +395,7 @@
|
||||
<td style="width:180px;"><label for="post_timer_amazon">Postprocess Amazon Sleep Timer:</label></td>
|
||||
<td>
|
||||
<input id="post_timer_amazon" name="post_timer_amazon" class="short" type="text"
|
||||
value="{$ftmux->post_timer_amazon}"/>
|
||||
value="{$site->post_timer_amazon}"/>
|
||||
|
||||
<div class="hint">The time to sleep from the time the loop ends until it is restarted, in seconds.</div>
|
||||
</td>
|
||||
@@ -404,7 +404,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="post_non">Postprocess Non-Amazon:</label></td>
|
||||
<td>
|
||||
{html_radios id="post_non" name='post_non' values=$yesno_ids output=$yesno_names selected=$ftmux->post_non separator='<br />'}
|
||||
{html_radios id="post_non" name='post_non' values=$yesno_ids output=$yesno_names selected=$site->post_non separator='<br />'}
|
||||
<div class="hint">Choose to do movies, anime and tv lookups. true/false</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -413,7 +413,7 @@
|
||||
<td style="width:180px;"><label for="post_timer">Postprocess Non-Amazon Sleep Timer:</label></td>
|
||||
<td>
|
||||
<input id="post_timer_non" name="post_timer_non" class="short" type="text"
|
||||
value="{$ftmux->post_timer_non}"/>
|
||||
value="{$site->post_timer_non}"/>
|
||||
|
||||
<div class="hint">The time to sleep from the time the loop ends until it is restarted, in seconds.</div>
|
||||
</td>
|
||||
@@ -428,7 +428,7 @@
|
||||
<td style="width:180px;"><label for="run_sharing">Comment Sharing :</label></td>
|
||||
<td>
|
||||
{html_radios id="run_sharing" name='run_sharing' values=$yesno_ids output=$yesno_names
|
||||
selected=$ftmux->run_sharing separator='<br />'}
|
||||
selected=$site->run_sharing separator='<br />'}
|
||||
|
||||
<div class="hint">Run Comment Sharing from within tmux if you have it enabled in Admin->Comment Sharing
|
||||
Settings.
|
||||
@@ -439,7 +439,7 @@
|
||||
<td style="width:180px;"><label for="sharing_timer">Comments Sharing Timer:</label></td>
|
||||
<td>
|
||||
<input class="short" id="sharing_timer" name="sharing_timer" type="text"
|
||||
value="{$ftmux->sharing_timer}"/>
|
||||
value="{$site->sharing_timer}"/>
|
||||
|
||||
<div class="hint">Set the sleep time between updates</div>
|
||||
</td>
|
||||
@@ -453,7 +453,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="fix_names">Fix Release Names:</label></td>
|
||||
<td>
|
||||
{html_radios id="fix_names" name='fix_names' values=$yesno_ids output=$yesno_names selected=$ftmux->fix_names separator='<br />'}
|
||||
{html_radios id="fix_names" name='fix_names' values=$yesno_ids output=$yesno_names selected=$site->fix_names separator='<br />'}
|
||||
<div class="hint">Choose to try to fix Releases Names using NFOs, par2 files, filenames, md5 and
|
||||
sha1. true/false
|
||||
</div>
|
||||
@@ -463,7 +463,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="fix_timer">Fix Release Names Sleep Timer:</label></td>
|
||||
<td>
|
||||
<input id="fix_timer" name="fix_timer" class="short" type="text" value="{$ftmux->fix_timer}"/>
|
||||
<input id="fix_timer" name="fix_timer" class="short" type="text" value="{$site->fix_timer}"/>
|
||||
|
||||
<div class="hint">The time to sleep from the time the loop ends until it is restarted, in seconds.</div>
|
||||
</td>
|
||||
@@ -477,13 +477,13 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="fix_crap">Remove Crap Releases:</label></td>
|
||||
<td>
|
||||
{html_radios id="fix_crap_opt" name='fix_crap_opt' onchange="enableFixCrapCustom()" values=$fix_crap_radio_names output=$fix_crap_radio_names selected=$ftmux->fix_crap_opt separator='<br />'}
|
||||
{html_radios id="fix_crap_opt" name='fix_crap_opt' onchange="enableFixCrapCustom()" values=$fix_crap_radio_names output=$fix_crap_radio_names selected=$site->fix_crap_opt separator='<br />'}
|
||||
<br>
|
||||
<div class="checkbox-grid">
|
||||
{if $ftmux->fix_crap_opt == "Custom"}
|
||||
{html_checkboxes id="fix_crap" name='fix_crap' values=$fix_crap_check_names output=$fix_crap_check_names selected=explode(', ', $ftmux->fix_crap)}
|
||||
{if $site->fix_crap_opt == "Custom"}
|
||||
{html_checkboxes id="fix_crap" name='fix_crap' values=$fix_crap_check_names output=$fix_crap_check_names selected=explode(', ', $site->fix_crap)}
|
||||
{else}
|
||||
{html_checkboxes id="fix_crap" name='fix_crap' disabled="true" readonly="true" values=$fix_crap_check_names output=$fix_crap_check_names selected=explode(', ', $ftmux->fix_crap)}
|
||||
{html_checkboxes id="fix_crap" name='fix_crap' disabled="true" readonly="true" values=$fix_crap_check_names output=$fix_crap_check_names selected=explode(', ', $site->fix_crap)}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="hint">Choose to run Remove Crap Releases. You can enable all or some.</div>
|
||||
@@ -492,7 +492,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="crap_timer">Remove Crap Releases Sleep Timer:</label></td>
|
||||
<td>
|
||||
<input id="crap_timer" name="crap_timer" class="short" type="text" value="{$ftmux->crap_timer}"/>
|
||||
<input id="crap_timer" name="crap_timer" class="short" type="text" value="{$site->crap_timer}"/>
|
||||
<div class="hint">The time to sleep from the time the loop ends until it is restarted, in seconds.</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -504,14 +504,14 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="dehash">Decrypt Hash Based Release Names:</label></td>
|
||||
<td>
|
||||
{html_options style="width:180px;" class="siteeditstyle" id="dehash" name='dehash' values=$dehash_ids output=$dehash_names selected=$ftmux->dehash}
|
||||
{html_options style="width:180px;" class="siteeditstyle" id="dehash" name='dehash' values=$dehash_ids output=$dehash_names selected=$site->dehash}
|
||||
<div class="hint">Choose to run Decrypt Hashes true/false</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="dehash_timer">Decrypt Hashes Sleep Timer:</label></td>
|
||||
<td>
|
||||
<input id="dehash_timer" name="dehash_timer" class="short" type="text" value="{$ftmux->dehash_timer}"/>
|
||||
<input id="dehash_timer" name="dehash_timer" class="short" type="text" value="{$site->dehash_timer}"/>
|
||||
<div class="hint">The time to sleep from the time the loop ends until it is restarted, in seconds.</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -535,7 +535,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="update_tv">Update TV and Theater Schedules:</label></td>
|
||||
<td>
|
||||
{html_radios id="update_tv" name='update_tv' values=$yesno_ids output=$yesno_names selected=$ftmux->update_tv separator='<br />'}
|
||||
{html_radios id="update_tv" name='update_tv' values=$yesno_ids output=$yesno_names selected=$site->update_tv separator='<br />'}
|
||||
<div class="hint">Choose to run Update TV and Theater Schedules true/false</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -543,7 +543,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="tv_timer">Update TV and Theater Start Timer:</label></td>
|
||||
<td>
|
||||
<input id="tv_timer" name="tv_timer" class="short" type="text" value="{$ftmux->tv_timer}"/>
|
||||
<input id="tv_timer" name="tv_timer" class="short" type="text" value="{$site->tv_timer}"/>
|
||||
|
||||
<div class="hint">This is a start timer. The default is 12 hours. This means that if enabled, is will
|
||||
start/run every 12 hours, no matter how long it runs for.
|
||||
@@ -560,7 +560,7 @@
|
||||
<td style="width:180px;"><label for="scrape_cz">Scrape Irc Channels:</label></td>
|
||||
<td>
|
||||
{html_radios id="run_ircscraper" name='run_ircscraper' values=$yesno_ids output=$yesno_names
|
||||
selected=$ftmux->run_ircscraper separator='<br />'}
|
||||
selected=$site->run_ircscraper separator='<br />'}
|
||||
<div class="hint">Choose to run IRCScraper on irc channels. Setting SCRAPE_IRC_C_Z_BOOL parameter to
|
||||
true or false in settings.php will toggle between the servers. The pane for this can not be
|
||||
created after tmux starts.
|
||||
@@ -585,7 +585,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="niceness">Niceness:</label></td>
|
||||
<td>
|
||||
<input id="niceness" name="niceness" class="short" type="text" value="{$ftmux->niceness}"/>
|
||||
<input id="niceness" name="niceness" class="short" type="text" value="{$site->niceness}"/>
|
||||
|
||||
<div class="hint">This sets the 'nice'ness of each script, default is 19, the lowest, the highest is -20
|
||||
anything between -1 and -20 require root/sudo to run
|
||||
@@ -597,7 +597,7 @@
|
||||
<td style="width:180px;"><label for="collections_kill">Maximum Collections:</label></td>
|
||||
<td>
|
||||
<input id="collections_kill" name="collections_kill" class="short" type="text"
|
||||
value="{$ftmux->collections_kill}"/>
|
||||
value="{$site->collections_kill}"/>
|
||||
<div class="hint">Set this to any number above 0 and when it is exceeded, backfill and update binaries
|
||||
will be terminated. 0 disables.
|
||||
</div>
|
||||
@@ -608,7 +608,7 @@
|
||||
<td style="width:180px;"><label for="postprocess_kill">Maximum Postprocess:</label></td>
|
||||
<td>
|
||||
<input id="postprocess_kill" name="postprocess_kill" class="short" type="text"
|
||||
value="{$ftmux->postprocess_kill}"/>
|
||||
value="{$site->postprocess_kill}"/>
|
||||
|
||||
<div class="hint">Set this to any number above 0 and when it is exceeded, import, backfill and update
|
||||
binaries will be terminated. 0 disables.
|
||||
@@ -619,7 +619,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="write_logs">Logging:</label></td>
|
||||
<td>
|
||||
{html_radios id="write_logs" name='write_logs' values=$yesno_ids output=$yesno_names selected=$ftmux->write_logs separator='<br />'}
|
||||
{html_radios id="write_logs" name='write_logs' values=$yesno_ids output=$yesno_names selected=$site->write_logs separator='<br />'}
|
||||
<div class="hint">Set this to write each panes output to a per pane per day log file. This adds GMT date
|
||||
to the filename.
|
||||
</div>
|
||||
@@ -629,7 +629,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="powerline">Powerline Status Bar:</label></td>
|
||||
<td>
|
||||
{html_radios id="powerline" name='powerline' values=$yesno_ids output=$yesno_names selected=$ftmux->powerline separator='<br />'}
|
||||
{html_radios id="powerline" name='powerline' values=$yesno_ids output=$yesno_names selected=$site->powerline separator='<br />'}
|
||||
<div class="hint">Choose to use the Powerline tmux status bar. To make this pretty, you need to install
|
||||
a patched font. This can be found on <a href="https://github.com/jonnyboy/powerline-fonts">my
|
||||
fork</a> or <a href="https://github.com/Lokaltog/powerline-fonts">the original git</a><br \>You
|
||||
@@ -647,7 +647,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="showquery">Display Query Times:</label></td>
|
||||
<td>
|
||||
{html_radios id="showquery" name='showquery' values=$yesno_ids output=$yesno_names selected=$ftmux->showquery separator='<br />'}
|
||||
{html_radios id="showquery" name='showquery' values=$yesno_ids output=$yesno_names selected=$site->showquery separator='<br />'}
|
||||
<div class="hint">Choose to display the query times for each set of queries. true/false.</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -655,7 +655,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="htop">htop:</label></td>
|
||||
<td>
|
||||
{html_radios id="htop" name='htop' values=$yesno_ids output=$yesno_names selected=$ftmux->htop separator='<br />'}
|
||||
{html_radios id="htop" name='htop' values=$yesno_ids output=$yesno_names selected=$site->htop separator='<br />'}
|
||||
<div class="hint">htop - an interactive process viewer for Linux. The pane for this can not be created
|
||||
after tmux starts.
|
||||
</div>
|
||||
@@ -665,7 +665,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="nmon">nmon:</label></td>
|
||||
<td>
|
||||
{html_radios id="nmon" name='nmon' values=$yesno_ids output=$yesno_names selected=$ftmux->nmon separator='<br />'}
|
||||
{html_radios id="nmon" name='nmon' values=$yesno_ids output=$yesno_names selected=$site->nmon separator='<br />'}
|
||||
<div class="hint">nmon is short for Nigel's performance Monitor for Linux. The pane for this can not be
|
||||
created after tmux starts.
|
||||
</div>
|
||||
@@ -675,8 +675,8 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="vnstat">vnstat:</label></td>
|
||||
<td>
|
||||
{html_radios id="vnstat" name='vnstat' values=$yesno_ids output=$yesno_names selected=$ftmux->vnstat separator='<br />'}
|
||||
<input id="vnstat_args" name="vnstat_args" class="text" type="text" value="{$ftmux->vnstat_args}"/>
|
||||
{html_radios id="vnstat" name='vnstat' values=$yesno_ids output=$yesno_names selected=$site->vnstat separator='<br />'}
|
||||
<input id="vnstat_args" name="vnstat_args" class="text" type="text" value="{$site->vnstat_args}"/>
|
||||
|
||||
<div class="hint">vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log
|
||||
of network traffic for the selected interface(s). Any additional arguments should be placed in the
|
||||
@@ -688,9 +688,9 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="tcptrack">tcptrack:</label></td>
|
||||
<td>
|
||||
{html_radios id="tcptrack" name='tcptrack' values=$yesno_ids output=$yesno_names selected=$ftmux->tcptrack separator='<br />'}
|
||||
{html_radios id="tcptrack" name='tcptrack' values=$yesno_ids output=$yesno_names selected=$site->tcptrack separator='<br />'}
|
||||
<input id="tcptrack_args" name="tcptrack_args" class="text" type="text"
|
||||
value="{$ftmux->tcptrack_args}"/>
|
||||
value="{$site->tcptrack_args}"/>
|
||||
|
||||
<div class="hint">tcptrack displays the status of TCP connections that it sees on a given network
|
||||
interface. tcptrack monitors their state and displays information such as state, source/destination
|
||||
@@ -705,7 +705,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="bwmng">bwm-ng:</label></td>
|
||||
<td>
|
||||
{html_radios id="bwmng" name='bwmng' values=$yesno_ids output=$yesno_names selected=$ftmux->bwmng separator='<br />'}
|
||||
{html_radios id="bwmng" name='bwmng' values=$yesno_ids output=$yesno_names selected=$site->bwmng separator='<br />'}
|
||||
<div class="hint">bwm-ng can be used to monitor the current bandwidth of all or some specific network
|
||||
interfaces or disks (or partitions). The pane for this can not be created after tmux starts.
|
||||
</div>
|
||||
@@ -715,7 +715,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="mytop">mytop:</label></td>
|
||||
<td>
|
||||
{html_radios id="mytop" name='mytop' values=$yesno_ids output=$yesno_names selected=$ftmux->mytop separator='<br />'}
|
||||
{html_radios id="mytop" name='mytop' values=$yesno_ids output=$yesno_names selected=$site->mytop separator='<br />'}
|
||||
<div class="hint">mytop - display MySQL server performance info like `top'. <br/>You will need to create
|
||||
~/.mytop, an example can be found in 'perldoc mytop'. The pane for this can not be created after
|
||||
tmux starts.
|
||||
@@ -726,7 +726,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="redis">redis:</label></td>
|
||||
<td>
|
||||
{html_radios id="redis" name='redis' values=$yesno_ids output=$yesno_names selected=$ftmux->redis separator='<br />'}
|
||||
{html_radios id="redis" name='redis' values=$yesno_ids output=$yesno_names selected=$site->redis separator='<br />'}
|
||||
<div class="hint">redis-stat - Monitor your redis instance statistics. The pane for this can not be created
|
||||
after tmux starts.
|
||||
</div>
|
||||
@@ -736,9 +736,9 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="showprocesslist">Show Process List:</label></td>
|
||||
<td>
|
||||
{html_radios id="showprocesslist" name='showprocesslist' values=$yesno_ids output=$yesno_names selected=$ftmux->showprocesslist separator='<br />'}
|
||||
{html_radios id="showprocesslist" name='showprocesslist' values=$yesno_ids output=$yesno_names selected=$site->showprocesslist separator='<br />'}
|
||||
<input id="processupdate" name="processupdate" class="short" type="text"
|
||||
value="{$ftmux->processupdate}"/>
|
||||
value="{$site->processupdate}"/>
|
||||
|
||||
<div class="hint">This runs the watch command in its own pane. This could be used for a live 'slow query
|
||||
monitor'. Just set the time above and only the queries that exceed it will be displayed.<br/>mysql
|
||||
@@ -753,7 +753,7 @@
|
||||
<tr>
|
||||
<td style="width:180px;"><label for="console">Console:</label></td>
|
||||
<td>
|
||||
{html_radios id="console" name='console' values=$yesno_ids output=$yesno_names selected=$ftmux->console separator='<br />'}
|
||||
{html_radios id="console" name='console' values=$yesno_ids output=$yesno_names selected=$site->console separator='<br />'}
|
||||
<div class="hint">Open an empty bash shell. The pane for this can not be created after tmux starts.
|
||||
</div>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user