|
@@ -1,5 +1,7 @@
|
1
|
1
|
<?php
|
2
|
|
-
|
|
2
|
+
|
|
3
|
+ * Probando... uno, dos, tres.
|
|
4
|
+ */
|
3
|
5
|
|
4
|
6
|
if(!defined('entry'))define('entry', true);
|
5
|
7
|
|
|
@@ -270,18 +272,20 @@ $template = new plantillas($conf->template);
|
270
|
272
|
$input = array("{Comments_Number}", "{Post_Title}");
|
271
|
273
|
$output = array($comment->countComments($register["id_post"]), $register["title"]);
|
272
|
274
|
$template->precargarPlantillaConBloque($input, $output, "template_comments", "comments");
|
273
|
|
- while($rowComment = mysql_fetch_array($rsComments)) {
|
274
|
|
-
|
|
275
|
+
|
|
276
|
+ while($rowComment = mysql_fetch_assoc($rsComments)) {
|
|
277
|
+ echo "<pre>";
|
|
278
|
+ print_r($rowComment);
|
|
279
|
+ echo "</pre>";
|
275
|
280
|
$commentAuthor = ($rowComment["web"]=="") ? $rowComment["username"] : "<a href=\"".$rowComment["web"]."\" rel=\"external\">".$rowComment["username"]."</a>";
|
276
|
|
- $input = array("{Id_Comment}", "{Comment_Author}", "{Date}", "{Comment}");
|
|
281
|
+ $input = array("{Id_Comment}", "{Comment_Author}", "{Date}", "{Comment}");
|
277
|
282
|
$output = array($rowComment["id_comment"], $commentAuthor, gmdate("d.m.y", strtotime($rowComment["comment_date"])+transform_offset($conf->offsetTime)), $rowComment["content"]);
|
278
|
283
|
$template->cargarPlantillaConBloque($input, $output, "template_comments", "comments");
|
279
|
284
|
}
|
280
|
285
|
$template->mostrarPlantillaConBloque();
|
281
|
|
-
|
282
|
286
|
|
283
|
287
|
$input = array("{User_Cookie}", "{Email_Cookie}", "{Web_Cookie}", "{Id_Post}", "{Form_Action}", "{Date_Added}");
|
284
|
|
- $output = array($_COOKIE['cookie_gel_user'], $_COOKIE['cookie_gel_email'], $_COOKIE['cookie_gel_web'], $register["id_post"], $conf->urlGelato."/admin/comments.php", gmmktime());
|
|
288
|
+ $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());
|
285
|
289
|
|
286
|
290
|
$template->cargarPlantilla($input, $output, "template_comment_post");
|
287
|
291
|
$template->mostrarPlantilla();
|