From: <bel...@us...> - 2003-03-02 02:55:44
|
Update of /cvsroot/btplusplus/BT++/src/WebTemplates In directory sc8-pr-cvs1:/tmp/cvs-serv819 Added Files: config.tmpl dl_fail.tmpl exit.tmpl menu.tmpl root.tmpl Log Message: Bug in logging fixed & additional templates II --- NEW FILE: config.tmpl --- <html> <head> <title>WebTorrent++ Configuration</title> </head> <body bgcolor=#6666AA> <form method=post action="torrents"> <table width=100% border=1 bgcolor=#CCCCFF cellpadding=2> <tr> <th colspan=2 align=left>Directories</th> </tr> <tr> <td>Torrent</td> <td width=80%><input type=text style="width:100%" name=Paths_Torrent value="<TMPL_VAR paths_torrent>"></td> </tr> <tr> <td>History</td> <td width=80%><input type=text style="width:100%" name=Paths_History value="<TMPL_VAR paths_history>"></td> </tr> <tr> <td>Incoming</td> <td width=80%><input type=text style="width:100%" name=Paths_Incoming value="<TMPL_VAR paths_incoming>"></td> </tr> <tr> <td>Temp</td> <td width=80%><input type=text style="width:100%" name=Paths_Temp value="<TMPL_VAR paths_temp>"></td> </tr> </table> <p> <table width=100%% border=1 bgcolor=#CCCCFF cellpadding=2> <tr> <th align=left>Basic</th> </tr> <tr> <td><table border=1 width=100%> <tr> <td>Automatically start new downloads</td> <td width=5% align=center><input type=checkbox name=Download_AutoStart <TMPL_IF download_autostart>CHECKED</TMPL_IF> value="1"></td> </tr> <tr> <td>Automatically pause downloads (if current>max)</td> <td width=5% align=center><input type=checkbox name=Download_AutoPause <TMPL_IF download_autopause>CHECKED</TMPL_IF> value="1"></td> </tr> <tr> <td>Maximal simultanous downloads (1-10)</td> <td width=5%><input type=text style="width:100%" name=Download_MaxSimDown value="<TMPL_VAR download_maxsimdown>"></td> </tr> </table></td> </tr> <tr> <td><table border=1 width=100%> <tr> <td>Maximal download speed (0=unlimited)</td> <td width=5%><input type=text style="width:100%" name=Download_MaxSpeedDown value="<TMPL_VAR download_maxspeeddown>"></td> </tr> <tr> <td>Maximal upload speed (0=unlimited)</td> <td width=5%><input type=text style="width:100%" name=Download_MaxSpeedUp value="<TMPL_VAR download_maxspeedup>"></td> </tr> </table></td> </tr> <tr> <td><table border=1 width=100%> <tr> <td>Use background hashing</td> <td width=5% align=center><input type=checkbox name=Hash_Background <TMPL_IF hash_background>CHECKED</TMPL_IF> value="1"></td> </tr> <tr> <td>Maximal simultanous files hashed (1-5)</td> <td width=5%><input type=text style="width:100%" name=Hash_NumSimHash value="<TMPL_VAR hash_numsimhash>"></td> </tr> </table></td> </tr> </table> <p> <table width=100% border=1 bgcolor=#CCCCFF cellpadding=2> <tr> <th align=left>Net Config</th> </tr> <tr> <td><table border=1 width=100%> <tr> <td>Bind to IP for BitTorrent (*)</td> <td width=10%><input type=text style="width:100%" name=Bind_Ip value="<TMPL_VAR bind_ip>"></td> </tr> <tr> <td>First Port for BitTorrent (*)</td> <td width=5%><input type=text style="width:100%" name=Bind_PortMin value="<TMPL_VAR bind_portmin>"></td> </tr> <tr> <td>Last Port for BitTorrent (*)</td> <td width=5%><input type=text style="width:100%" name=Bind_PortMax value="<TMPL_VAR bind_portmax>"></td> </tr> </table></td> </tr> <tr> <td><table border=1 width=100%> <tr> <td>Bind to IP for webserver (*)</td> <td width=10%><input type=text style="width:100%" name=Host_IP value="<TMPL_VAR host_ip>"></td> </tr> <tr> <td>Webserver port (*)</td> <td width=5%><input type=text style="width:100%" name=Host_Port value="<TMPL_VAR host_port>"></td> </tr> <tr> <td>Allow access from localhost</td> <td width=5% align=center><input type=checkbox name=Access_AllowLocal <TMPL_IF access_allowlocal>CHECKED</TMPL_IF> value="1"></td> </tr> <tr> <td>Allow access from external IPs (separated by space)</td> <td width=30%><input type=text style="width:100%" name=Access_ValidIPs value="<TMPL_VAR access_validips>"></td> </tr> </table></td> </tr> <tr> <td><table border=1 width=100%> <tr> <td>Refresh torrent page every (seconds)</td> <td width=5%><input type=text style="width:100%" name=Display_Refresh value="<TMPL_VAR display_refresh>"></td> </tr> <tr> <td> Log Level (default = 1)<br> <table style="font-size:x-small"> <tr><td width=1%></td><td align=right>0</td><td width=100%>Trivial</td></tr> <tr><td width=1%></td><td align=right>1</td><td width=100%>Info</td></tr> <tr><td width=1%></td><td align=right>2</td><td width=100%>Errors</td></tr> <tr><td width=1%></td><td align=right>3</td><td width=100%>Critical Errors</td></tr> </table> </td> <td width=5%><input type=text style="width:100%" name=Display_LogLevel value="<TMPL_VAR display_loglevel>"></td> </tr> <tr> <td>Number of kept Log entries (default = 200)</td> <td width=5%><input type=text style="width:100%" name=Display_LogCount value="<TMPL_VAR display_logcount>"></td> </tr> </table></td> </tr> </table> (*) changes require restart. <p> <center> <input type=hidden name=command value=Config> <button type=submit>Submit Changes</button> </center> </form> </body> </html> --- NEW FILE: dl_fail.tmpl --- <html> <head> <title>Download Error</title> </head> <body> <h1>Error downloading Torrent <TMPL_VAR torrent></h1> </body> </html> --- NEW FILE: exit.tmpl --- <html> <head> <title>Exit</title> </head> <body> <h1>Server Killed.</h1> </body> </html> --- NEW FILE: menu.tmpl --- <html> <head> <title>WebTorrent++ Menu</title> </head> <body bgcolor=#FFFFCC> <table width=100%> <tr> <td><form method=get action="torrents" target="body"> <button type=submit>Torrents</button> </form></td> <td nowrap><form method=get action="log" target="body"> <button type=submit>View Log</button> </form></td> <td><form method=get action="config" target="body"> <button type=submit>Config</button> </form></td> <td width=80%><form method=post action="torrents" target="body"> <table width=100% border=1 bgcolor=#FFCCCC> <tr> <td width=100%><input type=text style="width:100%" name=torr title="Paste Torrent URLs here"></td> <td><input type=hidden name=command value=Add><button type=submit>Add</button></td> </tr> </table> </form></td> <td nowrap><form method=get action="exit" target="body"> <button type=submit>Kill server</button> </form></td> </tr> </table> </body> </html> --- NEW FILE: root.tmpl --- <html> <head> <title>WebTorrent++</title> </head> <frameset rows="50,*"> <frame name="top" src="menu"> <frame name="body" src="torrents"> </frameset> </html> |