mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 18:58:56 +00:00
Fisrt batch of changes from site to settings.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . "/../../bin/config.php");
|
||||
|
||||
use newznab\db\DB;
|
||||
use newznab\db\Settings;
|
||||
use newznab\utility\Utility;
|
||||
|
||||
// Function inspired by : http://stackoverflow.com/questions/1883079/best-practice-import-mysql-file-in-php-split-queries/2011454#2011454
|
||||
@@ -14,7 +14,7 @@ function SplitSQL($file, $delimiter = ';')
|
||||
|
||||
if (is_resource($file) === true) {
|
||||
$query = array();
|
||||
$db = new DB();
|
||||
$db = new Settings();
|
||||
$dbsys = DB_TYPE;
|
||||
$c = new ColorCLI();
|
||||
|
||||
@@ -74,7 +74,7 @@ function SplitSQL($file, $delimiter = ';')
|
||||
|
||||
function BackupDatabase()
|
||||
{
|
||||
$db = new DB();
|
||||
$db = new Settings();
|
||||
$c = new ColorCLI();
|
||||
$DIR = dirname (__FILE__);
|
||||
|
||||
@@ -106,7 +106,7 @@ if (isset($os) && $os == "unix") {
|
||||
$currentversion = $tmux->sqlpatch;
|
||||
$patched = 0;
|
||||
$patches = array();
|
||||
$db = new DB();
|
||||
$db = new Settings();
|
||||
$backedup = false;
|
||||
$c = new ColorCLI();
|
||||
$DIR = dirname (__FILE__);
|
||||
|
||||
Reference in New Issue
Block a user