Minor fixes
parent
dc80a021cf
commit
469e397185
|
|
@ -30,7 +30,7 @@ if ($user->isAdmin()) {
|
||||||
if (isset($_POST["url"]) && $_POST["url"]!="") {
|
if (isset($_POST["url"]) && $_POST["url"]!="") {
|
||||||
$photoName = getFileName($_POST["url"]);
|
$photoName = getFileName($_POST["url"]);
|
||||||
if (!$tumble->savePhoto($_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();
|
die();
|
||||||
}
|
}
|
||||||
$_POST["url"] = $conf->urlGelato."/uploads/".$photoName;
|
$_POST["url"] = $conf->urlGelato."/uploads/".$photoName;
|
||||||
|
|
@ -48,7 +48,7 @@ if ($user->isAdmin()) {
|
||||||
set_time_limit(300);
|
set_time_limit(300);
|
||||||
$mp3Name = getFileName($_POST["url"]);
|
$mp3Name = getFileName($_POST["url"]);
|
||||||
if (!$tumble->saveMP3($_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();
|
die();
|
||||||
}
|
}
|
||||||
$_POST["url"] = $conf->urlGelato."/uploads/".$mp3Name;
|
$_POST["url"] = $conf->urlGelato."/uploads/".$mp3Name;
|
||||||
|
|
@ -59,10 +59,10 @@ if ($user->isAdmin()) {
|
||||||
//$tumble->modifyPost($_POST, $_POST["id_post"]);
|
//$tumble->modifyPost($_POST, $_POST["id_post"]);
|
||||||
} else {
|
} else {
|
||||||
if ($tumble->addPost($_POST)) {
|
if ($tumble->addPost($_POST)) {
|
||||||
header("Location: ".$this->conf->urlGelato."/admin/index.php?added=true");
|
header("Location: ".$conf->urlGelato."/admin/index.php?added=true");
|
||||||
die();
|
die();
|
||||||
} else {
|
} 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();
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -168,20 +168,7 @@ if ($user->isAdmin()) {
|
||||||
<p>
|
<p>
|
||||||
<label for="website">website:</label>
|
<label for="website">website:</label>
|
||||||
<input class="input-text" name="website" id="website" type="text" value="<?=isset($register["website"])?$register["website"]:"";?>" />
|
<input class="input-text" name="website" id="website" type="text" value="<?=isset($register["website"])?$register["website"]:"";?>" />
|
||||||
</p>
|
</p>
|
||||||
<p>
|
|
||||||
<label for="template">template:</label>
|
|
||||||
<select name="template" id="template">
|
|
||||||
<?
|
|
||||||
$themes = getThemes();
|
|
||||||
$num_elements = count($themes);
|
|
||||||
|
|
||||||
for ($i=0; $i < $num_elements; $i++) {
|
|
||||||
echo "<option value=\"".$themes[$i]."\">".$themes[$i]."</option>\n";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
|
||||||
</p>
|
|
||||||
<p>
|
<p>
|
||||||
<label for="about">about:</label><br />
|
<label for="about">about:</label><br />
|
||||||
<textarea rows="5" cols="50" name="about" id="about" tabindex="7"><?=isset($register["about"])?$register["about"]:"";?></textarea>
|
<textarea rows="5" cols="50" name="about" id="about" tabindex="7"><?=isset($register["about"])?$register["about"]:"";?></textarea>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
?>
|
?>
|
||||||
<?
|
<?
|
||||||
|
|
||||||
include "config.php";
|
include dirname(__FILE__)."/../config.php";
|
||||||
|
|
||||||
class configuration extends Conexion_Mysql {
|
class configuration extends Conexion_Mysql {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,4 +27,4 @@
|
||||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||||
header("Pragma: no-cache");
|
header("Pragma: no-cache");
|
||||||
require_once(Absolute_Path."classes/mysql_connection.class.php");
|
require_once(Absolute_Path."classes/mysql_connection.class.php");
|
||||||
?>
|
?>
|
||||||
Loading…
Reference in New Issue