php forum
php mysql forum
php mysql smarty
 
Topic Options
#317585 - 09/24/08 05:39 PM [7.3] Viewing MySQL logfiles made easier
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 303
Loc: The Netherlands
If you view a logfile, and you want to delete it, you have to search the link again in the list, and hit the remove link there.

I've added a remove link to enable removing the current logfile being viewed. I also added an anchor to the html, so if you view a logfile, you go to the correct spot on the page.

/admin/logs.php

Find:
Php Code:
 $view .= "<tr><td colspan=\"3\" class=\"autorow-header-1 bold\">{$ubbt_lang['DETAILS']} $file</td></tr>";
 


Replace with:
Php Code:
 $view .= "<tr><td colspan=\"2\" class=\"autorow-header-1 bold\">{$ubbt_lang['DETAILS']} <a name=\"show\"></a>$file</td>";
	$view .= "<td colspan=\"2\" class=\"autorow-header-1 bold\" align=\"right\">";
	$view .= "[<a href=\"{$config['BASE_URL']}/admin/logs.php?action=remove&amp;file={$file}\">{$ubbt_lang['REMOVE']}]</a></tr>";
 


open /templates/default/admin/logs.tmpl

Find:
Php Code:
[<a href="{$config['BASE_URL']}/admin/logs.php?action=view&amp;file={$log[$i]['name']}">{$ubbt_lang['VIEW']}</a>] &middot;
 


replace with:
Php Code:
[<a href="{$config['BASE_URL']}/admin/logs.php?action=view&amp;file={$log[$i]['name']}#show">{$ubbt_lang['VIEW']}</a>] &middot;  
_________________________

Top
#317589 - 09/27/08 09:57 PM Re: [7.3] Viewing MySQL logfiles made easier [Re: blaaskaak]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
Very nice smile

It would be nice too, to eventually have select boxes to select more than one log file to remove - there can be hundreds and if you want to delete all those older than a month you will be clicking for a while smile

On slower servers I can sometimes click 2 before the page refreshes smile
_________________________
- Allen wavey
- What Drives You?

Top


Moderator:  sirdude 
Who's Online
0 registered (), 27 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
Begbie, cenk, MATTO, DougMMcts, tim Anderson
13361 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks