mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Change site table to settings table, move files around and adjust to new settings table. patchDB needs to be fixed for the final patch is is used for.
This commit is contained in:
+4
-4
@@ -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