Piwigo Bugtracker

Viewing Issue Advanced Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000163 [Piwigo] navigation minor always 2005.09.24 16:58 2005.09.25 20:49
Reporter noiry View Status public  
Assigned To plg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 1.5.0RC2 Product Version 1.5.0RC1
  Target Version Product Build
Summary 0000163: historique sans coockies
Description Lorsqu'on clique sur le mois, si l'on a pas de coockies : non autorisé a acceder à la page.

normal, on a pas de session_id

admin/stats.php : ligne 89

  else
  {
    $current_month = $row['y']."-";
    if ($row['m'] <10) {$current_month.='0';}
    $current_month .= $row['m'];
    $where_clause = "DATE_FORMAT(date,'%Y-%m') = '".$current_month."'";
    $value = "<a href='".PHPWG_ROOT_PATH."admin.php?page=stats";
    $value.= "&year=".$row['y']."&month=".$row['m']."'>";
    $value.= $lang['month'][$row['m']].' '.$row['y'];
    $value.= "</a>";
  }
Steps To Reproduce
Additional Information Ma solution (peut etre pas ce qu'il y a de mieux, mais ca marche :) )

  else
  {
    $current_month = $row['y']."-";
    if ($row['m'] <10) {$current_month.='0';}
    $current_month .= $row['m'];
    $where_clause = "DATE_FORMAT(date,'%Y-%m') = '".$current_month."'";
    $url_stats = PHPWG_ROOT_PATH."admin.php?page=stats";
    $url_stats.= "&year=".$row['y']."&month=".$row['m'];
    $url_stats = add_session_id($url_stats);
    $value = "<a href='".$url_stats."'>";
    $value.= $lang['month'][$row['m']].' '.$row['y'];
    $value.= "</a>";
  }
Tags No tags attached.
browser any
Database engine and version
PHP version
Web server Apache 1.3.x
Attached Files

- Relationships

-  Notes
(0000270)
plg (manager)
2005.09.25 20:49

OK, j'ai pas pris directement ton code, mais ma correction y ressemble comme 2 gouttes d'eau.

- Issue History
Date Modified Username Field Change
2005.09.24 16:58 noiry New Issue
2005.09.24 16:58 noiry browser => any
2005.09.24 16:58 noiry Web server => Apache 1.3.x
2005.09.24 17:39 noiry Issue Monitored: noiry
2005.09.24 20:45 plg version => 1.5.0RC1
2005.09.25 20:49 plg Note Added: 0000270
2005.09.25 20:49 plg Assigned To => plg
2005.09.25 20:49 plg Status new => closed
2005.09.25 20:49 plg Resolution open => fixed
2005.09.25 20:49 plg Fixed in Version => 1.5.0RC2


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Contact
Powered by Mantis Bugtracker