Acces logs display Acces logs display
 

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]

Main Menu

Acces logs display

Started by cyberdyne2, September 24, 2012, 11:36:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cyberdyne2

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

Jeff Bailey

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

Quote from: cyberdyne2 on September 24, 2012, 11:36:38 AM
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:

    $log_array = explode('---' , log_read($logname));

replace with:

    $log_array = explode('---' , log_read($logname));
    $log_array = array_reverse($log_array);
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

cyberdyne2

#2
Quote from: Jeff Bailey on September 24, 2012, 11:45:25 PM
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/

Quote from: Jeff Bailey on September 24, 2012, 11:45:25 PMIn viewlog.php
find:

    $log_array = explode('---' , log_read($logname));

replace with:

    $log_array = explode('---' , log_read($logname));
    $log_array = array_reverse($log_array);


Worked perfectly, many thanks Jeff.
v.1.5.22

Jeff Bailey

Glad it worked for you. Thank you for resolving your thread.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford