320a321,382 > > // --- bug-859 begin --- > // --- display account creation information > > $query = "select users.created as created, users.modified as lastact from `users` where `id`='".intval($row['id'])."' "; > $dres = mysql_query($query); > $drow = mysql_fetch_assoc($dres); > $ucreated = $drow['created']; > $umodified = $drow['lastact']; > $now = date("Y-m-d H:i:s"); > $ucrtdisp = ""; > $umoddisp = ""; > if (substr($ucreated,0,7)==substr($now,0,7)) { > $ucrtdisp = _("this month"); > } elseif (substr($ucreated,0,4)==substr($now,0,4)) { > $ucrtdisp = _("this year"); > } elseif (substr($ucreated,0,7)>"2009-06") { > $ucrtdisp = _("between June 2009 and this year"); > } elseif (substr($ucreated,0,7)>="2009-01") { > $ucrtdisp = _("between January and June 2009"); > } else { > $ucrtdisp = _("before January 2009"); > } > > if (substr($umodified,0,7)==substr($now,0,7)) { > $umoddisp = _("this month"); > } elseif (substr($umodified,0,4)==substr($now,0,4)) { > $umoddisp = _("this year"); > } elseif (substr($umodified,0,7)< (intval(substr($now,0,4))-2)."-".substr($now,5,2) ) { > $umoddisp = _("before 2 years"); > } elseif (substr($umodified,0,7)< (intval(substr($now,0,4))-1)."-".substr($now,5,2)) { > $umoddisp = _("before 1 year"); > } else { > $umoddisp = _("within last 12 months"); > } > > > ?> > > > > > > > > > > > > > > > // --- bug-859 end --- > ?> >
:
:
>
> // End - Debug infos > ?> >