OSDN Git Service

v1.0.2
authorhsur <hsur@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Sun, 11 Feb 2007 08:57:12 +0000 (08:57 +0000)
committerhsur <hsur@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Sun, 11 Feb 2007 08:57:12 +0000 (08:57 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@529 1ca29b6e-896d-4ea0-84a5-967f57386b96

trunk/NP_Blacklist/NP_Blacklist.php
trunk/NP_Blacklist/blacklist/index.php
trunk/NP_Blacklist/blacklist/template/index/htaccess_english.html
trunk/NP_Blacklist/blacklist/template/index/htaccess_japanese-euc.html
trunk/NP_Blacklist/blacklist/template/index/htaccess_japanese-utf8.html

index 9f7280b..673aab8 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 
 /**
-  * NP_Blacklist(JP) ($Revision: 1.7 $)
+  * NP_Blacklist(JP) ($Revision: 1.8 $)
   * by hsur ( http://blog.cles.jp/np_cles )
-  * $Id: NP_Blacklist.php,v 1.7 2007-02-06 16:15:37 hsur Exp $
+  * $Id: NP_Blacklist.php,v 1.8 2007-02-11 08:57:12 hsur Exp $
   *
   * Based on NP_Blacklist 0.98
   * by xiffy
@@ -41,10 +41,10 @@ class NP_Blacklist extends NucleusPlugin {
                return 'http://blog.cles.jp/np_cles/category/31/subcatid/11';
        }
        function getVersion() {
-               return '1.0.1';
+               return '1.0.2';
        }
        function getDescription() {
-               return '[$Revision: 1.7 $]<br />'.NP_BLACKLIST_description;
+               return '[$Revision: 1.8 $]<br />'.NP_BLACKLIST_description;
        }
        function supportsFeature($what) {
                switch ($what) {
index 5f435c5..3520a3e 100644 (file)
                        break;
 
                case 'htaccess':
+                       $type = '';
                        if (isset ($_POST["type"])) {
-                               $type = (strpos(postVar("type"), "blocked") !== false) ? 'ip' : 'rules'; 
+                               $type = (strpos(postVar("type"), "ip") !== false) ? 'ip' : 'rules'; 
                        }
-                       if (stristr(postVar("type"), "reset")) {
+                       if (strpos(postVar("type"), "reset") !== false ) {
                                $tplVars['message'] = pbl_resetfile($type);
                        }
                        $tplVars['snippet'] = pbl_htaccess($type);
index e9d7920..bfd9648 100644 (file)
@@ -1,16 +1,33 @@
 <span style="color: red;">{{message}}</span>
 <h2>Here you can generate .htaccess snippets</h2>
 <div class="pbform" style="margin-left:10px;">
-       <form action="{{indexurl}}" method="post">
+       <form action="{{indexurl}}" method="post" style="display:inline">
                <input type="hidden" name="ticket" value="{{ticket|}}" />
                <input type="hidden" name="action" value="htaccess" />
-               <button type="submit" label="ip" name="type" value="Generate blocked IP's">Generate blocked IP's</button>
-               <button type="submit" label="ip" name="type" value="Generate rewrite rules">Generate rewrite rules</button><br />
+               <input type="hidden" name="type" value="generate_ip" />
+               <input type="submit" name="submit" value="Generate blocked IP's" />
+       </form>
+       <form action="{{indexurl}}" method="post" style="display:inline">
+               <input type="hidden" name="ticket" value="{{ticket|}}" />
+               <input type="hidden" name="action" value="htaccess" />
+               <input type="hidden" name="type" value="generate_rule" />
+               <input type="submit" name="submit" value="Generate rewrite rules" />
+       </form>
+               <br />
                <br />
                <textarea class="pbltextinput" cols="60" rows="15" name="snippet" >{{snippet}}</textarea><br />
                <br />
-               <button type="submit" label="ip" name="type" value="Reset blocked IP's">Reset blocked IP's</button>
-               <button type="submit" label="ip" name="type" value="Reset rewrite rules">Reset rewrite rules</button>
+       <form action="{{indexurl}}" method="post" style="display:inline">
+               <input type="hidden" name="ticket" value="{{ticket|}}" />
+               <input type="hidden" name="action" value="htaccess" />
+               <input type="hidden" name="type" value="reset_ip" />
+               <input type="submit" name="submit" value="Reset blocked IP's" />
+       </form>
+       <form action="{{indexurl}}" method="post" style="display:inline">
+               <input type="hidden" name="ticket" value="{{ticket|}}" />
+               <input type="hidden" name="action" value="htaccess" />
+               <input type="hidden" name="type" value="reset_rule" />
+               <input type="submit" name="submit" value="Reset rewrite rules" />
        </form>
 </div>
 
index 50adfce..d61fd11 100644 (file)
@@ -1,15 +1,32 @@
 <span style="color: red;">{{message}}</span>
 <h2>.htaccess¥Õ¥¡¥¤¥ë¤ÎÀ¸À®</h2>
 <div class="pbform" style="margin-left:10px;">
-       <form action="{{indexurl}}" method="post">
+       <form action="{{indexurl}}" method="post" style="display:inline">
                <input type="hidden" name="ticket" value="{{ticket|}}" />
                <input type="hidden" name="action" value="htaccess" />
-               <button type="submit" label="ip" name="type" value="Generate blocked IP's">IP¥ë¡¼¥ë¤ÎÀ¸À®</button>
-               <button type="submit" label="ip" name="type" value="Generate rewrite rules">Rewrite¥ë¡¼¥ë¤ÎÀ¸À®</button><br />
+               <input type="hidden" name="type" value="generate_ip" />
+               <input type="submit" name="submit" value="IP¥ë¡¼¥ë¤ÎÀ¸À®" />
+       </form>
+       <form action="{{indexurl}}" method="post" style="display:inline">
+               <input type="hidden" name="ticket" value="{{ticket|}}" />
+               <input type="hidden" name="action" value="htaccess" />
+               <input type="hidden" name="type" value="generate_rule" />
+               <input type="submit" name="submit" value="Rewrite¥ë¡¼¥ë¤ÎÀ¸À®" />
+       </form>
+               <br />
                <br />
                <textarea class="pbltextinput" cols="60" rows="15" name="snippet" >{{snippet}}</textarea><br />
                <br />
-               <button type="submit" label="ip" name="type" value="Reset blocked IP's">IP¥Ö¥é¥Ã¥¯¥ê¥¹¥È¤Î¥ê¥»¥Ã¥È</button>
-               <button type="submit" label="ip" name="type" value="Reset rewrite rules">Rewrite¥ë¡¼¥ë¤Î¥ê¥»¥Ã¥È</button>
+       <form action="{{indexurl}}" method="post" style="display:inline">
+               <input type="hidden" name="ticket" value="{{ticket|}}" />
+               <input type="hidden" name="action" value="htaccess" />
+               <input type="hidden" name="type" value="reset_ip" />
+               <input type="submit" name="submit" value="IP¥Ö¥é¥Ã¥¯¥ê¥¹¥È¤Î¥ê¥»¥Ã¥È" />
+       </form>
+       <form action="{{indexurl}}" method="post" style="display:inline">
+               <input type="hidden" name="ticket" value="{{ticket|}}" />
+               <input type="hidden" name="action" value="htaccess" />
+               <input type="hidden" name="type" value="reset_rule" />
+               <input type="submit" name="submit" value="Rewrite¥ë¡¼¥ë¤Î¥ê¥»¥Ã¥È" />
        </form>
-</div>
+</div>
\ No newline at end of file
index 5141f2e..b5eca54 100644 (file)
@@ -1,15 +1,32 @@
 <span style="color: red;">{{message}}</span>
 <h2>.htaccessファイルの生成</h2>
 <div class="pbform" style="margin-left:10px;">
-       <form action="{{indexurl}}" method="post">
+       <form action="{{indexurl}}" method="post" style="display:inline">
                <input type="hidden" name="ticket" value="{{ticket|}}" />
                <input type="hidden" name="action" value="htaccess" />
-               <button type="submit" label="ip" name="type" value="Generate blocked IP's">IPルールの生成</button>
-               <button type="submit" label="ip" name="type" value="Generate rewrite rules">Rewriteルールの生成</button><br />
+               <input type="hidden" name="type" value="generate_ip" />
+               <input type="submit" name="submit" value="IPルールの生成" />
+       </form>
+       <form action="{{indexurl}}" method="post" style="display:inline">
+               <input type="hidden" name="ticket" value="{{ticket|}}" />
+               <input type="hidden" name="action" value="htaccess" />
+               <input type="hidden" name="type" value="generate_rule" />
+               <input type="submit" name="submit" value="Rewriteルールの生成" />
+       </form>
+               <br />
                <br />
                <textarea class="pbltextinput" cols="60" rows="15" name="snippet" >{{snippet}}</textarea><br />
                <br />
-               <button type="submit" label="ip" name="type" value="Reset blocked IP's">IPブラックリストのリセット</button>
-               <button type="submit" label="ip" name="type" value="Reset rewrite rules">Rewriteルールのリセット</button>
+       <form action="{{indexurl}}" method="post" style="display:inline">
+               <input type="hidden" name="ticket" value="{{ticket|}}" />
+               <input type="hidden" name="action" value="htaccess" />
+               <input type="hidden" name="type" value="reset_ip" />
+               <input type="submit" name="submit" value="IPブラックリストのリセット" />
+       </form>
+       <form action="{{indexurl}}" method="post" style="display:inline">
+               <input type="hidden" name="ticket" value="{{ticket|}}" />
+               <input type="hidden" name="action" value="htaccess" />
+               <input type="hidden" name="type" value="reset_rule" />
+               <input type="submit" name="submit" value="Rewriteルールのリセット" />
        </form>
-</div>
+</div>
\ No newline at end of file