]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Some change to add scheduler management for update process
authoreldy <>
Sun, 20 Jun 2004 19:17:41 +0000 (19:17 +0000)
committereldy <>
Sun, 20 Jun 2004 19:17:41 +0000 (19:17 +0000)
Creating new config files can be done by copying an old one.

tools/webmin/awstats/index.cgi
tools/webmin/awstats/lang/en

index d05b340f3113e8b6ef88e4a469c6874e300d0cd2..fb8de0b33695c48360a60a0ec9ac969d5e62a6f3 100644 (file)
@@ -124,10 +124,11 @@ if (@config) {
                if ($nbofallowedconffound == 1) {
                        print "<a href='edit_config.cgi?new=1'>$text{'index_add'}</a>\n" if ($access{'add'});
                        print "<table border width=100%>\n";
-                       print "<tr $tb> <td rowspan=2><b>$text{'index_path'}</b></td> ",
-                             "<td rowspan=2 align=center><b>$text{'index_create'}</b></td> ",
-                             "<td colspan=2 align=center><b>$text{'index_update'}</b></td> ",
-                             "<td rowspan=2 align=center><b>$text{'index_view'}</b></td> </tr>\n";
+                       print "<tr $tb> <td rowspan=2><b>$text{'index_path'}</b></td> ";
+                       print "<td rowspan=2 align=center><b>$text{'index_create'}</b></td> ";
+                       #print "<td rowspan=2 align=center><b>$text{'index_databasesize'}</b></td> ";
+                       print "<td colspan=2 align=center><b>$text{'index_update'}</b></td> ";
+                       print "<td rowspan=2 align=center><b>$text{'index_view'}</b></td> </tr>\n";
                        print "<tr $tb><td align=center>$text{'index_scheduled'}</td><td align=center>$text{'index_now'}</td></tr>\n";
                }
 
@@ -151,8 +152,10 @@ if (@config) {
                local @st=stat($l);
                my ($sec,$min,$hour,$day,$month,$year,$wday,$yday) = localtime($st[10]);
                $year+=1900; $month++;
-               printf("<td align=center>%04s-%02s-%02s %02s:%02s:%02s</td>",$year,$month,$day,$hour,$min,$sec);
+               printf("<td align=center>%04s-%02s-%02s<br>%02s:%02s:%02s</td>",$year,$month,$day,$hour,$min,$sec);
        
+               # Database size
+               #print "<td>NA</td>";
                
                if ($access{'update'}) {        # Update
                print "<td align=center><a href='schedule_stats.cgi?file=$l'>$text{'index_sched2'}</a></td>";
index 72730936d56fe177a04d87680e51567d3ae4c5c7..18f8dbb26340bb09a3187c69295480465bb21e0c 100644 (file)
@@ -9,6 +9,7 @@ index_path=Config file
 index_type=Type
 index_size=Size
 index_create=Created/Modified
+index_databasesize=Database size
 index_noconfig=No config files were found or have been added for analysis.
 index_edit=Edit/Delete config
 index_del=Delete config