Acces logs display Acces logs display
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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