Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Acces logs display  (Read 2097 times)

0 Members and 1 Guest are viewing this topic.

cyberdyne2

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Posts: 75
Acces logs display
« on: September 24, 2012, 11:36:38 am »

Is it possible to set Access and Security logs to display in descending order by date, ie: most recent first ?
Thank you.
Logged
v.1.5.22

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1323
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Acces logs display
« Reply #1 on: September 24, 2012, 11:45:25 pm »

Please post a link.
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616

v.1.5.12
If that is correct you badly need to upgrade.
http://forum.coppermine-gallery.net/index.php/topic,74682.0.html



In viewlog.php
find:
Code: [Select]
    $log_array = explode('---' , log_read($logname));
replace with:
Code: [Select]
    $log_array = explode('---' , log_read($logname));
    $log_array = array_reverse($log_array);
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

cyberdyne2

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Posts: 75
Re: Re: Acces logs display
« Reply #2 on: September 25, 2012, 01:31:13 am »

Please post a link.
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
If that is correct you badly need to upgrade.
http://forum.coppermine-gallery.net/index.php/topic,74682.0.html

I didn't know about the upgrade until I logged in yesterday to post my question and so immediately upgraded after seeing the info.

http://londonallstars.co.uk/gallery/

In viewlog.php
find:
Code: [Select]
    $log_array = explode('---' , log_read($logname));
replace with:
Code: [Select]
    $log_array = explode('---' , log_read($logname));
    $log_array = array_reverse($log_array);

Worked perfectly, many thanks Jeff.
« Last Edit: September 25, 2012, 01:32:52 am by Jeff Bailey »
Logged
v.1.5.22

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1323
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Acces logs display
« Reply #3 on: September 25, 2012, 01:34:02 am »

Glad it worked for you. Thank you for resolving your thread.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.