[Openupload-svn-update] SF.net SVN: openupload:[61] trunk/templates/default
Status: Beta
Brought to you by:
tsdogs
|
From: <ts...@us...> - 2008-10-23 12:54:05
|
Revision: 61
http://openupload.svn.sourceforge.net/openupload/?rev=61&view=rev
Author: tsdogs
Date: 2008-10-23 10:26:33 +0000 (Thu, 23 Oct 2008)
Log Message:
-----------
move banned ip to main class, and add administration
Modified Paths:
--------------
trunk/templates/default/modules/admin/admin.tpl
trunk/templates/default/modules/admin/adminmenu.tpl
trunk/templates/default/modules/admin/files.tpl
Added Paths:
-----------
trunk/templates/default/banned.tpl
trunk/templates/default/modules/admin/banned.tpl
trunk/templates/default/modules/admin/bannedadd.tpl
trunk/templates/default/modules/admin/bannededit.tpl
Added: trunk/templates/default/banned.tpl
===================================================================
--- trunk/templates/default/banned.tpl (rev 0)
+++ trunk/templates/default/banned.tpl 2008-10-23 10:26:33 UTC (rev 61)
@@ -0,0 +1,3 @@
+{tr}Your IP has been blocked!{/tr}<br>
+{tr}You cannot use this site.{/tr}<br>
+{tr}If you think this is a misconfiguration please send an email to the site owner{/tr}
\ No newline at end of file
Modified: trunk/templates/default/modules/admin/admin.tpl
===================================================================
--- trunk/templates/default/modules/admin/admin.tpl 2008-10-23 10:25:26 UTC (rev 60)
+++ trunk/templates/default/modules/admin/admin.tpl 2008-10-23 10:26:33 UTC (rev 61)
@@ -1,5 +1,5 @@
{tr}Here you can administer{/tr}:<hr>
-<table border="0" width="400" height="200">
+<table border="0" width="400" height="300">
<tr>
<td align="center"><a href="{$script}?action=adminsettings"><img src="{$page.template}/img/admin/settings.png" border="0" ><br>{tr}Settings{/tr}</a></td>
<td align="center"><a href="{$script}?action=adminplugins"><img src="{$page.template}/img/admin/plugins.png" border="0" align="center"><br>{tr}Plugins{/tr}</a></td>
@@ -10,5 +10,10 @@
<td align="center"><a href="{$script}?action=admingroups"><img src="{$page.template}/img/admin/groups.png" border="0" ><br>{tr}Groups{/tr}</a></td>
<td align="center"><a href="{$script}?action=adminrights"><img src="{$page.template}/img/admin/rights.png" border="0" ><br>{tr}Rights{/tr}</a></td>
</tr>
+<tr>
+ <td align="center"> </td>
+ <td align="center"><a href="{$script}?action=adminbanned"><img src="{$page.template}/img/admin/banned.png" border="0" ><br>{tr}Banned IPs{/tr}</a></td>
+ <td align="center"> </td>
+</tr>
{$plugins}
</table>
\ No newline at end of file
Modified: trunk/templates/default/modules/admin/adminmenu.tpl
===================================================================
--- trunk/templates/default/modules/admin/adminmenu.tpl 2008-10-23 10:25:26 UTC (rev 60)
+++ trunk/templates/default/modules/admin/adminmenu.tpl 2008-10-23 10:26:33 UTC (rev 61)
@@ -6,6 +6,7 @@
<li><a href="{$script}?action=adminusers">{tr}Users{/tr}</a></li>
<li><a href="{$script}?action=admingroups">{tr}Groups{/tr}</a></li>
<li><a href="{$script}?action=adminrights">{tr}Rights{/tr}</a></li>
+ <li style="border-right: 0px;"><a href="{$script}?action=adminbanned">{tr}Banned{/tr}</a></li>
</ul>
</div>
<hr>
\ No newline at end of file
Added: trunk/templates/default/modules/admin/banned.tpl
===================================================================
--- trunk/templates/default/modules/admin/banned.tpl (rev 0)
+++ trunk/templates/default/modules/admin/banned.tpl 2008-10-23 10:26:33 UTC (rev 61)
@@ -0,0 +1,38 @@
+{include file="default/modules/admin/adminmenu.tpl"}
+<div id="toolbar">
+<a href="{$script}?action={$action}&step=2"><img src="{$page.template}/img/admin/tadd.png"></a>
+<img src="{$page.template}/img/admin/tdelete.png">
+</div>
+<br>
+{if $pages>2}
+<center>{section name=page loop=$pages start=1 max=20}
+{if $pagen==$smarty.section.page.index}
+<b style="font-size: 12pt">{$smarty.section.page.index}</b>
+{else}
+<a style="font-size: 12pt" href="{$script}?action={$action}&page={$smarty.section.page.index}">{$smarty.section.page.index}</a>
+{/if}
+
+{/section} </center>
+{/if}
+<br>
+<table border="0" id="dbtable">
+<tr>
+ <th width="10">S</th>
+ <th width="200">IP</th>
+ <th width="50">Access</th>
+ <th width="80">Priority</th>
+ <th width="100">Actions</th>
+</tr>
+{foreach from=$banned item=b}
+{cycle values="row1,row2" advance=true assign=rid}
+<tr>
+ <td id="{$rid}"><input type="checkbox" name="ban_{$d.id}" value="1"></td>
+ <td id="{$rid}" style="text-align: left;"><a href="{$script}?action={$action}&step=3&id={$b.id}">{$b.ip}</a></td>
+ <td id="{$rid}">{$b.access}</td>
+ <td id="{$rid}">{$b.priority}</td>
+ <td id="{$rid}">
+ <a title="delete" href="{$script}?action={$action}&step=4&id={$b.id}"><img src="{$page.template}/img/admin/delete.png"></a>
+ </td>
+</tr>
+{/foreach}
+</table>
\ No newline at end of file
Added: trunk/templates/default/modules/admin/bannedadd.tpl
===================================================================
--- trunk/templates/default/modules/admin/bannedadd.tpl (rev 0)
+++ trunk/templates/default/modules/admin/bannedadd.tpl 2008-10-23 10:26:33 UTC (rev 61)
@@ -0,0 +1,16 @@
+{include file="default/modules/admin/adminmenu.tpl"}
+
+<form action="{$script}" method="post">
+<input type="hidden" name="action" value="{$action}">
+<input type="hidden" name="step" value="{$step}">
+<table border="0">
+<tr><td>{tr}IP{/tr}:</td><td><input type="text" name="addbannedip" value="{$banned.ip}"></td></tr>
+<tr><td>{tr}Access{/tr}:</td><td>
+<select name="addbannedaccess">
+{foreach from=$access item=a key=k}
+<option value="{$k}" {if $k==$banned.access}selected{/if}>{$a}</option>
+{/foreach}</td></tr>
+<tr><td>{tr}Priority{/tr}:</td><td><input type="text" name="addbannedpriority" value="{$banned.priority}"></td></tr>
+<tr><td colspan="2" align=right><input type="submit" class="submit" value="{tr}Add{/tr}"></td></tr>
+</table>
+</form>
\ No newline at end of file
Added: trunk/templates/default/modules/admin/bannededit.tpl
===================================================================
--- trunk/templates/default/modules/admin/bannededit.tpl (rev 0)
+++ trunk/templates/default/modules/admin/bannededit.tpl 2008-10-23 10:26:33 UTC (rev 61)
@@ -0,0 +1,17 @@
+{include file="default/modules/admin/adminmenu.tpl"}
+
+<form action="{$script}" method="post">
+<input type="hidden" name="action" value="{$action}">
+<input type="hidden" name="step" value="{$step}">
+<input type="hidden" name="editbannedid" value="{$banned.id}">
+<table border="0">
+<tr><td>{tr}IP{/tr}:</td><td><input type="text" name="editbannedip" value="{$banned.ip}"></td></tr>
+<tr><td>{tr}Access{/tr}:</td><td>
+<select name="editbannedaccess">
+{foreach from=$access item=a key=k}
+<option value="{$k}" {if $k==$banned.access}selected{/if}>{$a}</option>
+{/foreach}</td></tr>
+<tr><td>{tr}Priority{/tr}:</td><td><input type="text" name="editbannedpriority" value="{$banned.priority}"></td></tr>
+<tr><td colspan="2" align=right><input type="submit" class="submit" value="{tr}Confirm{/tr}"></td></tr>
+</table>
+</form>
\ No newline at end of file
Modified: trunk/templates/default/modules/admin/files.tpl
===================================================================
--- trunk/templates/default/modules/admin/files.tpl 2008-10-23 10:25:26 UTC (rev 60)
+++ trunk/templates/default/modules/admin/files.tpl 2008-10-23 10:26:33 UTC (rev 61)
@@ -14,7 +14,7 @@
<table border="0" id="dbtable">
<tr>
<th width="10">S</th>
- <th width="50">Id</th> <AZ
+ <th width="50">Id</th>
<th width="200">Name</th>
<th width="100">User</th>
<th width="100">IP</th>
@@ -28,7 +28,7 @@
<td id="{$rid}">{$f.id}</td>
<td id="{$rid}">{$f.name}</td>
<td id="{$rid}">{$users[$f.user_id].login}</td>
- <td id="{$rid}" style="text-align: left"><a title="ban IP {$f.ip}" href="{$script}?action={$action}&step=3&plugin=banned&ip={$f.ip}">
+ <td id="{$rid}" style="text-align: left"><a title="ban IP {$f.ip}" href="{$script}?action=adminbanned&step=2&ip={$f.ip}&newaction={$action}">
<img align="right" src="{$page.template}/img/admin/ban.png" ></a>{$f.ip} </td>
<td id="{$rid}">{$f.upload_date}</td>
<td id="{$rid}">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|