First push of autoloading features.

This commit is contained in:
Darko
2015-04-21 12:51:32 +02:00
parent b72550204a
commit 987748dfba
709 changed files with 17008 additions and 2626 deletions
+4 -8
View File
@@ -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__);