Minor fixes
parent
dc80a021cf
commit
469e397185
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -169,19 +169,6 @@ if ($user->isAdmin()) {
|
|||
<label for="website">website:</label>
|
||||
<input class="input-text" name="website" id="website" type="text" value="<?=isset($register["website"])?$register["website"]:"";?>" />
|
||||
</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>
|
||||
<label for="about">about:</label><br />
|
||||
<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 {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue