0.8 version
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
/* ===========================
|
||||
|
||||
gelato CMS development version
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
=========================== */
|
||||
?>
|
||||
<?
|
||||
<?php
|
||||
require_once('../config.php');
|
||||
include("../classes/user.class.php");
|
||||
require_once("../classes/configuration.class.php");
|
||||
|
|
@ -24,9 +24,9 @@ if ($user->isAdmin()) {
|
|||
<head>
|
||||
<title>gelato :: admin users</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link rel="shortcut icon" href="<?=$conf->urlGelato;?>/images/favicon.ico" />
|
||||
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/mootools.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/sortable.js"></script>
|
||||
<link rel="shortcut icon" href="<?php echo $conf->urlGelato;?>/images/favicon.ico" />
|
||||
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/mootools.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/sortable.js"></script>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
window.onload = function() {
|
||||
|
|
@ -40,7 +40,7 @@ if ($user->isAdmin()) {
|
|||
-->
|
||||
</script>
|
||||
<style type="text/css" media="screen">
|
||||
@import "<?=$conf->urlGelato;?>/admin/css/style.css";
|
||||
@import "<?php echo $conf->urlGelato;?>/admin/css/style.css";
|
||||
</style>
|
||||
</head>
|
||||
|
||||
|
|
@ -48,10 +48,10 @@ if ($user->isAdmin()) {
|
|||
<div id="div-process" style="display:none;">Processing request...</div>
|
||||
<div id="cont">
|
||||
<div id="head">
|
||||
<h1><a href="<?=$conf->urlGelato;?>/admin/index.php" title="gelato :: home">gelato cms</a></h1>
|
||||
<h1><a href="<?php echo $conf->urlGelato;?>/admin/index.php" title="gelato :: home">gelato cms</a></h1>
|
||||
<ul id="nav">
|
||||
<li><a href="<?=$conf->urlGelato;?>/" title="Take me to the tumblelog">View Tumblelog</a></li>
|
||||
<li><a href="close.php" title="Log off" onclick="return exit('div-process','<?=$conf->urlGelato;?>/admin/ajax.php?action=close');">Log out</a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/" title="Take me to the tumblelog">View Tumblelog</a></li>
|
||||
<li><a href="close.php" title="Log off" onclick="return exit('div-process','<?php echo $conf->urlGelato;?>/admin/ajax.php?action=close');">Log out</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="main">
|
||||
|
|
@ -59,13 +59,13 @@ if ($user->isAdmin()) {
|
|||
<div class="box">
|
||||
<ul class="menu manage">
|
||||
<h3>Manage</h3>
|
||||
<li><a href="#">Settings</a></li>
|
||||
<li><a href="<?=$conf->urlGelato;?>/admin/index.php">Posts</a></li>
|
||||
<li><a href="<?=$conf->urlGelato;?>/admin/user.php">Add user</a></li>
|
||||
<li class="selected"><a href="#">Users</a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/admin/settings.php">Settings</a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/admin/index.php">Posts</a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/admin/user.php">Add user</a></li>
|
||||
<li class="selected"><a>Users</a></li>
|
||||
</ul>
|
||||
<p> </p>
|
||||
<?
|
||||
<?php
|
||||
if (isset($_GET["added"])) {
|
||||
if ($_GET["added"]=="true") {
|
||||
echo "<div class=\"exito\" id=\"divMessages\">The user has been added successfully.</div>";
|
||||
|
|
@ -102,27 +102,27 @@ if ($user->isAdmin()) {
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
<?php
|
||||
$odd=false;
|
||||
$rs = $user->getUsers();
|
||||
if ($user->contarRegistros()>0) {
|
||||
while($register = mysql_fetch_array($rs)) {
|
||||
?>
|
||||
<tr <? if ($odd) { echo 'class="odd"'; } $odd=!$odd; ?>>
|
||||
<tr <?php if ($odd) { echo 'class="odd"'; } $odd=!$odd; ?>>
|
||||
<td>
|
||||
<? echo $register["login"]."\n"; ?>
|
||||
<?php echo $register["login"]."\n"; ?>
|
||||
</td>
|
||||
<td>
|
||||
<? echo $register["name"]."\n"; ?>
|
||||
<?php echo $register["name"]."\n"; ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="user.php?edit=<?=$register["id_user"]; ?>">Edit</a>
|
||||
<a href="user.php?edit=<?php echo $register["id_user"]; ?>">Edit</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="user.php?delete=<?=$register["id_user"]; ?>">Delete</a>
|
||||
<a href="user.php?delete=<?php echo $register["id_user"]; ?>">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
@ -130,7 +130,7 @@ if ($user->isAdmin()) {
|
|||
<tr>
|
||||
<td colspan="4"><div class="exito">No users available.</div></td>
|
||||
</tr>
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
|
|
@ -141,12 +141,12 @@ if ($user->isAdmin()) {
|
|||
</div>
|
||||
</div>
|
||||
<div id="foot">
|
||||
<a href="http://www.gelatocms.com/" title="gelato CMS" target="_blank">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
|
||||
<a href="http://www.gelatocms.com/" title="gelato CMS">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<?
|
||||
<?php
|
||||
} else {
|
||||
header("Location: ".$conf->urlGelato."/login.php");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
/* ===========================
|
||||
|
||||
gelato CMS development version
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
=========================== */
|
||||
?>
|
||||
<?
|
||||
<?php
|
||||
require_once('../config.php');
|
||||
include("../classes/user.class.php");
|
||||
$user = new user();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
/* ===========================
|
||||
|
||||
gelato CMS development version
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
=========================== */
|
||||
?>
|
||||
<?
|
||||
<?php
|
||||
require_once('../config.php');
|
||||
include("../classes/user.class.php");
|
||||
|
||||
|
|
@ -38,16 +38,16 @@ $user->closeSession()
|
|||
<div class="ventana">
|
||||
<p class="titulo"><span class="handle" style="cursor:move;">Closing session</span></p>
|
||||
<p>
|
||||
<?
|
||||
<?php
|
||||
if (@session_destroy()) {
|
||||
?>
|
||||
</p>
|
||||
<h3>Ending session...</h3>
|
||||
<?
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<h3>Has happened an error when closing the session.</h3>
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
|
|
@ -55,7 +55,7 @@ if (@session_destroy()) {
|
|||
</div>
|
||||
<div id="pie">
|
||||
<p>
|
||||
<a href="http://www.gelatocms.com/" title="gelato CMS" target="_blank">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
|
||||
<a href="http://www.gelatocms.com/" title="gelato CMS">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -14,9 +14,11 @@ div, p, ul, ol, li, h1, h2, h3, h4, h5, h6, h7,form, span, pre, a{margin:0; padd
|
|||
|
||||
h1, h2, h3, h4, h5, h6, h7{ font-weight:normal;}
|
||||
|
||||
a, a:link, a:visited, a:active{ color:#000; text-decoration:none; outline:none;}
|
||||
a, a:link, a:visited, a:active{ color:#000000; text-decoration:none; outline:none;}
|
||||
a:hover{ text-decoration:underline; color:#000000; outline:none;}
|
||||
|
||||
.inslnl { text-decoration:underline; }
|
||||
|
||||
acronym{ border-bottom: 1px dotted #666; cursor:help;}
|
||||
fieldset{ border:none; margin:0; padding:0;}
|
||||
|
||||
|
|
@ -66,6 +68,17 @@ form.newpost input.txt{ background: #fff url(images/grad-small.png) top left rep
|
|||
form.newpost input.btn{ }
|
||||
form.newpost textarea{background: #fff url(images/grad-big.png) top left repeat-x; height:190px; border:1px solid #999; width:490px; padding:5px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:0.8em;}
|
||||
|
||||
legend.install{
|
||||
font: normal 16.5px/17px georgia, "times new roman", serif;
|
||||
border: 0;
|
||||
margin-top: 0px;
|
||||
padding-top:0;
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
color: #c60;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.tabla{ background-color:#FFFBFF; margin:20px 15px; }
|
||||
.entry{ background-color:#efefef; border:1px solid #ccc; margin:20px 15px;}
|
||||
.info{ border-bottom:1px solid #aaa; position:relative; display:block; padding:4px 10px; height:20px; }
|
||||
|
|
@ -104,6 +117,12 @@ a.linkFrm:hover{ text-decoration:underline; color:#297aab; outline:none;}
|
|||
.exito { width:80%; background: #F4FBF5 url('../../images/information.png') 15px center no-repeat; border-top: 2px solid #006600; border-bottom: 2px solid #006600; margin: 0 auto; padding: 5px 20px 5px 45px; }
|
||||
.information { width:80%; background: #FFF6BF url('../../images/icon_info.gif') 15px center no-repeat; border-top: 2px solid #FFD324; border-bottom: 2px solid #FFD324; margin: 0 auto;padding: 5px 20px 5px 45px; }
|
||||
|
||||
#update { text-align:center; font-size: 10px; color: #000; }
|
||||
#update a { color: #000; text-decoration:none; }
|
||||
#update a:visited { color: #000; text-decoration:none; }
|
||||
#update a:active { color: #000; text-decoration:none; }
|
||||
#update a:hover { color: #000; text-decoration:underline; }
|
||||
|
||||
/* Pagination */
|
||||
|
||||
div.pagination { text-align:center; padding:3px; margin:3px; }
|
||||
|
|
|
|||
176
admin/index.php
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
/* ===========================
|
||||
|
||||
gelato CMS development version
|
||||
|
|
@ -8,8 +8,9 @@
|
|||
|
||||
=========================== */
|
||||
?>
|
||||
<?
|
||||
<?php
|
||||
require_once('../config.php');
|
||||
include("../classes/functions.php");
|
||||
include("../classes/user.class.php");
|
||||
include("../classes/pagination.php");
|
||||
include("../classes/gelato.class.php");
|
||||
|
|
@ -22,9 +23,17 @@ $tumble = new gelato();
|
|||
$conf = new configuration();
|
||||
$template = new plantillas("admin");
|
||||
|
||||
$isEdition = isset($_GET["edit"]);
|
||||
$postId = ($isEdition) ? $_GET["edit"] : NULL;
|
||||
|
||||
if ($user->isAdmin()) {
|
||||
|
||||
if (isset($_GET["delete"])) {
|
||||
$tumble->deletePost($_GET['delete']);
|
||||
header("Location: index.php?deleted=true");
|
||||
die();
|
||||
}
|
||||
|
||||
if(isset($_POST["btnAdd"])) {
|
||||
unset($_POST["btnAdd"]);
|
||||
|
||||
|
|
@ -54,15 +63,14 @@ if ($user->isAdmin()) {
|
|||
header("Location: ".$conf->urlGelato."/admin/index.php?mp3=false");
|
||||
die();
|
||||
}
|
||||
if (isMP3($remoteFileName)) {
|
||||
$_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"] = stripslashes($_POST["title"]);
|
||||
$_POST["description"] = stripslashes($_POST["description"]);
|
||||
}
|
||||
|
||||
$_POST["title"] = strip_tags($_POST["title"]);
|
||||
|
|
@ -70,7 +78,7 @@ if ($user->isAdmin()) {
|
|||
|
||||
|
||||
if (isset($_POST["id_post"])) {
|
||||
//$tumble->modifyPost($_POST, $_POST["id_post"]);
|
||||
$tumble->modifyPost($_POST, $_POST["id_post"]);
|
||||
} else {
|
||||
if ($tumble->addPost($_POST)) {
|
||||
header("Location: ".$conf->urlGelato."/admin/index.php?added=true");
|
||||
|
|
@ -80,18 +88,22 @@ if ($user->isAdmin()) {
|
|||
die();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ($isEdition) {
|
||||
$post = $tumble->getPost($postId);
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>gelato :: Control panel</title>
|
||||
<link rel="shortcut icon" href="<?=$conf->urlGelato;?>/images/favicon.ico" />
|
||||
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/tools.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/mootools.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/slimbox.js"></script>
|
||||
<script type="text/javascript">
|
||||
<title>gelato :: control panel</title>
|
||||
<link rel="shortcut icon" href="<?php echo $conf->urlGelato;?>/images/favicon.ico" />
|
||||
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/tools.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/mootools.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/slimbox.js"></script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
<!--
|
||||
function exit(el, path) {
|
||||
el = $(el);
|
||||
|
|
@ -117,8 +129,8 @@ if ($user->isAdmin()) {
|
|||
-->
|
||||
</script>
|
||||
<style type="text/css" media="screen">
|
||||
@import "<?=$conf->urlGelato;?>/admin/css/style.css";
|
||||
@import "<?=$conf->urlGelato;?>/admin/css/slimbox.css";
|
||||
@import "<?php echo $conf->urlGelato;?>/admin/css/style.css";
|
||||
@import "<?php echo $conf->urlGelato;?>/admin/css/slimbox.css";
|
||||
</style>
|
||||
</head>
|
||||
|
||||
|
|
@ -126,41 +138,47 @@ if ($user->isAdmin()) {
|
|||
<div id="div-process" style="display:none;">Processing request...</div>
|
||||
<div id="cont">
|
||||
<div id="head">
|
||||
<h1><a href="<?=$conf->urlGelato;?>/admin/index.php" title="gelato :: home">gelato cms</a></h1>
|
||||
<h1><a href="<?php echo $conf->urlGelato;?>/admin/index.php" title="gelato :: home">gelato cms</a></h1>
|
||||
<ul id="nav">
|
||||
<li><a href="<?=$conf->urlGelato;?>/" title="Take me to the tumblelog">View Tumblelog</a></li>
|
||||
<li><a href="close.php" title="Log off" onclick="return exit('div-process','<?=$conf->urlGelato;?>/admin/ajax.php?action=close');">Log out</a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/" title="Take me to the tumblelog">View Tumblelog</a></li>
|
||||
<li><a href="close.php" title="Log off" onclick="return exit('div-process','<?php echo $conf->urlGelato;?>/admin/ajax.php?action=close');">Log out</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="main">
|
||||
<div class="box">
|
||||
<ul class="menu">
|
||||
<h3>New Post</h3>
|
||||
<li <? echo ($_GET["new"]=="conversation") ? "class=\"selected\"" : ""; ?>><a href="<?=$conf->urlGelato;?>/admin/index.php?new=conversation"><img src="css/images/comments.png" alt="New chat" /> Chat</a></li>
|
||||
<li <? echo ($_GET["new"]=="quote") ? "class=\"selected\"" : ""; ?>><a href="<?=$conf->urlGelato;?>/admin/index.php?new=quote"><img src="css/images/quote.png" alt="New qoute" /> Quote</a></li>
|
||||
<li <? echo ($_GET["new"]=="url") ? "class=\"selected\"" : ""; ?>><a href="<?=$conf->urlGelato;?>/admin/index.php?new=url"><img src="css/images/world.png" alt="New link" /> Link</a></li>
|
||||
<li <? echo ($_GET["new"]=="mp3") ? "class=\"selected\"" : ""; ?>><a href="<?=$conf->urlGelato;?>/admin/index.php?new=mp3"><img src="css/images/music.png" alt="New audio" /> Audio</a></li>
|
||||
<li <? echo ($_GET["new"]=="video") ? "class=\"selected\"" : ""; ?>><a href="<?=$conf->urlGelato;?>/admin/index.php?new=video"><img src="css/images/film.png" alt="New video" /> Video</a></li>
|
||||
<li <? echo ($_GET["new"]=="photo") ? "class=\"selected\"" : ""; ?>><a href="<?=$conf->urlGelato;?>/admin/index.php?new=photo"><img src="css/images/image.png" alt="New picture" /> Picture</a></li>
|
||||
<li <? echo ($_GET["new"]=="post") ? "class=\"selected\"" : ""; echo (!isset($_GET["new"])) ? "class=\"selected\"" : ""; ?>><a href="<?=$conf->urlGelato;?>/admin/index.php?new=post"><img src="css/images/page.png" alt="New post" /> Regular</a></li>
|
||||
<li<?php echo ($_GET["new"]=="conversation") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=conversation"><img src="css/images/comments.png" alt="New chat" /> Chat</a></li>
|
||||
<li<?php echo ($_GET["new"]=="quote") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=quote"><img src="css/images/quote.png" alt="New qoute" /> Quote</a></li>
|
||||
<li<?php echo ($_GET["new"]=="url") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=url"><img src="css/images/world.png" alt="New link" /> Link</a></li>
|
||||
<li<?php echo ($_GET["new"]=="mp3") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=mp3"><img src="css/images/music.png" alt="New audio" /> Audio</a></li>
|
||||
<li<?php echo ($_GET["new"]=="video") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=video"><img src="css/images/film.png" alt="New video" /> Video</a></li>
|
||||
<li<?php echo ($_GET["new"]=="photo") ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=photo"><img src="css/images/image.png" alt="New picture" /> Picture</a></li>
|
||||
<li<?php echo ($_GET["new"]=="post") ? " class=\"selected\"" : ""; echo (!isset($_GET["new"])) ? " class=\"selected\"" : ""; ?>><a href="<?php echo $conf->urlGelato;?>/admin/index.php?new=post"><img src="css/images/page.png" alt="New post" /> Regular</a></li>
|
||||
</ul>
|
||||
<p> </p>
|
||||
<?
|
||||
<?php
|
||||
$present = version();
|
||||
$lastest = _file_get_contents("http://www.gelatocms.com/vgel.txt");
|
||||
if ($present < $lastest) {
|
||||
echo "<div class=\"information\" id=\"update\">A new gelato version has been released and is ready <a href=\"http://www.gelatocms.com/\">for download</a>.</div>";
|
||||
}
|
||||
|
||||
if (isset($_GET["deleted"])) {
|
||||
if ($_GET["deleted"]=="true") {
|
||||
echo "<div class=\"exito\" id=\"divMessages\">The article has been eliminated successfully.</div>";
|
||||
echo "<div class=\"exito\" id=\"divMessages\">The post has been eliminated successfully.</div>";
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_GET["modified"])) {
|
||||
if ($_GET["modified"]=="true") {
|
||||
echo "<div class=\"exito\" id=\"divMessages\">The article has been modified successfully.</div>";
|
||||
echo "<div class=\"exito\" id=\"divMessages\">The post has been modified successfully.</div>";
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_GET["added"])) {
|
||||
if ($_GET["added"]=="true") {
|
||||
echo "<div class=\"exito\" id=\"divMessages\">The article has been added successfully.</div>";
|
||||
echo "<div class=\"exito\" id=\"divMessages\">The post has been added successfully.</div>";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -182,62 +200,97 @@ if ($user->isAdmin()) {
|
|||
}
|
||||
}
|
||||
?>
|
||||
<form action="index.php" method="post" <?=($_GET["new"]=="photo") ? "enctype=\"multipart/form-data\"" : ""?> name="frmAdd" class="newpost">
|
||||
<form action="index.php" method="post" <?php echo ($_GET["new"]=="photo") ? "enctype=\"multipart/form-data\"" : ""?> name="frmAdd" class="newpost">
|
||||
<fieldset>
|
||||
<?
|
||||
<?php
|
||||
if ($isEdition) {
|
||||
?>
|
||||
<input type="hidden" name="id_post" id="id_post" value="<?php echo $postId;?>" />
|
||||
<?php
|
||||
switch ($post["type"]) {
|
||||
case "1":
|
||||
$_GET["new"] = "post";
|
||||
break;
|
||||
case "2":
|
||||
$_GET["new"] = "photo";
|
||||
break;
|
||||
case "3":
|
||||
$_GET["new"] = "quote";
|
||||
break;
|
||||
case "4":
|
||||
$_GET["new"] = "url";
|
||||
break;
|
||||
case "5":
|
||||
$_GET["new"] = "conversation";
|
||||
break;
|
||||
case "6":
|
||||
$_GET["new"] = "video";
|
||||
break;
|
||||
case "7":
|
||||
$_GET["new"] = "mp3";
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$date = ($isEdition) ? strtotime($post["date"]) : time();
|
||||
$title = ($isEdition) ? $post["title"] : "";
|
||||
$body = ($isEdition) ? $post["description"] : "";
|
||||
$url = ($isEdition) ? $post["url"] : "";
|
||||
|
||||
switch ($_GET["new"]) {
|
||||
case "post":
|
||||
$input = array("{type}", "{date}", "{id_user}");
|
||||
$output = array("1", time(), $_SESSION['user_id']);
|
||||
$input = array("{type}", "{date}", "{id_user}", "{editTitle}", "{editBody}");
|
||||
$output = array("1", $date, $_SESSION['user_id'], $title, $body);
|
||||
|
||||
$template->cargarPlantilla($input, $output, "template_add_post");
|
||||
$template->mostrarPlantilla();
|
||||
break;
|
||||
case "photo":
|
||||
$input = array("{type}", "{date}", "{id_user}");
|
||||
$output = array("2", time(), $_SESSION['user_id']);
|
||||
$input = array("{type}", "{date}", "{id_user}", "{editUrl}", "{editBody}");
|
||||
$output = array("2", $date, $_SESSION['user_id'], $url, $body);
|
||||
|
||||
$template->cargarPlantilla($input, $output, "template_add_photo");
|
||||
$template->mostrarPlantilla();
|
||||
break;
|
||||
case "quote":
|
||||
$input = array("{type}", "{date}", "{id_user}");
|
||||
$output = array("3", time(), $_SESSION['user_id']);
|
||||
$input = array("{type}", "{date}", "{id_user}", "{editTitle}", "{editBody}");
|
||||
$output = array("3", $date, $_SESSION['user_id'], $title, $body);
|
||||
|
||||
$template->cargarPlantilla($input, $output, "template_add_quote");
|
||||
$template->mostrarPlantilla();
|
||||
break;
|
||||
case "url":
|
||||
$input = array("{type}", "{date}", "{id_user}");
|
||||
$output = array("4", time(), $_SESSION['user_id']);
|
||||
$input = array("{type}", "{date}", "{id_user}", "{editTitle}", "{editUrl}", "{editBody}");
|
||||
$output = array("4", $date, $_SESSION['user_id'], $title, $url, $body);
|
||||
|
||||
$template->cargarPlantilla($input, $output, "template_add_link");
|
||||
$template->mostrarPlantilla();
|
||||
break;
|
||||
case "conversation":
|
||||
$input = array("{type}", "{date}", "{id_user}");
|
||||
$output = array("5", time(), $_SESSION['user_id']);
|
||||
$input = array("{type}", "{date}", "{id_user}", "{editTitle}", "{editBody}");
|
||||
$output = array("5", $date, $_SESSION['user_id'], $title, $body);
|
||||
|
||||
$template->cargarPlantilla($input, $output, "template_add_conversation");
|
||||
$template->mostrarPlantilla();
|
||||
break;
|
||||
case "video":
|
||||
$input = array("{type}", "{date}", "{id_user}");
|
||||
$output = array("6", time(), $_SESSION['user_id']);
|
||||
$input = array("{type}", "{date}", "{id_user}", "{editUrl}", "{editBody}");
|
||||
$output = array("6", $date, $_SESSION['user_id'], $url, $body);
|
||||
|
||||
$template->cargarPlantilla($input, $output, "template_add_video");
|
||||
$template->mostrarPlantilla();
|
||||
break;
|
||||
case "mp3":
|
||||
$input = array("{type}", "{date}", "{id_user}");
|
||||
$output = array("7", time(), $_SESSION['user_id']);
|
||||
$input = array("{type}", "{date}", "{id_user}", "{editUrl}", "{editBody}");
|
||||
$output = array("7", $date, $_SESSION['user_id'], $url, $body);
|
||||
|
||||
$template->cargarPlantilla($input, $output, "template_add_mp3");
|
||||
$template->mostrarPlantilla();
|
||||
break;
|
||||
default:
|
||||
$input = array("{type}", "{date}", "{id_user}");
|
||||
$output = array("1", time(), $_SESSION['user_id']);
|
||||
$input = array("{type}", "{date}", "{id_user}", "{editTitle}", "{editBody}");
|
||||
$output = array("1", $date, $_SESSION['user_id'], $title, $body);
|
||||
|
||||
$template->cargarPlantilla($input, $output, "template_add_post");
|
||||
$template->mostrarPlantilla();
|
||||
|
|
@ -245,23 +298,28 @@ if ($user->isAdmin()) {
|
|||
}
|
||||
?>
|
||||
<p>
|
||||
<input class="btn" type="submit" name="btnAdd" value="Create post" />
|
||||
<span style="color: rgb(136, 136, 136); margin-bottom: 10px; font-size: 10px;"><a href="http://hobix.com/textile/">Textile</a> syntax is supported.</span>
|
||||
</p>
|
||||
<p>
|
||||
<input class="btn" type="submit" name="btnAdd" value="<?php echo ($isEdition) ? "Modify" : "Create"; ?> post" />
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<div class="footer-box"> </div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if (!$isEdition) {
|
||||
?>
|
||||
<div class="box">
|
||||
<ul class="menu manage">
|
||||
<h3>Manage</h3>
|
||||
<li><a href="#">Settings</a></li>
|
||||
<li><a href="<?=$conf->urlGelato;?>/admin/admin.php">Users</a></li>
|
||||
<li class="selected"><a href="#">Posts</a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/admin/settings.php">Settings</a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/admin/admin.php">Users</a></li>
|
||||
<li class="selected"><a>Posts</a></li>
|
||||
</ul>
|
||||
|
||||
<?
|
||||
<?php
|
||||
if (isset($_GET["page"])) {
|
||||
$page_num = $_GET["page"];
|
||||
} else {
|
||||
|
|
@ -284,7 +342,7 @@ if ($user->isAdmin()) {
|
|||
$permalink = $conf->urlGelato."/index.php/post/".$register["id_post"]."/";
|
||||
|
||||
$textile = new Textile;
|
||||
$register["description"] = $textile->process(str_replace(""", "\"", $register["description"]));
|
||||
$register["description"] = $textile->process($register["description"]);
|
||||
|
||||
switch ($tumble->getType($register["id_post"])) {
|
||||
case "1":
|
||||
|
|
@ -361,13 +419,17 @@ if ($user->isAdmin()) {
|
|||
<div class="footer-box"> </div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div id="foot">
|
||||
<a href="http://www.gelatocms.com/" title="gelato CMS" target="_blank">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
|
||||
<a href="http://www.gelatocms.com/" title="gelato CMS">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
} else {
|
||||
header("Location: ".$conf->urlGelato."/login.php");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,145 @@
|
|||
<?php
|
||||
/* ===========================
|
||||
|
||||
gelato CMS development version
|
||||
http://www.gelatocms.com/
|
||||
|
||||
gelato CMS is a free software licensed under GPL (General public license)
|
||||
|
||||
=========================== */
|
||||
?>
|
||||
<?php
|
||||
require_once('../config.php');
|
||||
include("../classes/functions.php");
|
||||
include("../classes/user.class.php");
|
||||
include("../classes/gelato.class.php");
|
||||
require_once("../classes/configuration.class.php");
|
||||
|
||||
$user = new user();
|
||||
$tumble = new gelato();
|
||||
$conf = new configuration();
|
||||
|
||||
if ($user->isAdmin()) {
|
||||
|
||||
if(isset($_POST["btnsubmit"])) {
|
||||
unset($_POST["btnsubmit"]);
|
||||
$_POST["url_installation"] = (endsWith($_POST["url_installation"], "/")) ? substr($_POST["url_installation"], 0, strlen($_POST["url_installation"])-1) : $_POST["url_installation"] ;
|
||||
$tumble->saveSettings($_POST);
|
||||
} else {
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>gelato :: settings</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link rel="shortcut icon" href="<?php echo $conf->urlGelato;?>/images/favicon.ico" />
|
||||
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/mootools.js"></script>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
window.onload = function() {
|
||||
contenedor = new Fx.Style('divMessages', 'opacity', {duration: 5000, onComplete:
|
||||
function() {
|
||||
document.getElementById('divMessages').style.display="none";
|
||||
}
|
||||
});
|
||||
contenedor.custom(1,0);
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
<style type="text/css" media="screen">
|
||||
@import "<?php echo $conf->urlGelato;?>/admin/css/style.css";
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="div-process" style="display:none;">Processing request...</div>
|
||||
<div id="cont">
|
||||
<div id="head">
|
||||
<h1><a href="<?php echo $conf->urlGelato;?>/" title="gelato :: home">gelato cms</a></h1>
|
||||
<ul id="nav">
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/" title="Take me to the tumblelog">Back to the Tumblelog</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="main">
|
||||
|
||||
<div class="box">
|
||||
<ul class="menu manage">
|
||||
<h3>Tumblelog configuration</h3>
|
||||
<li><a href="index.php">Post</a></li>
|
||||
<li><a href="admin.php">Users</a></li>
|
||||
<li class="selected"><a>Settings</a></li>
|
||||
</ul>
|
||||
<p> </p>
|
||||
<?php
|
||||
if (isset($_GET["modified"])) {
|
||||
if ($_GET["modified"]=="true") {
|
||||
echo "<div class=\"exito\" id=\"divMessages\">The configuration has been modified successfully.</div>";
|
||||
}
|
||||
}
|
||||
if (isset($_GET["error"])) {
|
||||
if ($_GET["error"]==1) {
|
||||
echo "<div class=\"error\" id=\"divMessages\"><strong>Error on the database server: </strong>".$_GET["des"]."</div>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="tabla">
|
||||
|
||||
<form action="settings.php" method="post" id="settings_form" autocomplete="off" class="newpost">
|
||||
<fieldset>
|
||||
<ul>
|
||||
<li><label for="title">Title:</label>
|
||||
<input type="text" name="title" id="title" value="<?php echo $conf->title;?>" class="txt"/></li>
|
||||
<li><label for="description">Description:</label>
|
||||
<input type="text" name="description" id="description" value="<?php echo $conf->description;?>" class="txt"/></li>
|
||||
<li><label for="url_installation">Installation URL</label>
|
||||
<input type="text" name="url_installation" id="url_installation" value="<?php echo $conf->urlGelato;?>" class="txt"/></li>
|
||||
<li><label for="posts_limit">Post limit:</label>
|
||||
<input type="text" name="posts_limit" id="posts_limit" value="<?php echo $conf->postLimit;?>" class="txt"/></li>
|
||||
<li><label for="lang">Language:</label>
|
||||
<select id="lang" name="lang">
|
||||
<option value="en" selected="selected">english</option>
|
||||
</select>
|
||||
</li>
|
||||
<li><label for="template">Template:</label>
|
||||
<select id="template" name="template">
|
||||
<?php
|
||||
$themes = getThemes();
|
||||
foreach ($themes as $theme) {
|
||||
echo "<option value=\"".$theme."\" selected=\"true\">".$theme."</option>\n";
|
||||
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</li>
|
||||
<li><label for="rich_text">Rich text editor:</label>
|
||||
<select name="rich_text" id="rich_text">
|
||||
<option value="1" <?php if($conf->richText) echo "selected"; ?>>Active</option>
|
||||
<option value="0" <?php if(!$conf->richText) echo "selected"; ?>>Deactive</option>
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<p>
|
||||
|
||||
<input type="hidden" name="url_friendly" id="url_friendly" value="0" />
|
||||
<input type="submit" name="btnsubmit" id="btnsubmit" value="Modify" class="submit"/>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="footer-box"> </div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="foot">
|
||||
<a href="http://www.gelatocms.com/" title="gelato CMS">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
}
|
||||
} else {
|
||||
header("Location: ".$conf->urlGelato."/login.php");
|
||||
}
|
||||
?>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<p>
|
||||
<label for="title">Title <span class="option">(optional)</span></label>
|
||||
<input class="txt" type="text" name="title" id="title" size="80" />
|
||||
<input class="txt" type="text" name="title" id="title" value="{editTitle}" size="80" />
|
||||
</p>
|
||||
<input type="hidden" name="url" id="url" value="" />
|
||||
<p>
|
||||
|
|
@ -10,10 +10,10 @@
|
|||
<span style="font-style: italic;">
|
||||
Geek: Wow an open source tumblelog CMS!!.<br>
|
||||
Normal: Tumble... what??<br>
|
||||
Geek: Read the fucking wikipedia!!
|
||||
Geek: Read the wikipedia!!
|
||||
</span>
|
||||
</div>
|
||||
<textarea rows="12" cols="84" name="description" id="description"></textarea>
|
||||
<textarea rows="12" cols="84" name="description" id="description">{editBody}</textarea>
|
||||
</p>
|
||||
<input type="hidden" name="type" id="type" value="{type}" />
|
||||
<input type="hidden" name="date" id="date" value="{date}" />
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
<p>
|
||||
<label for="title">Name <span class="option">(optional)</span></label>
|
||||
<input class="txt" type="text" name="title" id="title" size="80" />
|
||||
<input class="txt" type="text" name="title" id="title" value="{editTitle}" size="80" />
|
||||
</p>
|
||||
<p>
|
||||
<label for="url">URL</label>
|
||||
<input class="txt" type="text" name="url" id="url" size="80" />
|
||||
<input class="txt" type="text" name="url" id="url" value="{editUrl}" size="80" />
|
||||
</p>
|
||||
<p>
|
||||
<div id="add_link_description" style="margin-top:5px;">
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
</div>
|
||||
<div id="link_description" style="display:none;">
|
||||
<label for="description">Description</label><br />
|
||||
<textarea rows="12" cols="84" name="description" id="description"></textarea>
|
||||
<textarea rows="12" cols="84" name="description" id="description">{editBody}</textarea>
|
||||
</div>
|
||||
</p>
|
||||
<input type="hidden" name="type" id="type" value="{type}" />
|
||||
|
|
|
|||
|
|
@ -1,14 +1,15 @@
|
|||
<input type="hidden" name="title" id="title" value="" />
|
||||
<p>
|
||||
<label for="url">MP3 URL</label>
|
||||
<input class="txt" type="text" name="url" id="url" size="80" />
|
||||
<input class="txt" type="text" name="url" id="url" value="{editUrl}" size="80" />
|
||||
<div style="color: rgb(136, 136, 136); margin-bottom: 5px; font-size: 11px; font-weight: bold;">
|
||||
This is the MP3 file URL.
|
||||
This is the MP3 file URL or a GoEar URL.<br>
|
||||
<span style="font-size: 10px; font-weight: normal;">(ie. http://www.goear.com/listen.php?v=c0a2c85)</span>
|
||||
</div>
|
||||
</p>
|
||||
<p>
|
||||
<label for="description">Caption <span class="option">(optional)</span></label><br />
|
||||
<textarea rows="12" cols="84" name="description" id="description" tabindex="2"></textarea>
|
||||
<textarea rows="12" cols="84" name="description" id="description" tabindex="2">{editBody}</textarea>
|
||||
</p>
|
||||
<input type="hidden" name="type" id="type" value="{type}" />
|
||||
<input type="hidden" name="date" id="date" value="{date}" />
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
<div id="photo_url" style="display:none;">
|
||||
<label for="description">Photo URL</label>
|
||||
<input class="input-text" type="text" name="url" id="url" size="80" />
|
||||
<input class="input-text" type="text" name="url" id="url" size="80" value="{editUrl}" />
|
||||
<div style="font-size:11px; color:#666; margin-top:5px;">
|
||||
The photo URL.</b>
|
||||
</div>
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
</p>
|
||||
<p>
|
||||
<label for="description">Caption <span class="option">(optional)</span></label><br />
|
||||
<textarea rows="12" cols="84" name="description" id="description"></textarea>
|
||||
<textarea rows="12" cols="84" name="description" id="description">{editBody}</textarea>
|
||||
</p>
|
||||
<input type="hidden" name="MAX_FILE_SIZE" value="10485760" />
|
||||
<input type="hidden" name="type" id="type" value="{type}" />
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<p>
|
||||
<label for="title">Title <span class="option">(optional)</span></label>
|
||||
<input class="txt" type="text" name="title" id="title" size="80" />
|
||||
<input class="txt" type="text" name="title" id="title" value="{editTitle}" size="80" />
|
||||
</p>
|
||||
<input class="txt" type="hidden" name="url" id="url" value="" />
|
||||
<p>
|
||||
<label for="description">Body</label><br />
|
||||
<textarea rows="12" cols="84" name="description" id="description"></textarea>
|
||||
<textarea rows="12" cols="84" name="description" id="description">{editBody}</textarea>
|
||||
</p>
|
||||
<input type="hidden" name="type" id="type" value="{type}" />
|
||||
<input type="hidden" name="date" id="date" value="{date}" />
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<input type="hidden" name="url" id="url" value="" />
|
||||
<p>
|
||||
<label for="description">Quote</label><br />
|
||||
<textarea rows="12" cols="84" name="description" id="description"></textarea>
|
||||
<textarea rows="12" cols="84" name="description" id="description">{editBody}</textarea>
|
||||
</p>
|
||||
<p>
|
||||
<label for="title">Source <span class="option">(optional)</span></label>
|
||||
<input class="txt" type="text" name="title" id="title" size="80" />
|
||||
<input class="txt" type="text" name="title" id="title" value="{editTitle}" size="80" />
|
||||
</p>
|
||||
<input type="hidden" name="type" id="type" value="{type}" />
|
||||
<input type="hidden" name="date" id="date" value="{date}" />
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
<input type="hidden" name="title" id="title" value="" />
|
||||
<p>
|
||||
<label for="url">Video URL</label>
|
||||
<input class="txt" type="text" name="url" id="url" size="80" />
|
||||
<input class="txt" type="text" name="url" id="url" value="{editUrl}" size="80" />
|
||||
<div style="color: rgb(136, 136, 136); margin-bottom: 5px; font-size: 11px; font-weight: bold;">
|
||||
This is a URL from the video sites YouTube, Vimeo or Google.<br>
|
||||
This is the URL from the video sites YouTube or Vimeo.<br>
|
||||
<span style="font-size: 10px; font-weight: normal;">(ie. http://youtube.com/watch?v=HcBFLN9cli0)</span>
|
||||
</div>
|
||||
</p>
|
||||
<p>
|
||||
<label for="description">Caption <span class="option">(optional)</span></label><br />
|
||||
<textarea rows="12" cols="84" name="description" id="description" tabindex="2"></textarea>
|
||||
<textarea rows="12" cols="84" name="description" id="description" tabindex="2">{editBody}</textarea>
|
||||
</p>
|
||||
<input type="hidden" name="type" id="type" value="{type}" />
|
||||
<input type="hidden" name="date" id="date" value="{date}" />
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
/* ===========================
|
||||
|
||||
gelato CMS development version
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
=========================== */
|
||||
?>
|
||||
<?
|
||||
<?php
|
||||
require_once('../config.php');
|
||||
include("../classes/functions.php");
|
||||
include("../classes/user.class.php");
|
||||
|
|
@ -53,8 +53,8 @@ if ($user->isAdmin()) {
|
|||
<head>
|
||||
<title>gelato :: add user</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link rel="shortcut icon" href="<?=$conf->urlGelato;?>/images/favicon.ico" />
|
||||
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/mootools.js"></script>
|
||||
<link rel="shortcut icon" href="<?php echo $conf->urlGelato;?>/images/favicon.ico" />
|
||||
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/mootools.js"></script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
function validateFrmAddUser() {
|
||||
if ($('login').value == "") {
|
||||
|
|
@ -90,7 +90,7 @@ if ($user->isAdmin()) {
|
|||
}
|
||||
</script>
|
||||
<style type="text/css" media="screen">
|
||||
@import "<?=$conf->urlGelato;?>/admin/css/style.css";
|
||||
@import "<?php echo $conf->urlGelato;?>/admin/css/style.css";
|
||||
</style>
|
||||
</head>
|
||||
|
||||
|
|
@ -98,9 +98,9 @@ if ($user->isAdmin()) {
|
|||
<div id="div-process" style="display:none;">Processing request...</div>
|
||||
<div id="cont">
|
||||
<div id="head">
|
||||
<h1><a href="<?=$conf->urlGelato;?>/" title="gelato :: home">gelato cms</a></h1>
|
||||
<h1><a href="<?php echo $conf->urlGelato;?>/" title="gelato :: home">gelato cms</a></h1>
|
||||
<ul id="nav">
|
||||
<li><a href="<?=$conf->urlGelato;?>/" title="Take me to the tumblelog">Back to the Tumblelog</a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/" title="Take me to the tumblelog">Back to the Tumblelog</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="main">
|
||||
|
|
@ -110,7 +110,7 @@ if ($user->isAdmin()) {
|
|||
<h3>Start session</h3>
|
||||
<li><a href="index.php">Post</a></li>
|
||||
<li><a href="admin.php">Users</a></li>
|
||||
<li class="selected"><a href="#"><? echo ($isEdition) ? "Edit" : "Add"; ?></a></li>
|
||||
<li class="selected"><a><?php echo ($isEdition) ? "Edit" : "Add"; ?></a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tabla">
|
||||
|
|
@ -118,23 +118,23 @@ if ($user->isAdmin()) {
|
|||
<form action="user.php" method="post" onSubmit="return validateFrmAddUser();" name="frm_add" class="newpost">
|
||||
<fieldset>
|
||||
<ul>
|
||||
<?
|
||||
<?php
|
||||
if ($isEdition) {
|
||||
?>
|
||||
<input type="hidden" name="id_user" id="id_user" value="<?=$userId;?>" />
|
||||
<?
|
||||
<input type="hidden" name="id_user" id="id_user" value="<?php echo $userId;?>" />
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<label for="login">user:</label>
|
||||
<input class="txt" name="login" id="login" type="text" autocomplete="off" value="<?=isset($register["login"])?$register["login"]:"";?>" />
|
||||
<?
|
||||
<input class="txt" name="login" id="login" type="text" autocomplete="off" value="<?php echo isset($register["login"])?$register["login"]:"";?>" />
|
||||
<?php
|
||||
if (!$isEdition) {
|
||||
?>
|
||||
<script language="javascript" type="text/javascript">
|
||||
document.write("<br /><input class='submit_normal_azul' name='btnVerifyUser' id='btnVerifyUser' type='button' value='Check availability' onclick='verifyExistingUser()' />");
|
||||
</script>
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</li>
|
||||
|
|
@ -151,22 +151,22 @@ if ($user->isAdmin()) {
|
|||
</li>
|
||||
<li>
|
||||
<label for="name">name:</label>
|
||||
<input class="txt" name="name" id="name" type="text" value="<?=isset($register["name"])?$register["name"]:"";?>" />
|
||||
<input class="txt" name="name" id="name" type="text" value="<?php echo isset($register["name"])?$register["name"]:"";?>" />
|
||||
</li>
|
||||
<li>
|
||||
<label for="email">e-mail:</label>
|
||||
<input class="txt" name="email" id="email" type="text" value="<?=isset($register["email"])?$register["email"]:"";?>" />
|
||||
<input class="txt" name="email" id="email" type="text" value="<?php echo isset($register["email"])?$register["email"]:"";?>" />
|
||||
</li>
|
||||
<li>
|
||||
<label for="website">website:</label>
|
||||
<input class="txt" name="website" id="website" type="text" value="<?=isset($register["website"])?$register["website"]:"";?>" />
|
||||
<input class="txt" name="website" id="website" type="text" value="<?php echo isset($register["website"])?$register["website"]:"";?>" />
|
||||
</li>
|
||||
<li>
|
||||
<label for="about">about:</label><br />
|
||||
<textarea rows="5" cols="50" name="about" id="about" tabindex="7"><?=isset($register["about"])?$register["about"]:"";?></textarea>
|
||||
<textarea rows="5" cols="50" name="about" id="about" tabindex="7"><?php echo isset($register["about"])?$register["about"]:"";?></textarea>
|
||||
</li>
|
||||
<li>
|
||||
<input name="btnAdd" type="submit" value="<? echo ($isEdition) ? "Modify" : "Add"; ?> user" />
|
||||
<input name="btnAdd" type="submit" value="<?php echo ($isEdition) ? "Modify" : "Add"; ?> user" />
|
||||
</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
|
|
@ -178,12 +178,12 @@ if ($user->isAdmin()) {
|
|||
</div>
|
||||
</div>
|
||||
<div id="foot">
|
||||
<a href="http://www.gelatocms.com/" title="gelato CMS" target="_blank">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
|
||||
<a href="http://www.gelatocms.com/" title="gelato CMS">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
} else {
|
||||
header("Location: ".$conf->urlGelato."/login.php");
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
/* ===========================
|
||||
|
||||
gelato CMS development version
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
=========================== */
|
||||
?>
|
||||
<?
|
||||
<?php
|
||||
class configuration extends Conexion_Mysql {
|
||||
|
||||
var $urlGelato;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
/* ===========================
|
||||
|
||||
gelato CMS development version
|
||||
|
|
@ -8,7 +8,11 @@
|
|||
|
||||
=========================== */
|
||||
?>
|
||||
<?
|
||||
<?php
|
||||
function version() {
|
||||
return "0.8";
|
||||
}
|
||||
|
||||
function beginsWith($str, $sub) {
|
||||
return (strpos($str, $sub) === 0);
|
||||
}
|
||||
|
|
@ -37,11 +41,20 @@
|
|||
} else {
|
||||
return false;
|
||||
}
|
||||
} elseif (isGoEar($remoteFileName)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function isGoEar($songUrl) {
|
||||
if (beginsWith($songUrl, "http://www.goear.com/listen.php?v="))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function isImageFile($photoUrl) {
|
||||
if (endsWith($photoUrl, ".jpg")) { return true; }
|
||||
elseif (endsWith($photoUrl, ".gif")) { return true; }
|
||||
|
|
@ -98,17 +111,9 @@
|
|||
return $params2[0];
|
||||
}
|
||||
|
||||
function isGoogleVideo($videoUrl) {
|
||||
if (beginsWith($videoUrl, "http://video.google.com/videoplay?docid="))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
function isVideo($url) {
|
||||
if (isYoutubeVideo($url)) { return true; }
|
||||
elseif (isVimeoVideo($url)) { return true; }
|
||||
elseif (isGoogleVideo($url)) { return true; }
|
||||
else { return false; }
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
/* ===========================
|
||||
|
||||
gelato CMS development version
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
=========================== */
|
||||
?>
|
||||
<?
|
||||
<?php
|
||||
require_once("configuration.class.php");
|
||||
require_once("functions.php");
|
||||
|
||||
|
|
@ -20,6 +20,16 @@ class gelato extends Conexion_Mysql {
|
|||
$this->conf = new configuration();
|
||||
}
|
||||
|
||||
function saveSettings($fieldsArray) {
|
||||
if ($this->modificarDeFormulario($this->conf->tablePrefix."config", $fieldsArray)) {
|
||||
header("Location: ".$this->conf->urlGelato."/admin/settings.php?modified=true");
|
||||
die();
|
||||
} else {
|
||||
header("Location: ".$this->conf->urlGelato."/admin/settings.php?error=1&des=".$this->merror);
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
||||
function addPost($fieldsArray) {
|
||||
if ($this->insertarDeFormulario($this->conf->tablePrefix."data", $fieldsArray)) {
|
||||
return true;
|
||||
|
|
@ -28,6 +38,20 @@ class gelato extends Conexion_Mysql {
|
|||
}
|
||||
}
|
||||
|
||||
function modifyPost($fieldsArray, $id_post) {
|
||||
if ($this->modificarDeFormulario($this->conf->tablePrefix."data", $fieldsArray, "id_post=$id_post")) {
|
||||
header("Location: ".$this->conf->urlGelato."/admin/index.php?modified=true");
|
||||
die();
|
||||
} else {
|
||||
header("Location: ".$this->conf->urlGelato."/admin/index.php?error=2&des=".$this->merror);
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
||||
function deletePost($idPost) {
|
||||
$this->ejecutarConsulta("DELETE FROM ".$this->conf->tablePrefix."data WHERE id_post=".$idPost);
|
||||
}
|
||||
|
||||
function getPosts($limit="10", $from="0") {
|
||||
$sqlStr = "select * from ".$this->conf->tablePrefix."data ORDER BY date DESC LIMIT $from,$limit";
|
||||
$this->ejecutarConsulta($sqlStr);
|
||||
|
|
@ -90,6 +114,8 @@ class gelato extends Conexion_Mysql {
|
|||
function saveMP3($remoteFileName) {
|
||||
if (getMP3File($remoteFileName)) {
|
||||
return true;
|
||||
} elseif (isGoEar($remoteFileName)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -110,33 +136,8 @@ class gelato extends Conexion_Mysql {
|
|||
} elseif (isVimeoVideo($url)) {
|
||||
$id_video = getVimeoVideoUrl($url);
|
||||
return "\t\t\t<object type=\"application/x-shockwave-flash\" style=\"width:500px;height:393px\" data=\"http://www.vimeo.com/moogaloop.swf?clip_id=".$id_video."\"><param name=\"movie\" value=\"http://www.vimeo.com/moogaloop.swf?clip_id=".$id_video."\" /></object>\n";
|
||||
} elseif (isGoogleVideo($url)) {
|
||||
$html = trim(_file_get_contents($url));
|
||||
$start_code = strpos($html, "var flashObj =\n \"");
|
||||
$end_code = strpos($html, "\";\n flashObj = flashObj.replace");
|
||||
$start_code = $start_code + strlen("var flashObj =\n \"");
|
||||
$video_code = substr($html, $start_code, $end_code - $start_code);
|
||||
$video_code = str_replace("\u003c", "<", $video_code);
|
||||
$video_code = str_replace("\u003d", "=", $video_code);
|
||||
$video_code = str_replace("\\\"", "\"", $video_code);
|
||||
$video_code = str_replace("width:100%;height:100%;", "width:500px;height:393px", $video_code);
|
||||
$video_code = str_replace("/googleplayer.swf", "http://video.google.com/googleplayer.swf", $video_code);
|
||||
$video_code = str_replace("embed", "object", $video_code);
|
||||
$video_code = str_replace("src=", "data=", $video_code);
|
||||
$video_code = str_replace('align="middle"', "", $video_code);
|
||||
$video_code = str_replace('allowScriptAccess="always"', "", $video_code);
|
||||
$video_code = str_replace('quality="best"', "", $video_code);
|
||||
$video_code = str_replace('bgcolor="#ffffff"', "", $video_code);
|
||||
$video_code = str_replace('scale="noScale"', "", $video_code);
|
||||
$video_code = str_replace('salign="TL"', "", $video_code);
|
||||
$video_code = str_replace('FlashVars="playerMode=normal&autoPlay=true&docid=-2519555829449987448&clickUrl="', "", $video_code);
|
||||
$video_code = str_replace(' \\', " /", $video_code);
|
||||
$video_code = str_replace('\></object\>', ' ></object>', $video_code);
|
||||
$video_code = str_replace("id=\"VideoPlayback\"", "", $video_code);
|
||||
$video_code = str_replace("&", "&", $video_code);
|
||||
return $video_code;
|
||||
} else {
|
||||
return "This URL is not a supported video (YouTube, Vimeo or Google Video)";
|
||||
return "This URL is not a supported video (YouTube or Vimeo)";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -144,8 +145,10 @@ class gelato extends Conexion_Mysql {
|
|||
if (isMP3($url)) {
|
||||
$playerUrl = $this->conf->urlGelato."/admin/scripts/player.swf?soundFile=".$url;
|
||||
return "\t\t\t<object type=\"application/x-shockwave-flash\" data=\"" . $playerUrl . "\" width=\"290\" height=\"24\"><param name=\"movie\" value=\"" . $playerUrl . "\" /><param name=\"quality\" value=\"high\" /><param name=\"menu\" value=\"false\" /><param name=\"wmode\" value=\"transparent\" /></object>\n";
|
||||
} elseif (isGoEar($url)) {
|
||||
return "\t\t\t<object type=\"application/x-shockwave-flash\" data=\"http://www.goear.com/files/localplayer.swf\" width=\"366\" height=\"75\"><param name=\"movie\" value=\"http://www.goear.com/files/localautoplayer.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"FlashVars\" value=\"file=c0a2c85\" /></object>\n";
|
||||
} else {
|
||||
return "This URL is not a supported video (YouTube or Vimeo)";
|
||||
return "This URL is not an MP3 file.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,13 +34,23 @@ class Conexion_Mysql {
|
|||
$this->musuario = $user;
|
||||
$this->mclave = $pass;
|
||||
|
||||
$this->conectar();
|
||||
if (!$this->conectar()) {
|
||||
$mensaje = "
|
||||
<h3 class=\"important\">Error establishing a database connection</h3>
|
||||
<p>This either means that the username and password information in your <code>config.php</code> file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.</p>
|
||||
<ul>
|
||||
<li>Are you sure you have the correct username and password?</li>
|
||||
<li>Are you sure that you have typed the correct hostname?</li>
|
||||
<li>Are you sure that the database server is running?</li>
|
||||
</ul>";
|
||||
die($mensaje);
|
||||
}
|
||||
}
|
||||
|
||||
/** Conectar a la base de datos */
|
||||
function conectar() {
|
||||
// Conectamos al servidor
|
||||
$this->mid_conexion = mysql_connect($this->mservidor, $this->musuario, $this->mclave);
|
||||
$this->mid_conexion = @mysql_connect($this->mservidor, $this->musuario, $this->mclave);
|
||||
if (!$this->mid_conexion) {
|
||||
$this->merror = "No se logró realizar la conexión.";
|
||||
return false;
|
||||
|
|
@ -154,7 +164,7 @@ class Conexion_Mysql {
|
|||
$sql .= "$valor,";
|
||||
}
|
||||
elseif (substr_count(MYSQL_TYPES_DATE, "$tipo_col ")) {
|
||||
$valor = $this->sql_date_format($valor, $tipo_col); /// formatea las fechas
|
||||
$valor = $this->formatearFecha($valor, $tipo_col); /// formatea las fechas
|
||||
$sql .= "'$valor',";
|
||||
}
|
||||
elseif (substr_count(MYSQL_TYPES_STRING, "$tipo_col ")) {
|
||||
|
|
@ -214,6 +224,7 @@ class Conexion_Mysql {
|
|||
*/
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Obtiene el registro obtenido de una consulta.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
/**
|
||||
* version 0.0.1
|
||||
*
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
* @author Pedro Santana [pecesama]
|
||||
*/
|
||||
?>
|
||||
<?
|
||||
<?php
|
||||
class plantillas {
|
||||
|
||||
var $plantilla;
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ class Textile {
|
|||
function Textile($options = array()) {
|
||||
$this->options = $options;
|
||||
$this->options['filters'] = ($this->options['filters'] ? $this->options['filters'] : array());
|
||||
$this->options['charset'] = ($this->options['charset'] ? $this->options['charset'] : 'iso-8859-1');
|
||||
$this->options['charset'] = ($this->options['charset'] ? $this->options['charset'] : 'utf-8');
|
||||
$this->options['char_encoding'] = (isset($this->options['char_encoding']) ? $this->options['char_encoding'] : 1);
|
||||
$this->options['do_quotes'] = (isset($this->options['do_quotes']) ? $this->options['do_quotes'] : 1);
|
||||
$this->options['trim_spaces'] = (isset($this->options['trim_spaces']) ? $this->options['trim_spaces'] : 0);
|
||||
|
|
@ -556,7 +556,7 @@ class Textile {
|
|||
* @public
|
||||
*/
|
||||
function char_encoding($char_encoding = NULL) {
|
||||
if ($char_encoding != NULL) {
|
||||
if ($char_encoding !== NULL) {
|
||||
$this->options['char_encoding'] = $char_encoding;
|
||||
}
|
||||
return $this->options['char_encoding'];
|
||||
|
|
@ -755,6 +755,7 @@ class Textile {
|
|||
* function textile($str) {
|
||||
*/
|
||||
|
||||
$this->charset('utf8');
|
||||
// quick translator for abbreviated block names
|
||||
// to their tag
|
||||
$macros = array('bq' => 'blockquote');
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
/* ===========================
|
||||
|
||||
gelato CMS development version
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
=========================== */
|
||||
?>
|
||||
<?
|
||||
<?php
|
||||
require_once("configuration.class.php");
|
||||
|
||||
class user extends Conexion_Mysql {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
/* ===========================
|
||||
|
||||
gelato CMS development version
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
=========================== */
|
||||
?>
|
||||
<?
|
||||
<?php
|
||||
// MySql configuration
|
||||
define('DB_Server', '[server]'); // Set the MySQL hostname (generally "localhost")
|
||||
define('DB_name', '[database]'); // Set the MySQL database gelato should use
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
/* Do not edit below this line */
|
||||
|
||||
define('Absolute_Path', dirname(__FILE__).'/');
|
||||
define('Absolute_Path', dirname(__FILE__).DIRECTORY_SEPARATOR);
|
||||
|
||||
session_start();
|
||||
header("Expires: Mon, 26 Jul 1957 05:00:00 GMT");
|
||||
|
|
@ -26,5 +26,5 @@
|
|||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
require_once(Absolute_Path."classes/mysql_connection.class.php");
|
||||
require_once(Absolute_Path."classes".DIRECTORY_SEPARATOR."mysql_connection.class.php");
|
||||
?>
|
||||
BIN
images/cita.gif
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
BIN
images/foto.gif
|
Before Width: | Height: | Size: 4.0 KiB |
BIN
images/logo.jpg
|
Before Width: | Height: | Size: 24 KiB |
BIN
images/mp3.gif
|
Before Width: | Height: | Size: 2.0 KiB |
BIN
images/post.gif
|
Before Width: | Height: | Size: 2.3 KiB |
BIN
images/video.gif
|
Before Width: | Height: | Size: 4.5 KiB |
24
index.php
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
/* ===========================
|
||||
|
||||
gelato CMS development version
|
||||
|
|
@ -8,9 +8,21 @@
|
|||
|
||||
=========================== */
|
||||
?>
|
||||
<?
|
||||
<?php
|
||||
// My approach to MVC
|
||||
require(dirname(__FILE__)."/config.php");
|
||||
|
||||
$configFile = dirname(__FILE__).DIRECTORY_SEPARATOR."config.php";
|
||||
|
||||
if (!file_exists($configFile)) {
|
||||
$mensaje = "
|
||||
<h3 class=\"important\">Error reading configuration file</h3>
|
||||
<p>There doesn't seem to be a <code>config.php</code> file. I need this before we can get started.</p>
|
||||
<p>This either means that you did not rename the <code>config-sample.php</code> file to <code>config.php</code>.</p>";
|
||||
die($mensaje);
|
||||
} else {
|
||||
require(dirname(__FILE__).DIRECTORY_SEPARATOR."config.php");
|
||||
}
|
||||
|
||||
include("classes/configuration.class.php");
|
||||
include("classes/textile.class.php");
|
||||
include("classes/gelato.class.php");
|
||||
|
|
@ -77,12 +89,14 @@
|
|||
$rs = $tumble->getPosts($limit, $from);
|
||||
|
||||
if ($tumble->contarRegistros()>0) {
|
||||
$fecha = null;
|
||||
while($register = mysql_fetch_array($rs)) {
|
||||
$formatedDate = date("M d", strtotime($register["date"]));
|
||||
if ( $fecha != null && $formatedDate == $fecha ) { $formatedDate = ""; } else { $fecha = $formatedDate; }
|
||||
$permalink = $conf->urlGelato."/index.php/post/".$register["id_post"]."/";
|
||||
|
||||
$textile = new Textile;
|
||||
$register["description"] = $textile->process(str_replace(""", "\"", $register["description"]));
|
||||
$register["description"] = $textile->process($register["description"]);
|
||||
|
||||
switch ($tumble->getType($register["id_post"])) {
|
||||
case "1":
|
||||
|
|
@ -161,7 +175,7 @@
|
|||
$permalink = $conf->urlGelato."/index.php/post/".$register["id_post"]."/";
|
||||
|
||||
$textile = new Textile;
|
||||
$register["description"] = $textile->process(str_replace(""", "\"", $register["description"]));
|
||||
$register["description"] = $textile->process($register["description"]);
|
||||
|
||||
switch ($tumble->getType($register["id_post"])) {
|
||||
case "1":
|
||||
|
|
|
|||
|
|
@ -0,0 +1,259 @@
|
|||
<?php
|
||||
/* ===========================
|
||||
|
||||
gelato CMS development version
|
||||
http://www.gelatocms.com/
|
||||
|
||||
gelato CMS is a free software licensed under GPL (General public license)
|
||||
|
||||
=========================== */
|
||||
?>
|
||||
<?php
|
||||
|
||||
$configFile = dirname(__FILE__).DIRECTORY_SEPARATOR."config.php";
|
||||
|
||||
if (!file_exists($configFile)) {
|
||||
$mensaje = "
|
||||
<h3 class=\"important\">Error reading configuration file</h3>
|
||||
<p>There doesn't seem to be a <code>config.php</code> file. I need this before we can get started.</p>
|
||||
<p>This either means that you did not rename the <code>config-sample.php</code> file to <code>config.php</code>.</p>";
|
||||
die($mensaje);
|
||||
} else {
|
||||
require(dirname(__FILE__).DIRECTORY_SEPARATOR."config.php");
|
||||
$showForm = true;
|
||||
}
|
||||
|
||||
include("classes/functions.php");
|
||||
|
||||
$errors_d=array();
|
||||
$errors_d[1]="The login field cannot be empty";
|
||||
$errors_d[2]="The password field cannot be empty";
|
||||
$errors_d[3]="Password does not match the confirm password";
|
||||
$errors_d[4]="The e-mail field cannot be empty";
|
||||
$errors_d[5]="The installation URL field cannot be empty";
|
||||
$errors_d[6]="Error establishing a database connection";
|
||||
|
||||
$action="";
|
||||
$errors="";
|
||||
|
||||
if (isset($_POST['action'])){
|
||||
$action=$_POST['action'];
|
||||
}
|
||||
|
||||
if ($action=="config") {
|
||||
|
||||
$sep_err="";
|
||||
|
||||
if (!$_POST['login']) {
|
||||
$errors=$errors.$sep_err."1";
|
||||
$sep_err="|";
|
||||
}
|
||||
if (!$_POST['password']) {
|
||||
$errors=$errors.$sep_err."2";
|
||||
$sep_err="|";
|
||||
}
|
||||
if (!$_POST['email']) {
|
||||
$errors=$errors.$sep_err."4";
|
||||
$sep_err="|";
|
||||
}
|
||||
if (!$_POST['url_installation']) {
|
||||
$errors=$errors.$sep_err."5";
|
||||
$sep_err="|";
|
||||
}
|
||||
if ($_POST['password']!=$_POST['password2']) {
|
||||
$errors=$errors.$sep_err."3";
|
||||
$sep_err="|";
|
||||
}
|
||||
|
||||
|
||||
if (!$errors) {
|
||||
|
||||
if (installdb($_POST['login'], $_POST['password'], $_POST['email'], $_POST['title'], $_POST['description'], $_POST['url_installation'], $_POST['posts_limit'], $_POST['lang'], $_POST['template'], $_POST['website'], $_POST['about'], $_POST['url_friendly'], $_POST['rich_text'])) {
|
||||
$showForm=false;
|
||||
} else {
|
||||
$errors=$errors.$sep_err."6";
|
||||
$sep_err="|";
|
||||
$showForm=true;
|
||||
}
|
||||
} else {
|
||||
$showForm=true;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>gelato :: installation</title>
|
||||
<meta name="generator" content="sabros.us <?php echo version();?>" />
|
||||
<link rel="shortcut icon" href="images/favicon.ico" />
|
||||
<style type="text/css" media="screen">
|
||||
@import "admin/css/style.css";
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="cont">
|
||||
<div id="head">
|
||||
<h1><a href="index.php" title="gelato :: home">gelato cms</a></h1>
|
||||
</div>
|
||||
|
||||
<div id="main">
|
||||
|
||||
<?
|
||||
|
||||
if ($showForm) {
|
||||
?>
|
||||
|
||||
<div class="box">
|
||||
<ul class="menu manage">
|
||||
<h3>gelato :: installation</h3>
|
||||
|
||||
<li class="selected"><a>Install</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tabla">
|
||||
<form action="install.php" method="post" id="config_form" autocomplete="off" class="newpost">
|
||||
<fieldset>
|
||||
<legend class="install">Admin user</legend>
|
||||
<ul>
|
||||
<li><label for="login">User:</label>
|
||||
<input type="text" name="login" id="login" value="" class="txt"/><?php echo mostrarerror($errors,$errors_d,"1")?></li>
|
||||
<li><label for="password">Password:</label>
|
||||
<input type="password" name="password" id="password" value="" class="txt"/><?php echo mostrarerror($errors,$errors_d,"2")?></li>
|
||||
<li><label for="password2">Re-type password:</label>
|
||||
<input type="password" name="password2" id="password2" value="" class="txt"/><?php echo mostrarerror($errors,$errors_d,"3")?></li>
|
||||
<li><label for="email">E-mail:</label>
|
||||
<input type="text" name="email" id="email" value="" class="txt"/><?php echo mostrarerror($errors,$errors_d,"4")?></li>
|
||||
</ul>
|
||||
</fieldset><br />
|
||||
<fieldset>
|
||||
<legend class="install">Tumblelog configuration</legend>
|
||||
<ul>
|
||||
<li><label for="title">Title:</label>
|
||||
<input type="text" name="title" id="title" value="" class="txt"/></li>
|
||||
<li><label for="description">Description:</label>
|
||||
<input type="text" name="description" id="description" value="" class="txt"/></li>
|
||||
<li><label for="url_installation">Installation URL</label>
|
||||
<input type="text" name="url_installation" id="url_installation" value="" class="txt"/><?php echo mostrarerror($errors,$errors_d,"5")?></li>
|
||||
<li><label for="posts_limit">Post limit:</label>
|
||||
<input type="text" name="posts_limit" id="posts_limit" value="10" class="txt"/></li>
|
||||
<li><label for="lang">Language:</label>
|
||||
<select id="lang" name="lang">
|
||||
<option value="en" selected="selected">english</option>
|
||||
</select>
|
||||
</li>
|
||||
<li><label for="template">Template:</label>
|
||||
<select id="template" name="template">
|
||||
<?php
|
||||
$themes = getThemes();
|
||||
foreach ($themes as $theme) {
|
||||
echo "<option value=\"".$theme."\" selected=\"true\">".$theme."</option>\n";
|
||||
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<p>
|
||||
<input type="hidden" name="website" id="website" value="" />
|
||||
<input type="hidden" name="about" id="about" value="" />
|
||||
<input type="hidden" name="url_friendly" id="url_friendly" value="0" />
|
||||
<input type="hidden" name="rich_text" id="rich_text" value="0" />
|
||||
<input type="hidden" name="action" id="action" value="config" />
|
||||
<input type="submit" name="btnsubmit" id="btnsubmit" value="<< Install >>" class="submit"/>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
<div class="footer-box"> </div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
} else {
|
||||
echo "<p><em>Finished!</em></p>";
|
||||
echo "<p>Now you can <a href=\"login.php\" class=\"inslnl\">log in</a> with your <strong>username</strong> and <strong>password</strong></p>";
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
<div id="foot">
|
||||
<a href="http://www.gelatocms.com/" title="gelato CMS">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php
|
||||
function installdb($login, $password, $email, $title, $description, $url_installation, $posts_limit, $lang, $template, $website, $about, $url_friendly, $rich_text){
|
||||
|
||||
$db = new Conexion_Mysql(DB_name, DB_Server, DB_User, DB_Password);
|
||||
|
||||
$sqlStr = "CREATE TABLE `".Table_prefix."data` (
|
||||
`id_post` int(11) NOT NULL auto_increment,
|
||||
`title` text NULL,
|
||||
`url` varchar(250) default NULL,
|
||||
`description` text NULL,
|
||||
`type` tinyint(4) NOT NULL default '1',
|
||||
`date` datetime NOT NULL,
|
||||
`id_user` int(10) NOT NULL,
|
||||
PRIMARY KEY (`id_post`)
|
||||
) ENGINE = MYISAM ;";
|
||||
|
||||
$db->ejecutarConsulta($sqlStr);
|
||||
|
||||
$sqlStr = "CREATE TABLE `".Table_prefix."users` (
|
||||
`id_user` int(10) unsigned NOT NULL auto_increment,
|
||||
`name` varchar(100) default NULL,
|
||||
`login` varchar(100) NOT NULL default '',
|
||||
`password` varchar(64) NOT NULL default '',
|
||||
`email` varchar(100) default NULL,
|
||||
`website` varchar(150) default NULL,
|
||||
`about` text,
|
||||
PRIMARY KEY (`id_user`)
|
||||
) ENGINE = MYISAM;";
|
||||
|
||||
$db->ejecutarConsulta($sqlStr);
|
||||
|
||||
$sqlStr = "CREATE TABLE `".Table_prefix."config` (
|
||||
`posts_limit` int(3) NOT NULL,
|
||||
`title` varchar(250) NOT NULL,
|
||||
`description` text NOT NULL,
|
||||
`lang` varchar(10) NOT NULL,
|
||||
`template` varchar(100) NOT NULL,
|
||||
`url_installation` varchar(250) NOT NULL,
|
||||
`url_friendly` tinyint(1) NOT NULL,
|
||||
`rich_text` tinyint(1) NOT NULL,
|
||||
PRIMARY KEY (`title`)
|
||||
) ENGINE = MYISAM ;";
|
||||
|
||||
$db->ejecutarConsulta($sqlStr);
|
||||
|
||||
$url_installation = (endsWith($url_installation, "/")) ? substr($url_installation, 0, strlen($url_installation)-1) : $url_installation ;
|
||||
|
||||
$sqlStr = "INSERT INTO `".Table_prefix."config` VALUES (".$posts_limit.", '".$title."', '".$description."', '".$lang."', '".$template."', '".$url_installation."', ".$url_friendly.", ".$rich_text.");";
|
||||
|
||||
$db->ejecutarConsulta($sqlStr);
|
||||
|
||||
$sqlStr = "INSERT INTO `".Table_prefix."users` VALUES ('', '', '".$login."', '".md5($password)."', '".$email."', '".$website."', '".$about."');";
|
||||
|
||||
$db->ejecutarConsulta($sqlStr);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function inerrors($errors,$n) {
|
||||
if (strpos($errors,$n)===false)
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
function mostrarerror($errors,$errors_d,$n) {
|
||||
if (inerrors($errors,$n))
|
||||
return '<span class="error">'.$errors_d[$n].'</span>';
|
||||
else
|
||||
return "";
|
||||
}
|
||||
?>
|
||||
26
login.php
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
/* ===========================
|
||||
|
||||
gelato CMS development version
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
=========================== */
|
||||
?>
|
||||
<?
|
||||
<?php
|
||||
header("Cache-Control: no-cache, must-revalidate");
|
||||
require( dirname(__FILE__) . '/config.php' );
|
||||
include(dirname(__FILE__)."/classes/user.class.php");
|
||||
|
|
@ -33,11 +33,11 @@ if ($user->isAdmin()) {
|
|||
<head>
|
||||
<title>gelato :: login screen</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link rel="shortcut icon" href="<?=$conf->urlGelato;?>/images/favicon.ico" />
|
||||
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/mootools.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/sortable.js"></script>
|
||||
<link rel="shortcut icon" href="<?php echo $conf->urlGelato;?>/images/favicon.ico" />
|
||||
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/mootools.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/sortable.js"></script>
|
||||
<style type="text/css" media="screen">
|
||||
@import "<?=$conf->urlGelato;?>/admin/css/style.css";
|
||||
@import "<?php echo $conf->urlGelato;?>/admin/css/style.css";
|
||||
</style>
|
||||
</head>
|
||||
|
||||
|
|
@ -45,9 +45,9 @@ if ($user->isAdmin()) {
|
|||
<div id="div-process" style="display:none;">Processing request...</div>
|
||||
<div id="cont">
|
||||
<div id="head">
|
||||
<h1><a href="<?=$conf->urlGelato;?>/" title="gelato :: home">gelato cms</a></h1>
|
||||
<h1><a href="<?php echo $conf->urlGelato;?>/" title="gelato :: home">gelato cms</a></h1>
|
||||
<ul id="nav">
|
||||
<li><a href="<?=$conf->urlGelato;?>/" title="Take me to the tumblelog">Back to the Tumblelog</a></li>
|
||||
<li><a href="<?php echo $conf->urlGelato;?>/" title="Take me to the tumblelog">Back to the Tumblelog</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="main">
|
||||
|
|
@ -73,21 +73,21 @@ if ($user->isAdmin()) {
|
|||
</ul>
|
||||
</fieldset>
|
||||
</form>
|
||||
<?
|
||||
<?php
|
||||
if (isset($_GET["error"])) {
|
||||
if ($_GET["error"]==1) {
|
||||
?>
|
||||
<div class="error">
|
||||
You must be registered to use gelato.
|
||||
</div>
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
elseif ($_GET["error"]==2) {
|
||||
?>
|
||||
<div class="error">
|
||||
You must be logged on the system.
|
||||
</div>
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
@ -97,12 +97,12 @@ if ($user->isAdmin()) {
|
|||
</div>
|
||||
</div>
|
||||
<div id="foot">
|
||||
<a href="http://www.gelatocms.com/" title="gelato CMS" target="_blank">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
|
||||
<a href="http://www.gelatocms.com/" title="gelato CMS">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
17
readme.txt
|
|
@ -1,4 +1,19 @@
|
|||
==== How to install gelato CMS developers preview =====
|
||||
==== How to install gelato CMS =====
|
||||
|
||||
1) Download and unzip the gelato package, if you haven't already.
|
||||
2) Create a database for gelato on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.
|
||||
3) Rename the config-sample.php file to config.php.
|
||||
4) Open config.php in your favorite text editor and fill in your database details.
|
||||
5) Place the gelato files in the desired location on your web server.
|
||||
6) Run the gelato installation script by accessing install.php in your favorite web browser.
|
||||
* If you installed gelato in the root directory, you should visit: http://example.com/install.php
|
||||
* If you installed gelato in its own subdirectory called tumblelog, for example, you should visit: http://example.com/tumblelog/install.php
|
||||
7) Set CHMOD / permission ( Chmod 777 ) to the folder 'uploads'
|
||||
|
||||
That's it! gelato should now be installed.
|
||||
|
||||
|
||||
==== How to install gelato CMS (Manual) =====
|
||||
|
||||
1) Download and unzip the gelato package, if you haven't already.
|
||||
2) Create a database for gelato on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.
|
||||
|
|
|
|||
117
rss.php
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
/* ===========================
|
||||
|
||||
gelato CMS development version
|
||||
|
|
@ -8,114 +8,89 @@
|
|||
|
||||
=========================== */
|
||||
?>
|
||||
<?
|
||||
<?php
|
||||
header("Content-type: text/xml; charset=utf-8");
|
||||
|
||||
require(dirname(__FILE__)."/config.php");
|
||||
include("classes/configuration.class.php");
|
||||
$conf = new configuration();
|
||||
|
||||
echo "<?xml version=\"1.0\""." encoding=\"UTF-8\"?>\n";
|
||||
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
|
||||
?>
|
||||
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title><?php echo htmlspecialchars($conf->title);?></title>
|
||||
<link><?php echo $conf->urlGelato;?></link>
|
||||
<description><?php echo htmlspecialchars($conf->description);?></description>
|
||||
<generator>gelato CMS</generator>
|
||||
<image>
|
||||
<url><?php echo $conf->urlGelato;?>/images/information.png</url>
|
||||
<title><?php echo htmlspecialchars($conf->description);?></title>
|
||||
<link><?php echo $conf->urlGelato;?></link>
|
||||
</image>
|
||||
|
||||
|
||||
<?php
|
||||
include("classes/gelato.class.php");
|
||||
include("classes/textile.class.php");
|
||||
$tumble = new gelato();
|
||||
$rs = $tumble->getPosts("20");
|
||||
if ($tumble->contarRegistros()>0) {
|
||||
?>
|
||||
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title><?=htmlspecialchars(replaceAccents($conf->title));?></title>
|
||||
<link><?=$conf->urlGelato;?></link>
|
||||
<description><?=htmlspecialchars(replaceAccents($conf->description));?></description>
|
||||
<generator>gelato CMS</generator>
|
||||
<image>
|
||||
<url><?=$conf->urlGelato;?>/images/information.png</url>
|
||||
<title><?=htmlspecialchars(replaceAccents($conf->description));?></title>
|
||||
<link><?=$conf->urlGelato;?></link>
|
||||
</image>
|
||||
<?
|
||||
while($register = mysql_fetch_array($rs)) {
|
||||
$textile = new Textile;
|
||||
$register["description"] = $textile->process($register["description"]);
|
||||
|
||||
switch ($register["type"]) {
|
||||
case "1":
|
||||
$tit = ($register["title"]=="") ? htmlspecialchars(strip_tags($register["description"])) : htmlspecialchars($register["title"]);
|
||||
$desc = htmlspecialchars($register["description"]);
|
||||
$tit = ($register["title"]=="") ? strip_tags($register["description"]) : $register["title"];
|
||||
$desc = $register["description"];
|
||||
break;
|
||||
case "2":
|
||||
$tit = ($register["description"]=="") ? "Photo" : htmlspecialchars(strip_tags($register["description"]));
|
||||
$tit = ($register["description"]=="") ? "Photo" : strip_tags($register["description"]);
|
||||
$desc = "<img src=\"".$register["url"]."\"/>";
|
||||
break;
|
||||
case "3":
|
||||
$tit = "\"".htmlspecialchars(strip_tags($register["description"]))."\"";
|
||||
$tmpStr = ($register["title"]!="") ? "<br /><br /> - <em>".htmlspecialchars($register["title"])."</em>" : "";
|
||||
$desc = "\"".htmlspecialchars($register["description"])."\"".$tmpStr;
|
||||
$tit = "\"".strip_tags($register["description"])."\"";
|
||||
$tmpStr = ($register["title"]!="") ? "<br /><br /> - <em>".$register["title"]."</em>" : "";
|
||||
$desc = "\"".$register["description"]."\"".$tmpStr;
|
||||
break;
|
||||
case "4":
|
||||
$tit = ($register["title"]=="") ? htmlspecialchars($register["url"]) : htmlspecialchars($register["title"]);
|
||||
$tmpStr = ($register["description"]!="") ? "<br /><br /> - <em>".htmlspecialchars($register["description"])."</em>" : "";
|
||||
$desc = "<a href=\"".htmlspecialchars($register["url"])."\">".$tit."</a>".$tmpStr;
|
||||
$tit = ($register["title"]=="") ? $register["url"] : $register["title"];
|
||||
$tmpStr = ($register["description"]!="") ? "<br /><br /> - <em>".$register["description"]."</em>" : "";
|
||||
$desc = "<a href=\"".$register["url"]."\">".$tit."</a>".$tmpStr;
|
||||
break;
|
||||
case "5":
|
||||
$lines = explode("\n", $register["description"]);
|
||||
$line = htmlspecialchars($lines[0]);
|
||||
$tit = ($register["title"]=="") ? $line : htmlspecialchars($register["title"]);
|
||||
$desc = $tumble->formatConversation(htmlspecialchars($register["description"]));
|
||||
$line = $lines[0];
|
||||
$tit = ($register["title"]=="") ? $line : $register["title"];
|
||||
$desc = $tumble->formatConversation($register["description"]);
|
||||
break;
|
||||
case "6":
|
||||
$tit = ($register["description"]=="") ? "Video" : htmlspecialchars(strip_tags($register["description"]));
|
||||
$desc = $tumble->getVideoPlayer(htmlspecialchars($register["url"]));
|
||||
$tit = ($register["description"]=="") ? "Video" : strip_tags($register["description"]);
|
||||
$desc = $tumble->getVideoPlayer($register["url"]);
|
||||
break;
|
||||
case "7":
|
||||
$tit = ($register["description"]=="") ? "MP3" : htmlspecialchars(strip_tags($register["description"]));
|
||||
$desc = $tumble->getMp3Player(htmlspecialchars($register["url"]));
|
||||
$tit = ($register["description"]=="") ? "MP3" : strip_tags($register["description"]);
|
||||
$desc = $tumble->getMp3Player($register["url"]);
|
||||
break;
|
||||
}
|
||||
$url = htmlspecialchars($conf->urlGelato."/index.php/post/".$register["id_post"]."/");
|
||||
$url = $conf->urlGelato."/index.php/post/".$register["id_post"]."/";
|
||||
$formatedDate = gmdate("D, d M Y H:i:s \G\M\T", strtotime($register["date"]));
|
||||
?>
|
||||
?>
|
||||
|
||||
<item>
|
||||
<title><?=replaceAccentsWithAmp($tit);?></title>
|
||||
<description><![CDATA[<?=replaceAccentsWithAmp($desc);?>]]></description>
|
||||
<link><?=$url;?></link>
|
||||
<guid isPermaLink="true"><?=$conf->urlGelato."/index.php/post/".$register["id_post"]."/";?></guid>
|
||||
<pubDate><?=$formatedDate;?></pubDate>
|
||||
<title><?php echo $tit;?></title>
|
||||
<description><![CDATA[<?php echo $desc;?>]]></description>
|
||||
<link><?php echo $url;?></link>
|
||||
<guid isPermaLink="true"><?php echo $conf->urlGelato."/index.php/post/".$register["id_post"]."/";?></guid>
|
||||
<pubDate><?php echo $formatedDate;?></pubDate>
|
||||
</item>
|
||||
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</channel>
|
||||
</rss>
|
||||
|
||||
<?
|
||||
function replaceAccents($texto="") {
|
||||
$texto = str_replace("Á","A", $texto);
|
||||
$texto = str_replace("É","E", $texto);
|
||||
$texto = str_replace("Í","I", $texto);
|
||||
$texto = str_replace("Ó","O", $texto);
|
||||
$texto = str_replace("Ú","U", $texto);
|
||||
$texto = str_replace("á","a", $texto);
|
||||
$texto = str_replace("é","e", $texto);
|
||||
$texto = str_replace("í","i", $texto);
|
||||
$texto = str_replace("ó","o", $texto);
|
||||
$texto = str_replace("ú","u", $texto);
|
||||
return $texto;
|
||||
}
|
||||
|
||||
function replaceAccentsWithAmp($texto="") {
|
||||
$texto = str_replace("&Aacute;","A", $texto);
|
||||
$texto = str_replace("&Eacute;","E", $texto);
|
||||
$texto = str_replace("&Iacute;","I", $texto);
|
||||
$texto = str_replace("&Oacute;","O", $texto);
|
||||
$texto = str_replace("&Uacute;","U", $texto);
|
||||
$texto = str_replace("&aacute;","a", $texto);
|
||||
$texto = str_replace("&eacute;","e", $texto);
|
||||
$texto = str_replace("&iacute;","i", $texto);
|
||||
$texto = str_replace("&oacute;","o", $texto);
|
||||
$texto = str_replace("&uacute;","u", $texto);
|
||||
$texto = str_replace("&#39;"," ", $texto);
|
||||
return $texto;
|
||||
}
|
||||
?>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
</div>
|
||||
<div id="footer">
|
||||
subscribe via <a href="{URL_Tumble}/rss.php">rss</a> /
|
||||
powered by <a href="http://www.gelatocms.com/" target="_blank">gelato cms</a>
|
||||
powered by <a href="http://www.gelatocms.com/">gelato cms</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||