Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Acces logs display  (Read 2948 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: 1322
  • 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: 1322
  • 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.022 seconds with 20 queries.