Victor De la Rocha 2007-10-03 00:44:02 +00:00
parent 06e3aaa20b
commit ed83ef4cdf
1 changed files with 10 additions and 6 deletions

View File

@ -1,5 +1,7 @@
<?php <?php
/*
* Probando... uno, dos, tres.
*/
if(!defined('entry'))define('entry', true); if(!defined('entry'))define('entry', true);
/* =========================== /* ===========================
@ -270,8 +272,11 @@ $template = new plantillas($conf->template);
$input = array("{Comments_Number}", "{Post_Title}"); $input = array("{Comments_Number}", "{Post_Title}");
$output = array($comment->countComments($register["id_post"]), $register["title"]); $output = array($comment->countComments($register["id_post"]), $register["title"]);
$template->precargarPlantillaConBloque($input, $output, "template_comments", "comments"); $template->precargarPlantillaConBloque($input, $output, "template_comments", "comments");
while($rowComment = mysql_fetch_array($rsComments)) {
while($rowComment = mysql_fetch_assoc($rsComments)) {
echo "<pre>";
print_r($rowComment);
echo "</pre>";
$commentAuthor = ($rowComment["web"]=="") ? $rowComment["username"] : "<a href=\"".$rowComment["web"]."\" rel=\"external\">".$rowComment["username"]."</a>"; $commentAuthor = ($rowComment["web"]=="") ? $rowComment["username"] : "<a href=\"".$rowComment["web"]."\" rel=\"external\">".$rowComment["username"]."</a>";
$input = array("{Id_Comment}", "{Comment_Author}", "{Date}", "{Comment}"); $input = array("{Id_Comment}", "{Comment_Author}", "{Date}", "{Comment}");
$output = array($rowComment["id_comment"], $commentAuthor, gmdate("d.m.y", strtotime($rowComment["comment_date"])+transform_offset($conf->offsetTime)), $rowComment["content"]); $output = array($rowComment["id_comment"], $commentAuthor, gmdate("d.m.y", strtotime($rowComment["comment_date"])+transform_offset($conf->offsetTime)), $rowComment["content"]);
@ -279,9 +284,8 @@ $template = new plantillas($conf->template);
} }
$template->mostrarPlantillaConBloque(); $template->mostrarPlantillaConBloque();
$input = array("{User_Cookie}", "{Email_Cookie}", "{Web_Cookie}", "{Id_Post}", "{Form_Action}", "{Date_Added}"); $input = array("{User_Cookie}", "{Email_Cookie}", "{Web_Cookie}", "{Id_Post}", "{Form_Action}", "{Date_Added}");
$output = array($_COOKIE['cookie_gel_user'], $_COOKIE['cookie_gel_email'], $_COOKIE['cookie_gel_web'], $register["id_post"], $conf->urlGelato."/admin/comments.php", gmmktime()); $output = array(isset($_COOKIE['cookie_gel_user'])?$_COOKIE['cookie_gel_user']:'', isset($_COOKIE['cookie_gel_email'])?$_COOKIE['cookie_gel_email']:'', isset($_COOKIE['cookie_gel_web'])?$_COOKIE['cookie_gel_web']:'', $register["id_post"], $conf->urlGelato."/admin/comments.php", gmmktime());
$template->cargarPlantilla($input, $output, "template_comment_post"); $template->cargarPlantilla($input, $output, "template_comment_post");
$template->mostrarPlantilla(); $template->mostrarPlantilla();