Fixed the error500 and headers changed

master
pecesama 2007-07-20 04:15:28 +00:00
parent 92bf1afc45
commit 6becfa8cd8
22 changed files with 107 additions and 25 deletions

View File

@ -5,7 +5,8 @@
development version
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>
=========================== */
?>

View File

@ -5,7 +5,8 @@
development version
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>
=========================== */
?>

View File

@ -5,7 +5,8 @@
development version
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>
=========================== */
?>

View File

@ -4,7 +4,8 @@
development version
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>
=========================== */

View File

@ -5,7 +5,8 @@
development version
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();
$template = new plantillas("admin");
$isEdition = isset($_GET["edit"]);
$isEdition = (isset($_GET["edit"])) ? true : false;
$postId = ($isEdition) ? $_GET["edit"] : NULL;
if ($user->isAdmin()) {
@ -46,11 +47,11 @@ if ($user->isAdmin()) {
header("Location: ".$conf->urlGelato."/admin/index.php?photo=false");
die();
}
$_POST["url"] = $conf->urlGelato."/uploads/".$photoName;
$_POST["url"] = "../uploads/".$photoName;
}
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"]);

View File

@ -5,7 +5,8 @@
development version
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>
=========================== */
?>

View File

@ -5,7 +5,8 @@
development version
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>
=========================== */
?>

View File

@ -5,7 +5,8 @@
development version
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>
=========================== */
?>

View File

@ -5,7 +5,8 @@
development version
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>
=========================== */
?>

View File

@ -5,7 +5,8 @@
development version
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>
=========================== */
?>

View File

@ -5,7 +5,8 @@
development version
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>
=========================== */
?>

View File

@ -1,5 +1,7 @@
<?php
header ("Content-type: image/jpeg");
header('Cache-Control: max-age=172800, must-revalidate');
header('Expires: ' . date('r', time()+120));
/*
JPEG / PNG Image Resizer
Parameters (passed via URL):

View File

@ -12,6 +12,8 @@
*/
?>
<?php
require_once("functions.php");
class plantillas {
var $plantilla;
@ -71,6 +73,7 @@ class plantillas {
}
}
function cargarPlantillaConBloque($entrada, $salida, $plantilla_usar, $nombreBloque) {
$plantilla_usar = "themes/".$this->plantilla."/".$plantilla_usar.".htm";
@ -92,6 +95,7 @@ class plantillas {
}
}
function procesaBloque($entrada, $salida, $bloque) {
for ($i = 0; $i < count($entrada); $i++) {
$bloque = str_replace($entrada[$i], $salida[$i], $bloque);

View File

@ -5,7 +5,8 @@
development version
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>
=========================== */
?>

View File

@ -5,7 +5,8 @@
development version
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>
=========================== */
?>

View File

@ -5,7 +5,8 @@
development version
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>
=========================== */
?>

View File

@ -5,7 +5,8 @@
development version
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>
=========================== */
?>

View File

@ -5,7 +5,8 @@
development version
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>
=========================== */
?>

46
notice.txt Normal file
View File

@ -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.

View File

@ -5,7 +5,8 @@
development version
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>
=========================== */
?>

View File

@ -5,7 +5,8 @@
development version
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>
=========================== */
?>

View File

@ -1,3 +1,15 @@
<?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
?>