Victor De la Rocha 16 years ago
parent
commit
ed83ef4cdf
1 changed files with 10 additions and 6 deletions
  1. 10 6
      index.php

+ 10 - 6
index.php View File

1
 <?php
1
 <?php
2
-   
2
+ /*
3
+  * Probando... uno, dos, tres.
4
+  */   
3
    
5
    
4
 if(!defined('entry'))define('entry', true);
6
 if(!defined('entry'))define('entry', true);
5
  /* ===========================
7
  /* ===========================
270
 					$input = array("{Comments_Number}", "{Post_Title}");				
272
 					$input = array("{Comments_Number}", "{Post_Title}");				
271
 					$output = array($comment->countComments($register["id_post"]), $register["title"]);
273
 					$output = array($comment->countComments($register["id_post"]), $register["title"]);
272
 					$template->precargarPlantillaConBloque($input, $output, "template_comments", "comments");
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
 						$commentAuthor = ($rowComment["web"]=="") ? $rowComment["username"] : "<a href=\"".$rowComment["web"]."\" rel=\"external\">".$rowComment["username"]."</a>";
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
 						$output = array($rowComment["id_comment"], $commentAuthor, gmdate("d.m.y", strtotime($rowComment["comment_date"])+transform_offset($conf->offsetTime)), $rowComment["content"]);
282
 						$output = array($rowComment["id_comment"], $commentAuthor, gmdate("d.m.y", strtotime($rowComment["comment_date"])+transform_offset($conf->offsetTime)), $rowComment["content"]);
278
 						$template->cargarPlantillaConBloque($input, $output, "template_comments", "comments");
283
 						$template->cargarPlantillaConBloque($input, $output, "template_comments", "comments");
279
 					}
284
 					}
280
 					$template->mostrarPlantillaConBloque();
285
 					$template->mostrarPlantillaConBloque();
281
-					
282
 										
286
 										
283
 					$input = array("{User_Cookie}", "{Email_Cookie}", "{Web_Cookie}", "{Id_Post}", "{Form_Action}", "{Date_Added}");
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
 					$template->cargarPlantilla($input, $output, "template_comment_post");
290
 					$template->cargarPlantilla($input, $output, "template_comment_post");
287
 					$template->mostrarPlantilla(); 
291
 					$template->mostrarPlantilla();