diff --git a/admin/add.php b/admin/add.php index 976712e..54b03bb 100644 --- a/admin/add.php +++ b/admin/add.php @@ -30,7 +30,7 @@ if ($user->isAdmin()) { if (isset($_POST["url"]) && $_POST["url"]!="") { $photoName = getFileName($_POST["url"]); if (!$tumble->savePhoto($_POST["url"])) { - header("Location: ".$this->conf->urlGelato."/admin/index.php?photo=false"); + header("Location: ".$conf->urlGelato."/admin/index.php?photo=false"); die(); } $_POST["url"] = $conf->urlGelato."/uploads/".$photoName; @@ -48,7 +48,7 @@ if ($user->isAdmin()) { set_time_limit(300); $mp3Name = getFileName($_POST["url"]); if (!$tumble->saveMP3($_POST["url"])) { - header("Location: ".$this->conf->urlGelato."/admin/index.php?mp3=false"); + header("Location: ".$conf->urlGelato."/admin/index.php?mp3=false"); die(); } $_POST["url"] = $conf->urlGelato."/uploads/".$mp3Name; @@ -59,10 +59,10 @@ if ($user->isAdmin()) { //$tumble->modifyPost($_POST, $_POST["id_post"]); } else { if ($tumble->addPost($_POST)) { - header("Location: ".$this->conf->urlGelato."/admin/index.php?added=true"); + header("Location: ".$conf->urlGelato."/admin/index.php?added=true"); die(); } else { - header("Location: ".$this->conf->urlGelato."/admin/index.php?error=2&des=".$this->merror); + header("Location: ".$conf->urlGelato."/admin/index.php?error=2&des=".$this->merror); die(); } } diff --git a/admin/user.php b/admin/user.php index 3ad1dc0..71a48c1 100644 --- a/admin/user.php +++ b/admin/user.php @@ -168,20 +168,7 @@ if ($user->isAdmin()) {
" /> -
-- - -
+
diff --git a/classes/configuration.class.php b/classes/configuration.class.php
index 9bab5b9..b76c9e1 100644
--- a/classes/configuration.class.php
+++ b/classes/configuration.class.php
@@ -10,7 +10,7 @@
?>
-include "config.php";
+include dirname(__FILE__)."/../config.php";
class configuration extends Conexion_Mysql {
diff --git a/config-sample.php b/config-sample.php
index 2d68ab9..69daeef 100644
--- a/config-sample.php
+++ b/config-sample.php
@@ -27,4 +27,4 @@
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
require_once(Absolute_Path."classes/mysql_connection.class.php");
-?>
\ No newline at end of file
+?>
\ No newline at end of file