mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
First push of autoloading features.
This commit is contained in:
+4
-8
@@ -1,11 +1,7 @@
|
||||
<?php
|
||||
|
||||
require_once(dirname(__FILE__)."/../../bin/config.php");
|
||||
require_once (WWW_DIR.'/lib/site.php');
|
||||
require_once (WWW_DIR.'/lib/util.php');
|
||||
require_once(WWW_DIR . "/lib/ColorCLI.php");
|
||||
require_once(WWW_DIR.'/lib/Tmux.php');
|
||||
require_once(WWW_DIR.'/lib/smarty/Smarty.class.php');
|
||||
use newznab\db\DB;
|
||||
use newznab\utility\Utility;
|
||||
|
||||
// Function inspired by : http://stackoverflow.com/questions/1883079/best-practice-import-mysql-file-in-php-split-queries/2011454#2011454
|
||||
function SplitSQL($file, $delimiter = ';')
|
||||
@@ -77,7 +73,7 @@ function SplitSQL($file, $delimiter = ';')
|
||||
|
||||
function BackupDatabase()
|
||||
{
|
||||
$db = new DB();
|
||||
$db = new newznab\db\DB();
|
||||
$c = new ColorCLI();
|
||||
$DIR = dirname (__FILE__);
|
||||
|
||||
@@ -109,7 +105,7 @@ if (isset($os) && $os == "unix") {
|
||||
$currentversion = $tmux->sqlpatch;
|
||||
$patched = 0;
|
||||
$patches = array();
|
||||
$db = new DB();
|
||||
$db = new newznab\db\DB();
|
||||
$backedup = false;
|
||||
$c = new ColorCLI();
|
||||
$DIR = dirname (__FILE__);
|
||||
|
||||
Reference in New Issue
Block a user