News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

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://coppermine-gallery.com/forum/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://coppermine-gallery.com/forum/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://coppermine-gallery.com/forum/index.php/topic,55415.msg270616.html#msg270616
If that is correct you badly need to upgrade.
http://coppermine-gallery.com/forum/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