home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
FAQ
/
cgi-bin
/
discus4_00
/
source
/
quota.tmpl
< prev
next >
Wrap
Text File
|
2009-11-06
|
7KB
|
196 lines
# FILE: quota.tmpl
# DESCRIPTION: Disk Quota Manager screen
# Copyright (c) 2002, DiscusWare, LLC, all rights reserved
# -------------------------------------------------------------------------------------------
<!--BEGIN-->
<#define array @menubar (number,name)#>
0 Events
<#if $event->{isevent} == 0#> 1 Tests
<#if $event->{isevent} == 1#> 2 Enable Board
<#/define#>
<#define array @skin_alt (_index, color)#>
1 #c0c0c0
2 #d0d0d0
<#/define#>
<html>
<head>
<title>Disk Quota Diagnostics</title>
<style>
td.unselected {font: bold 9pt verdana,arial,helvetica; background-color: #d0d0d0}
td.selected {font: bold 9pt verdana,arial,helvetica; background-color: #f7f757}
td.ub {font: bold 8pt verdana,arial,helvetica}
td.eb {font: bold 9pt verdana,arial,helvetica}
td.enb {font: 9pt verdana,arial,helvetica}
a.bar {text-decoration: none}
p { margin-left: 2pt; }
p.blbar {margin-left: 0pt; font: 11pt verdana,arial,helvetica; color: #ffff00; background-color: #000000; width: 100% }
.surround {border: thin black inset; width: 100%; font: 10pt verdana,arial,helvetica }
.normal {font: 10pt verdana,arial,helvetica}
.comment {font: 9pt verdana,arial,helvetica; margin-left: 20pt; }
</style>
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000ff">
$fs<font size=3><center><b>Disk Quota Diagnostics</b></center></font>
<hr>
<table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td bgcolor=#d0d0d0>
<table cellpadding=5 cellspacing=0><tr>
<#foreach $barid (@menubar)#>
<#if $general->{menu} == $barid->{number}#>
<td class="selected">
<#else#>
<td class="unselected">
<#endif#>
<a class="bar" href="$general->{url}&menu=$barid->{number}">$barid->{name}</a>
</td>
<#endloop#>
</tr></table>
</td></tr></table>
<hr>
<p>
<#if $general->{menu} == 0#>
<div class="surround">
{#if $browser->{ieX}#}<p class="blbar">Disk Quota Events</p>{#else#}<table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>Disk Quota Events</font></font></td></tr></table>{#endif#}
<#if $event->{isevent} == 0#>
<p>
No disk quota events have been detected! You are encouraged to use the test
utilities to help prevent problems before they can occur.
</p>
<#else#>
<p>
At the time indicated below, a disk quota error situation occurred. The board
was automatically disabled to prevent damage to your data. If normal use of the
board had been permitted to continue, serious corruption of the Discus board could
have taken place.
</p><p>
In order to enable this board, you must go to the "Enable" link above. We
suggest that you enable your board only when you understand the cause of this
error message and have addressed it.
</p>
<ul>
<li><b>Error Date:</b> $event->{errdate}
<li><b>Condition:</b> $event->{description}
</ul>
<#endif#>
</div>
<br><br>
<#if $lgfile->{count} > 0#>
<div class="surround">
{#if $browser->{ieX}#}<p class="blbar">Large File Scan</p>{#else#}<table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>Large File Scan</font></font></td></tr></table>{#endif#}
<p>
This section scans for files larger than 1 MB. It is very possible that you will
have large files if you have a long message page or you have uploading enabled.
You should not delete any files unless you understand exactly what they do and you
are sure that you do not need them!
</p>
<p>
<table border=0 cellpadding=0 cellspacing=0 width=98%><tr><td bgcolor="#000000">
<table border=0 cellpadding=2 cellspacing=1 width=100%>
<tr bgcolor=#ffffcc>
<td class=eb>File (with full directory path)</td>
<td class=eb align=right>Size(kB)</td>
</tr>
<#foreach $file (@lgfiles)#>
<tr bgcolor="<#pick color $file->{_iteration} from @skin_alt (1,2)#>">
<td class=enb>$file->{filename}</td>
<td align=right class=enb>$file->{filesize}</td>
</tr>
<#endloop#>
</table>
</td></tr></table>
</p>
<br>
</div>
<#endif#>
<#endif#>
<#if $general->{menu} == 1#>
<#define array @sizes (size, selected)#>
1 0
5 0
10 0
15 0
20 0
25 1
50 0
<#/define#>
<form action="$cgiurl" method=post>
<input type=hidden name="username" value="$general->{username}">
<input type=hidden name="action" value="quotatest">
<div class="surround">
{#if $browser->{ieX}#}<p class="blbar">Disk Quota Tests</p>{#else#}<table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>Disk Quota Tests</font></font></td></tr></table>{#endif#}
<p>
This option allows you to test your free disk space. This is done by having Discus
attempt to create a file of the size that you specify below. Note that if you do
this, it might automatically notify your web host that you are running out of space
even though you are well below your quota. This should not cause any damage on your
site, but should be used at your own risk.
</p>
<ul>
<table>
<tr><td class="eb">File Size:</td>
<td><select name=size>
<#foreach $size (@sizes)#>
<option value="$size->{size}"{#if $size->{selected} == 1#} selected{#endif#}>$size->{size} MB</option>
<#endloop#>
</select></td>
<td><input type=submit value="Test Free Space"></td>
</tr></table>
</ul>
<p>
Discus has automatically performed a test to make sure that it can remove files in
your 'locks' and 'backups' directories.
</p>
<ul>
<table>
<tr><td class="eb">Directory</td>
<td> </td>
<td class="eb">Result</td>
</tr>
<tr>
<td class=enb>'locks' directory</td>
<td> </td>
<td class=eb><#if $test->{locks} eq ""#><font color=#119911>PASSED!</font><#else#><font color=#ff0000>FAILED: $test->{locks}<#endif#></td>
</tr>
<tr>
<td class=enb>'backups' directory</td>
<td> </td>
<td class=eb><#if $test->{backups} eq ""#><font color=#119911>PASSED!</font><#else#><font color=#ff0000>FAILED: $test->{backups}<#endif#></td>
</tr>
</table>
</ul>
</div>
</form>
<#endif#>
<#if $general->{menu} == 2#>
<form action="$cgiurl" method=post>
<input type=hidden name="username" value="$general->{username}">
<input type=hidden name="action" value="quotaon">
<div class="surround">
{#if $browser->{ieX}#}<p class="blbar">Enable Board</p>{#else#}<table width=100% bgcolor=#000000><tr><td>$fs<font color=#ffff00>Enable Board</font></font></td></tr></table>{#endif#}
Records indicate that your board has been disabled for the following reason:
<p>
<ul>
<li><b>Error Date:</b> $event->{errdate}
<li><b>Condition:</b> $event->{description}
</ul>
<p>
You can enable your board by clicking on the following button. However, you are urged
to identify the problem responsible for causing this error condition and resolve it
before you turn your board back on!
<p>
<center>
<input type="submit" value="Enable Board">
</center>
</div>
</form>
<#endif#>
</body>
</html>
<!--END-->