diff --git a/admin/admin.php b/admin/admin.php index a57d65c..12828d8 100644 --- a/admin/admin.php +++ b/admin/admin.php @@ -11,10 +11,8 @@ if(!defined('entry')) define('entry',true); =========================== */ -include("../classes/user.class.php"); -include("../classes/functions.php"); -require_once("../classes/configuration.class.php"); require_once('../entry.php'); +global $user, $conf, $tumble; if ($user->isAdmin()) { diff --git a/admin/ajax.php b/admin/ajax.php index 34b76f0..e8c90fd 100644 --- a/admin/ajax.php +++ b/admin/ajax.php @@ -11,9 +11,10 @@ if(!defined('entry'))define('entry', true); =========================== */ ?> -isAdmin()) { if ($_GET["action"]) { diff --git a/admin/comments.php b/admin/comments.php index 601ab41..8e12f83 100644 --- a/admin/comments.php +++ b/admin/comments.php @@ -13,6 +13,7 @@ if(!defined('entry')) define('entry',true); ?> isAdmin()) { diff --git a/admin/options.php b/admin/options.php index 9be28dc..16a56ca 100644 --- a/admin/options.php +++ b/admin/options.php @@ -12,11 +12,8 @@ if(!defined('entry')) define('entry',true); =========================== */ ?> isAdmin()) { diff --git a/admin/settings.php b/admin/settings.php index 16e7165..91a6abc 100644 --- a/admin/settings.php +++ b/admin/settings.php @@ -11,11 +11,8 @@ if(!defined('entry')) define('entry',true); =========================== */ -include("../classes/functions.php"); -include("../classes/user.class.php"); -include("../classes/gelato.class.php"); -require_once("../classes/configuration.class.php"); require_once('../entry.php'); +global $user, $conf, $tumble; if ($user->isAdmin()) { diff --git a/admin/user.php b/admin/user.php index dd0d2ba..82931b8 100644 --- a/admin/user.php +++ b/admin/user.php @@ -14,7 +14,6 @@ if(!defined('entry')) define('entry', true); template); // My approach to MVC diff --git a/install.php b/install.php index dd904d8..5c9b2ce 100644 --- a/install.php +++ b/install.php @@ -11,12 +11,12 @@ if(!defined('entry'))define('entry', true); =========================== */ -$configFile = dirname(__FILE__).DIRECTORY_SEPARATOR."config.php"; +require('entry.php'); +global $user, $conf, $tumble; -include('classes/functions.php'); -include('classes/install.class.php'); - +include('classes/install.class.php'); $install = new Install(); + $install->data = $_POST; $install->check_form(); @@ -200,4 +200,4 @@ $install->check_form(); - + \ No newline at end of file diff --git a/rss.php b/rss.php index ed9a9ea..5782344 100644 --- a/rss.php +++ b/rss.php @@ -12,12 +12,12 @@ if(!defined('entry')) define('entry',true); =========================== */ ?> \n"; ?> @@ -36,8 +36,6 @@ if(!defined('entry')) define('entry',true); getPosts("20"); if ($tumble->contarRegistros()>0) { diff --git a/update.php b/update.php index cbd6d12..79c7299 100644 --- a/update.php +++ b/update.php @@ -13,7 +13,8 @@ if(!defined('entry')) define('entry',true); ?>