Piwigo Bugtracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000163Piwigonavigationpublic2005.09.24 16:582005.09.25 20:49
Reporternoiry 
Assigned Toplg 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version1.5.0RC1 
Target VersionFixed in Version1.5.0RC2 
Summary0000163: historique sans coockies
DescriptionLorsqu'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>";
  }
Additional InformationMa 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>";
  }
TagsNo tags attached.
browserany
Database engine and version
PHP version
Web serverApache 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 20:45 plg Product 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


Copyright © 2000 - 2015 MantisBT Team
Contact
Powered by Mantis Bugtracker