Minor fixes

master
pecesama 2007-04-04 06:04:57 +00:00
parent dc80a021cf
commit 469e397185
4 changed files with 7 additions and 20 deletions

View File

@ -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();
}
}

View File

@ -168,20 +168,7 @@ if ($user->isAdmin()) {
<p>
<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>
<p>
<label for="about">about:</label><br />
<textarea rows="5" cols="50" name="about" id="about" tabindex="7"><?=isset($register["about"])?$register["about"]:"";?></textarea>

View File

@ -10,7 +10,7 @@
?>
<?
include "config.php";
include dirname(__FILE__)."/../config.php";
class configuration extends Conexion_Mysql {

View File

@ -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");
?>
?>