OSDN Git Service

Purge NP_SecurityEnforcer and NP_Text. Now NP_Ping and NP_SkinFiles is included on...
authorsakamocchi <sakamocchi@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Mon, 27 Dec 2010 03:06:42 +0000 (03:06 +0000)
committersakamocchi <sakamocchi@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Mon, 27 Dec 2010 03:06:42 +0000 (03:06 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@1069 1ca29b6e-896d-4ea0-84a5-967f57386b96

utf8/install/index.php
utf8/nucleus/plugins/NP_SecurityEnforcer.php [deleted file]
utf8/nucleus/plugins/NP_Text.php [deleted file]
utf8/nucleus/plugins/securityenforcer/english.php [deleted file]
utf8/nucleus/plugins/securityenforcer/index.php [deleted file]
utf8/nucleus/plugins/securityenforcer/japanese-euc.php [deleted file]
utf8/nucleus/plugins/securityenforcer/japanese-utf8.php [deleted file]

index 44053ef..82dd9bb 100755 (executable)
@@ -39,8 +39,6 @@ include('./install_lang_japanese.php');
 //      array('NP_TrackBack', 'NP_MemberGoodies')\r
 $aConfPlugsToInstall = array(\r
        'NP_SkinFiles',\r
-       'NP_SecurityEnforcer',\r
-       'NP_Text'\r
 );\r
 \r
 \r
@@ -136,15 +134,15 @@ function showInstallForm() {
        <body>\r
                <div style="text-align:center"><img src="../nucleus/styles/logo.gif" /></div> <!-- Nucleus logo -->\r
                <form method="post" action="index.php">\r
-\r
+               \r
                <h1><?php echo _HEADER1; ?></h1>\r
-\r
+               \r
                <?php echo _TEXT1; ?>\r
-\r
+               \r
                <h1><?php echo _HEADER1_2 ?></h1>\r
-\r
+               \r
                <?php echo _TEXT1_2; ?>\r
-\r
+               \r
                <fieldset>\r
                        <legend><?php echo _TEXT1_2_TAB_HEAD; ?></legend>\r
                        <table>\r
@@ -159,11 +157,11 @@ function showInstallForm() {
                                </tr>\r
                        </table>\r
                </fieldset>\r
-\r
+               \r
                <h1><?php echo _HEADER2; ?></h1>\r
-\r
+               \r
                <?php echo _TEXT2; ?>\r
-\r
+               \r
                <ul>\r
                        <li>PHP:\r
 \r
diff --git a/utf8/nucleus/plugins/NP_SecurityEnforcer.php b/utf8/nucleus/plugins/NP_SecurityEnforcer.php
deleted file mode 100644 (file)
index 46d079d..0000000
+++ /dev/null
@@ -1,210 +0,0 @@
-<?php
-/*
-License:
-This software is published under the same license as NucleusCMS, namely
-the GNU General Public License. See http://www.gnu.org/licenses/gpl.html for
-details about the conditions of this license.
-
-In general, this program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by the Free
-Software Foundation; either version 2 of the License, or (at your option) any
-later version.
-
-This program is distributed in the hope that it will be useful, but WITHOUT ANY
-WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-PARTICULAR PURPOSE. See the GNU General Public License for more details.
-*/
-class NP_SecurityEnforcer extends NucleusPlugin {
-
-    function getName() { return 'SecurityEnforcer'; }
-
-    function getAuthor()  { return 'Frank Truscott';    }
-
-    function getURL()   { return 'http://revcetera.com/ftruscot';   }
-
-    function getVersion() { return '1.0'; }
-
-    function getDescription() {
-        return _SECURITYENFORCER_DESCRIPTION;
-    }
-    
-    function getMinNucleusVersion() { return 350; }
-
-    function supportsFeature($what) {
-        switch($what) {
-        case 'SqlTablePrefix':
-            return 1;
-        /*case 'HelpPage':
-            return 1;*/
-        default:
-            return 0;
-        }
-    }
-
-    function getTableList() { return array(sql_table('plug_securityenforcer')); }
-    function getEventList() { return array('QuickMenu','PrePasswordSet','CustomLogin','LoginSuccess','LoginFailed'); }
-    
-    function install() {
-        global $CONF;
-
-// Need to make some options
-        $this->createOption('quickmenu', _SECURITYENFORCER_OPT_QUICKMENU, 'yesno', 'yes');
-        $this->createOption('del_uninstall_data', _SECURITYENFORCER_OPT_DEL_UNINSTALL_DATA, 'yesno','no');
-        $this->createOption('enable_security', _SECURITYENFORCER_OPT_ENABLE, 'yesno','yes');
-        $this->createOption('pwd_min_length', _SECURITYENFORCER_OPT_PWD_MIN_LENGTH, 'text','8');
-        $this->createOption('pwd_complexity', _SECURITYENFORCER_OPT_PWD_COMPLEXITY, 'select','0',_SECURITYENFORCER_OPT_SELECT_OFF_COMP.'|0|'._SECURITYENFORCER_OPT_SELECT_ONE_COMP.'|1|'._SECURITYENFORCER_OPT_SELECT_TWO_COMP.'|2|'._SECURITYENFORCER_OPT_SELECT_THREE_COMP.'|3|'._SECURITYENFORCER_OPT_SELECT_FOUR_COMP.'|4');
-        $this->createOption('max_failed_login', _SECURITYENFORCER_OPT_MAX_FAILED_LOGIN, 'text', '5');
-        $this->createOption('login_lockout', _SECURITYENFORCER_OPT_LOGIN_LOCKOUT, 'text', '15');
-        
-// create needed tables
-        sql_query("CREATE TABLE IF NOT EXISTS ". sql_table('plug_securityenforcer').
-                    " ( 
-                      `login` varchar(255),
-                      `fails` int(11) NOT NULL default '0',                   
-                      `lastfail` bigint NOT NULL default '0',
-                      KEY `login` (`login`)) TYPE=MyISAM");
-
-    }
-    
-    function unInstall() {
-        // if requested, delete the data table
-        if ($this->getOption('del_uninstall_data') == 'yes')    {
-            sql_query('DROP TABLE '.sql_table('plug_securityenforcer'));
-        }
-    }
-    
-    function init() {
-        // include language file for this plugin
-//        $language = ereg_replace( '[\\|/]', '', getLanguageName());
-        $language = preg_replace( '@\\|/@', '', getLanguageName());
-        if (file_exists($this->getDirectory().$language.'.php'))
-            include_once($this->getDirectory().$language.'.php');
-        else
-            include_once($this->getDirectory().'english.php');
-            
-        $this->enable_security = $this->getOption('enable_security');
-        $this->pwd_min_length = intval($this->getOption('pwd_min_length'));
-        $this->pwd_complexity = intval($this->getOption('pwd_complexity'));
-        $this->max_failed_login = intval($this->getOption('max_failed_login'));
-        $this->login_lockout = intval($this->getOption('login_lockout'));
-    }
-    function hasAdminArea() { return 1; }
-
-    function event_QuickMenu($data) {
-        // only show when option enabled
-        global $member;
-        if ($this->getOption('quickmenu') != 'yes' || !$member->isAdmin()) return;
-        global $member;
-        if (!($member->isLoggedIn())) return;
-        array_push($data['options'],
-            array('title' => 'Security Enforcer',
-            'url' => $this->getAdminURL(),
-            'tooltip' => _SECURITYENFORCER_ADMIN_TOOLTIP));
-    }
-    
-    function event_PrePasswordSet($data) {
-        //password, errormessage, valid
-        if ($this->enable_security == 'yes') {
-            if (!$this->_validate_passwd($data['password'],$this->pwd_min_length, $this->pwd_complexity)) {
-                $data['errormessage'] = _SECURITYENFORCER_INSUFFICIENT_COMPLEXITY;
-                $data['errormessage'] .= _SECURITYENFORCER_MIN_PWD_LENGTH . $this->pwd_min_length; 
-                $data['errormessage'] .= _SECURITYENFORCER_PWD_COMPLEXITY . $this->pwd_complexity . "<br /><br />\n"; 
-                $data['valid'] = false;
-            }
-        }
-    }
-    
-    function event_CustomLogin($data) {
-        //login,password,success,allowlocal
-        if ($this->enable_security == 'yes' && $this->max_failed_login > 0) {
-            global $_SERVER;
-            $login = $data['login'];
-            $ip = $_SERVER['REMOTE_ADDR'];
-            sql_query("DELETE FROM ".sql_table('plug_securityenforcer')." WHERE lastfail < ".(time() - ($this->login_lockout * 60)));
-            $query = "SELECT fails as result FROM ".sql_table('plug_securityenforcer')." ";
-//                     $query .= "WHERE login='".addslashes($login)."'";
-            $query .= "WHERE login='".sql_real_escape_string($login)."'";
-            $flogin = quickQuery($query); 
-            $query = "SELECT fails as result FROM ".sql_table('plug_securityenforcer')." ";
-//                     $query .= "WHERE login='".addslashes($ip)."'";
-            $query .= "WHERE login='".sql_real_escape_string($ip)."'";
-            $fip = quickQuery($query); 
-            if ($flogin >= $this->max_failed_login || $fip >= $this->max_failed_login) {
-                $data['success'] = 0;
-                $data['allowlocal'] = 0;
-//                             ACTIONLOG::add(INFO, 'login disallowed by NP_SecurityEnforcer. login: '.htmlentities($login).', ip: '.htmlentities($ip) );
-                $info = sprintf(_SECURITYENFORCER_LOGIN_DISALLOWED, htmlspecialchars($login), htmlspecialchars($ip));
-                ACTIONLOG::add(INFO, $info);
-            }
-        }
-    }
-    
-    function event_LoginSuccess($data) {
-        //member(obj),username
-        if ($this->enable_security == 'yes' && $this->max_failed_login > 0) {
-            global $_SERVER;
-            $login = $data['username'];
-            $ip = $_SERVER['REMOTE_ADDR'];
-//                     sql_query("DELETE FROM ".sql_table('plug_securityenforcer')." WHERE login='".addslashes($login)."'");
-            sql_query("DELETE FROM ".sql_table('plug_securityenforcer')." WHERE login='".sql_real_escape_string($login)."'");
-//                     sql_query("DELETE FROM ".sql_table('plug_securityenforcer')." WHERE login='".addslashes($ip)."'");                      
-            sql_query("DELETE FROM ".sql_table('plug_securityenforcer')." WHERE login='".sql_real_escape_string($ip)."'");          
-        }
-    }
-    
-    function event_LoginFailed($data) {
-        //username
-        if ($this->enable_security == 'yes' && $this->max_failed_login > 0) {
-            global $_SERVER;
-            $login = $data['username'];
-            $ip = $_SERVER['REMOTE_ADDR'];
-            //sql_table('plug_securityenforcer')
-//                     $lres = sql_query("SELECT * FROM ".sql_table('plug_securityenforcer')." WHERE login='".addslashes($login)."'");
-            $lres = sql_query("SELECT * FROM ".sql_table('plug_securityenforcer')." WHERE login='".sql_real_escape_string($login)."'");
-            if (sql_num_rows($lres)) {
-//                             sql_query("UPDATE ".sql_table('plug_securityenforcer')." SET fails=fails+1, lastfail=".time()." WHERE login='".addslashes($login)."'");
-                sql_query("UPDATE ".sql_table('plug_securityenforcer')." SET fails=fails+1, lastfail=".time()." WHERE login='".sql_real_escape_string($login)."'");
-            }
-            else {
-//                             sql_query("INSERT INTO ".sql_table('plug_securityenforcer')." (login,fails,lastfail) VALUES ('".addslashes($login)."',1,".time().")");
-                sql_query("INSERT INTO ".sql_table('plug_securityenforcer')." (login,fails,lastfail) VALUES ('".sql_real_escape_string($login)."',1,".time().")");
-            }
-            $lres = sql_query("SELECT * FROM ".sql_table('plug_securityenforcer')." WHERE login='".addslashes($ip)."'");
-            if (sql_num_rows($lres)) {
-//                             sql_query("UPDATE ".sql_table('plug_securityenforcer')." SET fails=fails+1, lastfail=".time()." WHERE login='".addslashes($ip)."'");
-                sql_query("UPDATE ".sql_table('plug_securityenforcer')." SET fails=fails+1, lastfail=".time()." WHERE login='".sql_real_escape_string($ip)."'");
-            }
-            else {
-//                             sql_query("INSERT INTO ".sql_table('plug_securityenforcer')." (login,fails,lastfail) VALUES ('".addslashes($ip)."',1,".time().")");
-                sql_query("INSERT INTO ".sql_table('plug_securityenforcer')." (login,fails,lastfail) VALUES ('".sql_real_escape_string($ip)."',1,".time().")");
-            }
-        }       
-    }
-    
-    /* Helper Functions */
-    
-    function _validate_passwd($passwd,$minlength = 6,$complexity = 0) {
-        $minlength = intval($minlength);
-        $complexity = intval($complexity);
-        
-        if ($minlength < 6 ) $minlength = 6;
-        if (strlen($passwd) < $minlength) return false;
-
-        if ($complexity > 4) $complexity = 4;
-        $ucchars = "[A-Z]";
-        $lcchars = "[a-z]";
-        $numchars = "[0-9]";
-        $ochars = "[-~!@#$%^&*()_+=,.<>?:;|]";
-        $chartypes = array($ucchars, $lcchars, $numchars, $ochars);
-        $tot = array(0,0,0,0);
-        $i = 0;
-        foreach ($chartypes as $value) {
-            $tot[$i] = preg_match("/".$value."/", $passwd);
-            $i = $i + 1;
-        }
-
-        if (array_sum($tot) >= $complexity) return true;
-        else return false;
-    }
-}
-?>
\ No newline at end of file
diff --git a/utf8/nucleus/plugins/NP_Text.php b/utf8/nucleus/plugins/NP_Text.php
deleted file mode 100644 (file)
index 9170e19..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-<?php
-class NP_Text extends NucleusPlugin {
-    
-    var $incModePref = array();
-    var $errorLogged = false;
-    var $constantPrefix = "SL_";
-    function getEventList() { return array('PreSkinParse'); }
-    function getName() { return 'Text'; }
-    function getAuthor() { return 'Armon Toubman'; }
-    function getURL() { return 'http://forum.nucleuscms.org/viewtopic.php?t=14904'; }
-    function getVersion() { return '0.53'; }
-    function getDescription() {
-        return 'Display constants from language files: <%Text(CONSTANT)%>';
-    }
-    function supportsFeature($feature) {
-        switch($feature) {
-            case 'SqlTablePrefix': return 1;
-            default: return 0;
-        }
-    } 
-    function install() {}
-    function uninstall() {}
-    function init() {
-        $this->incModePref = $this->skin_incmodepref();
-    }
-    
-    function event_PreSkinParse() {
-        global $member;
-        if( !$member->isLoggedIn() and isset($_GET['lang']) ) {
-            setcookie('NP_Text', getVar('lang'), time()+60*60*24*90); // 3 months
-        }
-    }
-     
-    function doSkinVar($skinType, $constant) {
-        global $member, $CONF;
-        
-        $language = getLanguageName();
-        $getLanguage = isset($_GET['lang']) ? getVar('lang') : false;
-        $cookieLanguage = isset($_COOKIE['NP_Text']) ? cookieVar('NP_Text') : false;
-        
-//             if( !$member->isLoggedIn() ) {
-            if( $getLanguage ) {
-                $this->use_lang($getLanguage, $constant);
-            }
-            elseif( $cookieLanguage ) {
-                $this->use_lang($cookieLanguage, $constant);
-            }
-            else {
-                $this->use_lang($language, $constant);
-            }
-//             }
-//             else {
-//                     $this->use_lang($language, $constant);
-//             }
-        
-    }
-    
-    function doTemplateVar(&$item, $constant) {
-        global $member, $CONF;
-        
-        $language = getLanguageName();
-        $getLanguage = isset($_GET['lang']) ? getVar('lang') : false;
-        $cookieLanguage = isset($_COOKIE['NP_Text']) ? cookieVar('NP_Text') : false;
-        
-//             if( !$member->isLoggedIn() ) {
-            if( $getLanguage ) {
-                $this->use_lang($getLanguage, $constant);
-            }
-            elseif( $cookieLanguage ) {
-                $this->use_lang($cookieLanguage, $constant);
-            }
-            else {
-                $this->use_lang($language, $constant);
-            }
-//             }
-//             else {
-//                     $this->use_lang($language, $constant);
-//             }
-        
-    }
-    
-    function use_lang($language, $constant) {
-        global $DIR_SKINS;
-        
-        $filename = '';
-        
-        if( $this->incModePref[0] == "normal" ) {
-            $filename = $filename.$this->incModePref[1];
-            $filename = $filename."language/";
-            $filename = $filename.$language;
-            $filename = $filename.".php";
-        }
-        elseif( $this->incModePref[0] == "skindir" ) {
-            $filename = $filename.$DIR_SKINS;
-            $filename = $filename.$this->incModePref[1];
-            $filename = $filename."language/";
-            $filename = $filename.$language;
-            $filename = $filename.".php";
-        }
-        
-        if( is_file($filename) ) {
-            include($filename);
-        }
-        else {
-            addToLog(1, "NP_Text cannot find ".$filename);
-        }
-        
-        if( defined($this->constantPrefix.$constant) ) {
-            echo constant($this->constantPrefix.$constant);
-        }
-        else {
-            echo $this->constantPrefix.$constant;
-            if( is_file($filename) ) {
-                addToLog(1, "NP_Text cannot find definition for ".$this->constantPrefix.$constant." in ".$filename);
-            }
-        }           
-        
-    }
-    
-    function skin_incmodepref() {
-        global $currentSkinName;
-        $sql = "SELECT * FROM ".sql_table("skin_desc")." WHERE sdname = '".$currentSkinName."'";
-        $result = sql_query($sql);
-        $row = sql_fetch_array($result, MYSQL_ASSOC);
-        return array($row['sdincmode'], $row['sdincpref']);
-    }
-    
-}
-?>
\ No newline at end of file
diff --git a/utf8/nucleus/plugins/securityenforcer/english.php b/utf8/nucleus/plugins/securityenforcer/english.php
deleted file mode 100644 (file)
index 2c592e4..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php\r
-/** English language file for NP_SECURITYENFORCER Plugin\r
-*/\r
-\r
-// Plugin Options\r
-define('_SECURITYENFORCER_OPT_QUICKMENU',                 'Show Admin Area in quick menu?');\r
-define('_SECURITYENFORCER_OPT_DEL_UNINSTALL_DATA',        'Delete NP_SecurityEnforcer data table on uninstall?');\r
-define('_SECURITYENFORCER_OPT_ENABLE',            'Enable NP_SecurityEnforcer password and login checks?');\r
-define('_SECURITYENFORCER_OPT_PWD_MIN_LENGTH',         'Minimum Length in characters of a user password. Integer. 8 is the default and 6 the minimum value: ');\r
-define('_SECURITYENFORCER_OPT_PWD_COMPLEXITY',         'Password Complexity Check. (How many character types should be present out of a-z, A-Z, 0-9, punctuation marks?):');\r
-define('_SECURITYENFORCER_OPT_SELECT_OFF_COMP',                'Off');\r
-define('_SECURITYENFORCER_OPT_SELECT_ONE_COMP',                'One character type');\r
-define('_SECURITYENFORCER_OPT_SELECT_TWO_COMP',                'Two character types');\r
-define('_SECURITYENFORCER_OPT_SELECT_THREE_COMP',              'Three character types');\r
-define('_SECURITYENFORCER_OPT_SELECT_FOUR_COMP',               'Four character types');\r
-define('_SECURITYENFORCER_OPT_MAX_FAILED_LOGIN',               'How many failed login attempts before locking the user account?');\r
-define('_SECURITYENFORCER_OPT_LOGIN_LOCKOUT',          'After how many minutes should a locked account be released?');\r
-\r
-\r
-//QuickMenu\r
-define('_SECURITYENFORCER_ADMIN_TOOLTIP',                 'Manage NP_SecurityEnforcer Plugin');\r
-define('_SECURITYENFORCER_ADMIN_UNLOCKED',                ' has been unlocked. Remember to unlock the corresponding IP or Login Name.');\r
-define('_SECURITYENFORCER_ADMIN_NONE_LOCKED',             'No Records Found.');\r
-\r
-// ERRORS\r
-define('_SECURITYENFORCER_INSUFFICIENT_COMPLEXITY',               'This password does not meet site requirements for length or complexity. <br />');\r
-define('_SECURITYENFORCER_MIN_PWD_LENGTH',                '<br />Minimum password length: ');\r
-define('_SECURITYENFORCER_PWD_COMPLEXITY',                '<br />Minimum number of character types ([a-z], [A-Z], [0-9], [-~!@#$%^&*()_+=,.<>?:;|]): ');\r
-\r
-//random words\r
-define('_SECURITYENFORCER_UNLOCK',                'Unlock');\r
-define('_SECURITYENFORCER_ENTITY',                'Entity');\r
-define('_SECURITYENFORCER_LOCKED_ENTITIES',               'Currently Locked Entities');\r
-\r
-?>
\ No newline at end of file
diff --git a/utf8/nucleus/plugins/securityenforcer/index.php b/utf8/nucleus/plugins/securityenforcer/index.php
deleted file mode 100644 (file)
index 40d5c96..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php\r
-\r
-/*\r
-\r
-Admin area for NP_SecurityEnforcer\r
-\r
-*/\r
-\r
-       // if your 'plugin' directory is not in the default location,\r
-       // edit this variable to point to your site directory\r
-       // (where config.php is)\r
-       $strRel = '../../../';\r
-\r
-       include($strRel . 'config.php');\r
-       if (!$member->isAdmin())\r
-               doError('Insufficient Permissions.');\r
-               \r
-\r
-       include($DIR_LIBS . 'PLUGINADMIN.php');\r
-       // some functions\r
-       \r
-       function SE_unlockLogin($login) {\r
-               sql_query("DELETE FROM ".sql_table('plug_securityenforcer')." WHERE login='".addslashes($login)."'");\r
-       }\r
-       \r
-               \r
-       // checks\r
-       \r
-\r
-       \r
-       // create the admin area page\r
-       $oPluginAdmin = new PluginAdmin('SecurityEnforcer');\r
-       // add styles to the <HEAD>\r
-       $oPluginAdmin->start('');\r
-       \r
-       // if form to unlock is posted\r
-       if(postVar('action') == 'unlock') {\r
-               if (!$manager->checkTicket()) \r
-                       doError('Invalid Ticket');\r
-               $logins = postVar('unlock');\r
-               $message = '';\r
-               if(is_array($logins)) {\r
-                       foreach ($logins as $entity) {\r
-                               SE_unlockLogin($entity);\r
-                               $message .= '<br />' . $entity . _SECURITYENFORCER_ADMIN_UNLOCKED;\r
-                       }\r
-               }\r
-       }               \r
-       $plug =& $oPluginAdmin->plugin;\r
-\r
-       // page title\r
-       echo '<h2>Security Enforcer Administration</h2>';\r
-       \r
-       // error output\r
-       if($message) { echo "<p><strong>"; echo $message; echo "</strong></p>"; }\r
-               \r
-       // generate table from all entries in the database\r
-       echo '<h3>'._SECURITYENFORCER_LOCKED_ENTITIES.'</h3>';\r
-       echo '<form action="' . $oPluginAdmin->plugin->getAdminURL() . '" method="POST">';\r
-       echo '<input type="hidden" name="action" value="unlock" />';\r
-       $manager->addTicketHidden();\r
-       echo '<table>';\r
-       echo '<tr><th>'._SECURITYENFORCER_ENTITY.'</th><th>Unlock?</th></tr>';\r
-       echo '<tr><td colspan="2" class="submit"><input type="submit" value="'._SECURITYENFORCER_UNLOCK.'" /></td></tr>';\r
-       // do query to get all entries, loop\r
-       $result = sql_query("SELECT * FROM ".sql_table("plug_securityenforcer")." WHERE fails >= ".$plug->max_failed_login);\r
-       if(sql_num_rows($result)) {\r
-               while($row = sql_fetch_assoc($result)) {\r
-                       echo '<tr>';\r
-                               echo '<td>'.htmlspecialchars($row['login']).'</td>';\r
-                               echo '<td><input type="checkbox" name="unlock[]" value="'.htmlspecialchars($row['login']).'" />'._SECURITYENFORCER_UNLOCK.'</td>';\r
-                       echo '</tr>';\r
-               }\r
-       }\r
-       else {\r
-               echo '<tr><td colspan="2"><strong>'._SECURITYENFORCER_ADMIN_NONE_LOCKED.'</strong></td></tr>';\r
-       }\r
-       echo '<tr><td colspan="2" class="submit"><input type="submit" value="'._SECURITYENFORCER_UNLOCK.'" /></td></tr>';\r
-       echo '</table>';\r
-       echo '</form>';\r
-       \r
-       $oPluginAdmin->end();\r
-\r
-?>
\ No newline at end of file
diff --git a/utf8/nucleus/plugins/securityenforcer/japanese-euc.php b/utf8/nucleus/plugins/securityenforcer/japanese-euc.php
deleted file mode 100644 (file)
index 389e2e5..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php\r
-/** English language file for NP_SECURITYENFORCER Plugin\r
-*/\r
-\r
-// Plugin Options\r
-define('_SECURITYENFORCER_OPT_QUICKMENU',                      '¥¯¥¤¥Ã¥¯¥á¥Ë¥å¡¼¤Ëɽ¼¨¤·¤Þ¤¹¤«¡©');\r
-define('_SECURITYENFORCER_OPT_DEL_UNINSTALL_DATA',     '¥¢¥ó¥¤¥ó¥¹¥È¡¼¥ë»þ¤Ë¥Ç¡¼¥¿¥Ù¡¼¥¹¤Î¥Æ¡¼¥Ö¥ë¤òºï½ü¤·¤Þ¤¹¤«¡©');\r
-define('_SECURITYENFORCER_OPT_ENABLE',                         '¥Ñ¥¹¥ï¡¼¥É¤Î¥Á¥§¥Ã¥¯¤È¥í¥°¥¤¥ó¥Á¥§¥Ã¥¯¤Î¤È¤­¤ËSecurityEnforcer¤òÍ­¸ú¤Ë¤·¤Þ¤¹¤«¡©');\r
-define('_SECURITYENFORCER_OPT_PWD_MIN_LENGTH',         '¥Ñ¥¹¥ï¡¼¥É¤ÎºÇ¾®Ê¸»ú¿ô(¥Ç¥Õ¥©¥ë¥È¤Ï8ʸ»ú¡£6ʸ»ṳ́Ëþ¤Ë¤Ï»ØÄê¤Ç¤­¤Þ¤»¤ó¡§');\r
-define('_SECURITYENFORCER_OPT_PWD_COMPLEXITY',         '¥Ñ¥¹¥ï¡¼¥É¶¯Å٤ΥÁ¥§¥Ã¥¯(a-z, A-Z, 0-9, ¶çÆÉÅÀ°Ê³°¤Ë²¿¼ïÎà¤Îʸ»ú¥¿¥¤¥×¤¬Â¸ºß¤¹¤ë¤Ù¤­¤Ç¤¹¤«?):');\r
-define('_SECURITYENFORCER_OPT_SELECT_OFF_COMP',                'Off');\r
-define('_SECURITYENFORCER_OPT_SELECT_ONE_COMP',                '°ì¤ÄÌܤÎʸ»ú¥¿¥¤¥×');\r
-define('_SECURITYENFORCER_OPT_SELECT_TWO_COMP',                'Æó¤ÄÌܤÎʸ»ú¥¿¥¤¥×');\r
-define('_SECURITYENFORCER_OPT_SELECT_THREE_COMP',      '»°¤ÄÌܤÎʸ»ú¥¿¥¤¥×');\r
-define('_SECURITYENFORCER_OPT_SELECT_FOUR_COMP',       '»Í¤ÄÌܤÎʸ»ú¥¿¥¤¥×');\r
-define('_SECURITYENFORCER_OPT_MAX_FAILED_LOGIN',       '²¿ÅÙÌÜ¤Î¥í¥°¥¤¥ó¼ºÇԤǥ¢¥«¥¦¥ó¥È¤ò¥í¥Ã¥¯¤·¤Þ¤¹¤«¡©');\r
-define('_SECURITYENFORCER_OPT_LOGIN_LOCKOUT',          '¥¢¥«¥¦¥ó¥È¤ò¥í¥Ã¥¯¤·¤Æ¤«¤é²¿Ê¬¤Ç¥í¥Ã¥¯²ò½ü¤·¤Þ¤¹¤«¡©');\r
-\r
-\r
-// QuickMenu\r
-define('_SECURITYENFORCER_ADMIN_TOOLTIP',                      'SecurityEnforcer¥×¥é¥°¥¤¥ó¤Î´ÉÍý');\r
-define('_SECURITYENFORCER_ADMIN_UNLOCKED',                     '¥í¥Ã¥¯²ò½ü¤µ¤ì¤Þ¤·¤¿¡£Âбþ¤¹¤ë£É£Ð¥¢¥É¥ì¥¹¡¢¤Þ¤¿¤Ï¥í¥°¥¤¥ó̾¤Î¥í¥Ã¥¯¤ò²ò½ü¤¹¤ë¤Î¤ò˺¤ì¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£');\r
-define('_SECURITYENFORCER_ADMIN_NONE_LOCKED',          '³ºÅö¤Ê¤·');\r
-\r
-// ERRORS\r
-define('_SECURITYENFORCER_INSUFFICIENT_COMPLEXITY',    'ÆþÎϤµ¤ì¤¿¥Ñ¥¹¥ï¡¼¥É¤Ï¡¢¤³¤Î¥µ¥¤¥È¤ÇÍ׵ᤵ¤ì¤ëʸ»ú¿ô¡¢¤Þ¤¿¤Ï¶¯ÅÙ¤òËþ¤¿¤·¤Æ¤¤¤Þ¤»¤ó¡£<br />');\r
-define('_SECURITYENFORCER_MIN_PWD_LENGTH',                     '<br />¥Ñ¥¹¥ï¡¼¥É¤¬Ã»¤¹¤®¤Þ¤¹¡§');\r
-define('_SECURITYENFORCER_PWD_COMPLEXITY',                     '<br />ʸ»ú¥¿¥¤¥×¤¬¾¯¤Ê¤¹¤®¤Þ¤¹([a-z], [A-Z], [0-9], [-~!@#$%^&*()_+=,.<>?:;|]): ');\r
-\r
-// random words\r
-define('_SECURITYENFORCER_UNLOCK',                                     '¥¢¥ó¥í¥Ã¥¯');\r
-define('_SECURITYENFORCER_ENTITY',                                     '¥¨¥ó¥Æ¥£¥Æ¥£');\r
-define('_SECURITYENFORCER_LOCKED_ENTITIES',                    '¸½ºß¥í¥Ã¥¯Ãæ¤Î¥¨¥ó¥Æ¥£¥Æ¥£');\r
-\r
-// Plugin desc\r
-define('_SECURITYENFORCER_DESCRIPTION',                                '¥Ñ¥¹¥ï¡¼¥É¤ÎºÇ¾®Ê¸»ú¿ô¤ä¶¯ÅÙ¤ÎÀ©¸Â¡¢¥í¥°¥¤¥ó¼ºÇÔ²Äǽ²ó¿ô¤Ê¤É¤òÀßÄꤷ¤Þ¤¹');\r
-\r
-// Log info\r
-define('_SECURITYENFORCER_LOGIN_DISALLOWED',           '¥ê¥â¡¼¥È¥Û¥¹¥È¡Ö%2$s¡×¤«¤é¤Î¥í¥°¥¤¥ó̾¡Ö%1$s¡×¤Î¥í¥°¥¤¥ó¤ÏSecurityEnforcer¥×¥é¥°¥¤¥ó¤Ë¤è¤Ã¤ÆµñÀ䤵¤ì¤Þ¤·¤¿');\r
-\r
-?>
\ No newline at end of file
diff --git a/utf8/nucleus/plugins/securityenforcer/japanese-utf8.php b/utf8/nucleus/plugins/securityenforcer/japanese-utf8.php
deleted file mode 100644 (file)
index 1e71ee7..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php\r
-/** English language file for NP_SECURITYENFORCER Plugin\r
-*/\r
-\r
-// Plugin Options\r
-define('_SECURITYENFORCER_OPT_QUICKMENU',                      'クイックメニューに表示しますか?');\r
-define('_SECURITYENFORCER_OPT_DEL_UNINSTALL_DATA',     'アンインストール時にデータベースのテーブルを削除しますか?');\r
-define('_SECURITYENFORCER_OPT_ENABLE',                         'パスワードのチェックとログインチェックのときにSecurityEnforcerを有効にしますか?');\r
-define('_SECURITYENFORCER_OPT_PWD_MIN_LENGTH',         'パスワードの最小文字数(デフォルトは8文字。6文字未満には指定できません:');\r
-define('_SECURITYENFORCER_OPT_PWD_COMPLEXITY',         'パスワード強度のチェック(a-z, A-Z, 0-9, 句読点以外に何種類の文字タイプが存在するべきですか?):');\r
-define('_SECURITYENFORCER_OPT_SELECT_OFF_COMP',                'Off');\r
-define('_SECURITYENFORCER_OPT_SELECT_ONE_COMP',                '一つ目の文字タイプ');\r
-define('_SECURITYENFORCER_OPT_SELECT_TWO_COMP',                '二つ目の文字タイプ');\r
-define('_SECURITYENFORCER_OPT_SELECT_THREE_COMP',      '三つ目の文字タイプ');\r
-define('_SECURITYENFORCER_OPT_SELECT_FOUR_COMP',       '四つ目の文字タイプ');\r
-define('_SECURITYENFORCER_OPT_MAX_FAILED_LOGIN',       '何度目のログイン失敗でアカウントをロックしますか?');\r
-define('_SECURITYENFORCER_OPT_LOGIN_LOCKOUT',          'アカウントをロックしてから何分でロック解除しますか?');\r
-\r
-\r
-// QuickMenu\r
-define('_SECURITYENFORCER_ADMIN_TOOLTIP',                      'SecurityEnforcerプラグインの管理');\r
-define('_SECURITYENFORCER_ADMIN_UNLOCKED',                     'ロック解除されました。対応するIPアドレス、またはログイン名のロックを解除するのを忘れないでください。');\r
-define('_SECURITYENFORCER_ADMIN_NONE_LOCKED',          '該当なし');\r
-\r
-// ERRORS\r
-define('_SECURITYENFORCER_INSUFFICIENT_COMPLEXITY',    '入力されたパスワードは、このサイトで要求される文字数、または強度を満たしていません。<br />');\r
-define('_SECURITYENFORCER_MIN_PWD_LENGTH',                     '<br />パスワードが短すぎます:');\r
-define('_SECURITYENFORCER_PWD_COMPLEXITY',                     '<br />文字タイプが少なすぎます([a-z], [A-Z], [0-9], [-~!@#$%^&*()_+=,.<>?:;|]): ');\r
-\r
-// random words\r
-define('_SECURITYENFORCER_UNLOCK',                                     'アンロック');\r
-define('_SECURITYENFORCER_ENTITY',                                     'エンティティ');\r
-define('_SECURITYENFORCER_LOCKED_ENTITIES',                    '現在ロック中のエンティティ');\r
-\r
-// Plugin desc\r
-define('_SECURITYENFORCER_DESCRIPTION',                                'パスワードの最小文字数や強度の制限、ログイン失敗可能回数などを設定します');\r
-\r
-// Log info\r
-define('_SECURITYENFORCER_LOGIN_DISALLOWED',           'リモートホスト「%2$s」からのログイン名「%1$s」のログインはSecurityEnforcerプラグインによって拒絶されました');\r
-\r
-?>
\ No newline at end of file