mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Merge branch 'dev' of https://github.com/NNTmux/newznab-tmux into dev
This commit is contained in:
+1
-1
@@ -2,9 +2,9 @@
|
||||
|
||||
namespace Blacklight;
|
||||
|
||||
use App\Models\Settings;
|
||||
use Blacklight\db\DB;
|
||||
use App\Models\Category;
|
||||
use App\Models\Settings;
|
||||
use App\Extensions\util\Versions;
|
||||
|
||||
/**
|
||||
|
||||
@@ -34,13 +34,7 @@ class TmuxUIStop extends Command
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return mixed
|
||||
* @throws \Symfony\Component\Process\Exception\InvalidArgumentException
|
||||
* @throws \Symfony\Component\Process\Exception\LogicException
|
||||
* @throws \Symfony\Component\Process\Exception\RuntimeException
|
||||
* @throws \RuntimeException
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
|
||||
@@ -23,8 +23,8 @@ namespace App\Models;
|
||||
use Blacklight\utility\Utility;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Yadakhov\InsertOnDuplicateKey;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Settings - model for settings table.
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<?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;
|
||||
echo 'Inserting '.$item->setting.' into settings table'.PHP_EOL;
|
||||
\App\Models\Settings::insertIgnore(
|
||||
[
|
||||
'section' => 'site',
|
||||
@@ -14,4 +15,4 @@ foreach ($tmux as $item) {
|
||||
'setting'=> $item->setting,
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php';
|
||||
|
||||
use App\Models\Settings;
|
||||
use Blacklight\Tmux;
|
||||
use App\Models\Settings;
|
||||
|
||||
$page = new AdminPage();
|
||||
$tmux = new Tmux();
|
||||
|
||||
Reference in New Issue
Block a user