|
@@ -30,7 +30,7 @@ if ($user->isAdmin()) {
|
30
|
30
|
if (isset($_POST["url"]) && $_POST["url"]!="") {
|
31
|
31
|
$photoName = getFileName($_POST["url"]);
|
32
|
32
|
if (!$tumble->savePhoto($_POST["url"])) {
|
33
|
|
- header("Location: ".$this->conf->urlGelato."/admin/index.php?photo=false");
|
|
33
|
+ header("Location: ".$conf->urlGelato."/admin/index.php?photo=false");
|
34
|
34
|
die();
|
35
|
35
|
}
|
36
|
36
|
$_POST["url"] = $conf->urlGelato."/uploads/".$photoName;
|
|
@@ -48,7 +48,7 @@ if ($user->isAdmin()) {
|
48
|
48
|
set_time_limit(300);
|
49
|
49
|
$mp3Name = getFileName($_POST["url"]);
|
50
|
50
|
if (!$tumble->saveMP3($_POST["url"])) {
|
51
|
|
- header("Location: ".$this->conf->urlGelato."/admin/index.php?mp3=false");
|
|
51
|
+ header("Location: ".$conf->urlGelato."/admin/index.php?mp3=false");
|
52
|
52
|
die();
|
53
|
53
|
}
|
54
|
54
|
$_POST["url"] = $conf->urlGelato."/uploads/".$mp3Name;
|
|
@@ -59,10 +59,10 @@ if ($user->isAdmin()) {
|
59
|
59
|
|
60
|
60
|
} else {
|
61
|
61
|
if ($tumble->addPost($_POST)) {
|
62
|
|
- header("Location: ".$this->conf->urlGelato."/admin/index.php?added=true");
|
|
62
|
+ header("Location: ".$conf->urlGelato."/admin/index.php?added=true");
|
63
|
63
|
die();
|
64
|
64
|
} else {
|
65
|
|
- header("Location: ".$this->conf->urlGelato."/admin/index.php?error=2&des=".$this->merror);
|
|
65
|
+ header("Location: ".$conf->urlGelato."/admin/index.php?error=2&des=".$this->merror);
|
66
|
66
|
die();
|
67
|
67
|
}
|
68
|
68
|
}
|