25/05 Regular Post (0 Comments)
-I just discovered Gelato
-diff --git a/admin/add.php b/admin/add.php deleted file mode 100644 index 100cf8c..0000000 --- a/admin/add.php +++ /dev/null @@ -1,197 +0,0 @@ - -/* =========================== - - gelato CMS development version - http://www.gelatocms.com/ - - gelato CMS is a free software licensed under GPL (General public license) - - =========================== */ -?> - -require_once('../config.php'); -include("../classes/user.class.php"); -include("../classes/gelato.class.php"); -include("../classes/templates.class.php"); -require_once("../classes/configuration.class.php"); - -$user = new user(); -$tumble = new gelato(); -$conf = new configuration(); -$template = new plantillas("admin"); - -if ($user->isAdmin()) { - - if(isset($_POST["btnAdd"])) { - unset($_POST["btnAdd"]); - - - if ($_POST["type"]=="2") { // is Photo type - if (isset($_POST["url"]) && $_POST["url"]!="") { - $photoName = getFileName($_POST["url"]); - if (!$tumble->savePhoto($_POST["url"])) { - header("Location: ".$conf->urlGelato."/admin/index.php?photo=false"); - die(); - } - $_POST["url"] = $conf->urlGelato."/uploads/".$photoName; - } - - if ( move_uploaded_file( $_FILES['photo']['tmp_name'], "../uploads/".$_FILES['photo']['name'] ) ) { - $_POST["url"] = $conf->urlGelato."/uploads/".$_FILES['photo']['name']; - } - - unset($_POST["photo"]); - unset($_POST["MAX_FILE_SIZE"]); - } - - if ($_POST["type"]=="7") { // is MP3 type - set_time_limit(300); - $mp3Name = getFileName($_POST["url"]); - if (!$tumble->saveMP3($_POST["url"])) { - header("Location: ".$conf->urlGelato."/admin/index.php?mp3=false"); - die(); - } - $_POST["url"] = $conf->urlGelato."/uploads/".$mp3Name; - } - - if (get_magic_quotes_gpc()) { - $_POST["title"] = htmlspecialchars(stripslashes($_POST["title"])); - $_POST["description"] = htmlspecialchars(stripslashes($_POST["description"])); - } else { - $_POST["title"] = htmlspecialchars($_POST["title"]); - $_POST["description"] = htmlspecialchars($_POST["description"]); - } - - $_POST["title"] = strip_tags($_POST["title"]); - $_POST["description"] = strip_tags($_POST["description"]); - - - if (isset($_POST["id_post"])) { - //$tumble->modifyPost($_POST, $_POST["id_post"]); - } else { - if ($tumble->addPost($_POST)) { - header("Location: ".$conf->urlGelato."/admin/index.php?added=true"); - die(); - } else { - header("Location: ".$conf->urlGelato."/admin/index.php?error=2&des=".$this->merror); - die(); - } - } - } elseif (isset($_GET["new"])) { -?> - - -
-
- Add content
-- gelato CMS :: PHP/MySQL Tumblelog Content Management System. -
-if (isset($_GET["deleted"])) { if ($_GET["deleted"]=="true") { - echo "
- - Cancel +
@@ -259,28 +260,104 @@ if ($user->isAdmin()) {25/05 Regular Post (0 Comments)
-I just discovered Gelato
-25/05 Regular Post (0 Comments)
-Another entry, this one has some varations in the content, even dares - to be in two lines.
-- - + +
-
+
- - + +
- - + +
-
- + diff --git a/admin/themes/admin/template_add_mp3.htm b/admin/themes/admin/template_add_mp3.htm index 192da1e..bb89cfd 100644 --- a/admin/themes/admin/template_add_mp3.htm +++ b/admin/themes/admin/template_add_mp3.htm @@ -1,14 +1,13 @@ -- - + +
-
+