Fixed the error500 and headers changed
parent
92bf1afc45
commit
6becfa8cd8
|
|
@ -5,7 +5,8 @@
|
||||||
development version
|
development version
|
||||||
http://www.gelatocms.com/
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
gelato CMS is a free software licensed under GPL (General public license)
|
gelato CMS is a free software licensed under the GPL 2.0
|
||||||
|
Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
|
||||||
|
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
development version
|
development version
|
||||||
http://www.gelatocms.com/
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
gelato CMS is a free software licensed under GPL (General public license)
|
gelato CMS is a free software licensed under the GPL 2.0
|
||||||
|
Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
|
||||||
|
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
development version
|
development version
|
||||||
http://www.gelatocms.com/
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
gelato CMS is a free software licensed under GPL (General public license)
|
gelato CMS is a free software licensed under the GPL 2.0
|
||||||
|
Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
|
||||||
|
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,8 @@
|
||||||
development version
|
development version
|
||||||
http://www.gelatocms.com/
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
gelato CMS is a free software licensed under GPL (General public license)
|
gelato CMS is a free software licensed under the GPL 2.0
|
||||||
|
Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
|
||||||
|
|
||||||
=========================== */
|
=========================== */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
development version
|
development version
|
||||||
http://www.gelatocms.com/
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
gelato CMS is a free software licensed under GPL (General public license)
|
gelato CMS is a free software licensed under the GPL 2.0
|
||||||
|
Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
|
||||||
|
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
|
|
@ -24,7 +25,7 @@ $tumble = new gelato();
|
||||||
$conf = new configuration();
|
$conf = new configuration();
|
||||||
$template = new plantillas("admin");
|
$template = new plantillas("admin");
|
||||||
|
|
||||||
$isEdition = isset($_GET["edit"]);
|
$isEdition = (isset($_GET["edit"])) ? true : false;
|
||||||
$postId = ($isEdition) ? $_GET["edit"] : NULL;
|
$postId = ($isEdition) ? $_GET["edit"] : NULL;
|
||||||
|
|
||||||
if ($user->isAdmin()) {
|
if ($user->isAdmin()) {
|
||||||
|
|
@ -46,11 +47,11 @@ if ($user->isAdmin()) {
|
||||||
header("Location: ".$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"] = "../uploads/".$photoName;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( move_uploaded_file( $_FILES['photo']['tmp_name'], "../uploads/".sanitizeName($_FILES['photo']['name']) ) ) {
|
if ( move_uploaded_file( $_FILES['photo']['tmp_name'], "../uploads/".sanitizeName($_FILES['photo']['name']) ) ) {
|
||||||
$_POST["url"] = $conf->urlGelato."/uploads/".sanitizeName($_FILES['photo']['name']);
|
$_POST["url"] = "../uploads/".sanitizeName($_FILES['photo']['name']);
|
||||||
}
|
}
|
||||||
|
|
||||||
unset($_POST["photo"]);
|
unset($_POST["photo"]);
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
development version
|
development version
|
||||||
http://www.gelatocms.com/
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
gelato CMS is a free software licensed under GPL (General public license)
|
gelato CMS is a free software licensed under the GPL 2.0
|
||||||
|
Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
|
||||||
|
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
development version
|
development version
|
||||||
http://www.gelatocms.com/
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
gelato CMS is a free software licensed under GPL (General public license)
|
gelato CMS is a free software licensed under the GPL 2.0
|
||||||
|
Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
|
||||||
|
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
development version
|
development version
|
||||||
http://www.gelatocms.com/
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
gelato CMS is a free software licensed under GPL (General public license)
|
gelato CMS is a free software licensed under the GPL 2.0
|
||||||
|
Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
|
||||||
|
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
development version
|
development version
|
||||||
http://www.gelatocms.com/
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
gelato CMS is a free software licensed under GPL (General public license)
|
gelato CMS is a free software licensed under the GPL 2.0
|
||||||
|
Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
|
||||||
|
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
development version
|
development version
|
||||||
http://www.gelatocms.com/
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
gelato CMS is a free software licensed under GPL (General public license)
|
gelato CMS is a free software licensed under the GPL 2.0
|
||||||
|
Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
|
||||||
|
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
development version
|
development version
|
||||||
http://www.gelatocms.com/
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
gelato CMS is a free software licensed under GPL (General public license)
|
gelato CMS is a free software licensed under the GPL 2.0
|
||||||
|
Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
|
||||||
|
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
header ("Content-type: image/jpeg");
|
header ("Content-type: image/jpeg");
|
||||||
|
header('Cache-Control: max-age=172800, must-revalidate');
|
||||||
|
header('Expires: ' . date('r', time()+120));
|
||||||
/*
|
/*
|
||||||
JPEG / PNG Image Resizer
|
JPEG / PNG Image Resizer
|
||||||
Parameters (passed via URL):
|
Parameters (passed via URL):
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,8 @@
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
<?php
|
<?php
|
||||||
|
require_once("functions.php");
|
||||||
|
|
||||||
class plantillas {
|
class plantillas {
|
||||||
|
|
||||||
var $plantilla;
|
var $plantilla;
|
||||||
|
|
@ -71,6 +73,7 @@ class plantillas {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function cargarPlantillaConBloque($entrada, $salida, $plantilla_usar, $nombreBloque) {
|
function cargarPlantillaConBloque($entrada, $salida, $plantilla_usar, $nombreBloque) {
|
||||||
$plantilla_usar = "themes/".$this->plantilla."/".$plantilla_usar.".htm";
|
$plantilla_usar = "themes/".$this->plantilla."/".$plantilla_usar.".htm";
|
||||||
|
|
||||||
|
|
@ -92,6 +95,7 @@ class plantillas {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function procesaBloque($entrada, $salida, $bloque) {
|
function procesaBloque($entrada, $salida, $bloque) {
|
||||||
for ($i = 0; $i < count($entrada); $i++) {
|
for ($i = 0; $i < count($entrada); $i++) {
|
||||||
$bloque = str_replace($entrada[$i], $salida[$i], $bloque);
|
$bloque = str_replace($entrada[$i], $salida[$i], $bloque);
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
development version
|
development version
|
||||||
http://www.gelatocms.com/
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
gelato CMS is a free software licensed under GPL (General public license)
|
gelato CMS is a free software licensed under the GPL 2.0
|
||||||
|
Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
|
||||||
|
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
development version
|
development version
|
||||||
http://www.gelatocms.com/
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
gelato CMS is a free software licensed under GPL (General public license)
|
gelato CMS is a free software licensed under the GPL 2.0
|
||||||
|
Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
|
||||||
|
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
development version
|
development version
|
||||||
http://www.gelatocms.com/
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
gelato CMS is a free software licensed under GPL (General public license)
|
gelato CMS is a free software licensed under the GPL 2.0
|
||||||
|
Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
|
||||||
|
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
development version
|
development version
|
||||||
http://www.gelatocms.com/
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
gelato CMS is a free software licensed under GPL (General public license)
|
gelato CMS is a free software licensed under the GPL 2.0
|
||||||
|
Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
|
||||||
|
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
development version
|
development version
|
||||||
http://www.gelatocms.com/
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
gelato CMS is a free software licensed under GPL (General public license)
|
gelato CMS is a free software licensed under the GPL 2.0
|
||||||
|
Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
|
||||||
|
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,46 @@
|
||||||
|
== CREDITS= =
|
||||||
|
Gelato developers and designers (in chronological order):
|
||||||
|
|
||||||
|
Pedro Santana [ http://www.pecesama.net/weblog/ ]
|
||||||
|
Jorge Condomí [ http://www.raven.com.ar/ ]
|
||||||
|
Víctor de la Rocha [ http://blog.mis-algoritmos.com/ ]
|
||||||
|
Victor Bracco [ http://www.vbracco.com.ar/blog/ ]
|
||||||
|
|
||||||
|
= COPYRIGHT NOTICES =
|
||||||
|
This product includes code and libraries developed by third parties, which are governed by different licenses. These components, and their licenses, are listed below.
|
||||||
|
|
||||||
|
= Mootools =
|
||||||
|
Copyright (c) 2006 Valerio Proietti, http://mad4milk.net
|
||||||
|
Mootools is available under MIT Style License.
|
||||||
|
|
||||||
|
= Slimbox =
|
||||||
|
Copyright (c) Christophe Beyls, http://www.digitalia.be
|
||||||
|
Slimbox available under MIT Style License.
|
||||||
|
|
||||||
|
= Sortable =
|
||||||
|
Copyright (c) 1997-2006 Stuart Langridge, Joost de Valk, http://www.joostdevalk.nl/code/sortable-table/
|
||||||
|
Sortable available under MIT license.
|
||||||
|
|
||||||
|
= MP3 Audio Player =
|
||||||
|
Copyright (c) 2005-2006 Martin Laine, http://www.1pixelout.net
|
||||||
|
MP3 Audio Player available under GNU General Public License.
|
||||||
|
|
||||||
|
= JPEG / PNG Image Resizer =
|
||||||
|
Copyright (c) Michael John G. Lopez, http://www.sydel.net
|
||||||
|
JPEG / PNG Image Resizer available under an Open License.
|
||||||
|
|
||||||
|
= Clase Conexion_Mysql =
|
||||||
|
Copyright (c) Pedro Santana, http://www.pecesama.net/weblog/
|
||||||
|
Clase Conexion_Mysql available under MIT license.
|
||||||
|
|
||||||
|
= Digg Style Paginator Class =
|
||||||
|
Copyright (c) Victor De la Rocha, http://www.mis-algoritmos.com/
|
||||||
|
Digg Style Paginator Class available under MIT license.
|
||||||
|
|
||||||
|
= Clase plantillas =
|
||||||
|
Copyright (c) Pedro Santana, http://www.pecesama.net/weblog/
|
||||||
|
Clase plantillas available under MIT license.
|
||||||
|
|
||||||
|
= Textile class =
|
||||||
|
Copyright (c) Jim Riggs, http://jimandlissa.com/project/textilephp
|
||||||
|
Textile class available under GNU General Public License.
|
||||||
3
rss.php
3
rss.php
|
|
@ -5,7 +5,8 @@
|
||||||
development version
|
development version
|
||||||
http://www.gelatocms.com/
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
gelato CMS is a free software licensed under GPL (General public license)
|
gelato CMS is a free software licensed under the GPL 2.0
|
||||||
|
Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
|
||||||
|
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
||||||
development version
|
development version
|
||||||
http://www.gelatocms.com/
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
gelato CMS is a free software licensed under GPL (General public license)
|
gelato CMS is a free software licensed under the GPL 2.0
|
||||||
|
Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
|
||||||
|
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
// Silence is golden.
|
/* ===========================
|
||||||
|
|
||||||
|
gelato CMS - A PHP based tumblelog CMS
|
||||||
|
development version
|
||||||
|
http://www.gelatocms.com/
|
||||||
|
|
||||||
|
gelato CMS is a free software licensed under the GPL 2.0
|
||||||
|
Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
|
||||||
|
|
||||||
|
=========================== */
|
||||||
|
?>
|
||||||
|
<?php
|
||||||
|
// Nothing here
|
||||||
?>
|
?>
|
||||||
Loading…
Reference in New Issue