]> git.mxchange.org Git - mailer.git/commitdiff
Removed duplicate code which has already been moved to a filter
authorRoland Häder <roland@mxchange.org>
Sat, 3 Nov 2012 23:17:14 +0000 (23:17 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 3 Nov 2012 23:17:14 +0000 (23:17 +0000)
inc/extensions/ext-sql_patches.php

index f0d1c40cba95516c204e82a599853850988c8226..d0e26dd18ccf9e56d3a37e9e3a79f4a2d98cec89 100644 (file)
@@ -973,41 +973,6 @@ PRIMARY KEY (`server_name_id`)
                break;
 
        case 'init': // Do stuff when extension is initialized
-               // Transfer POINTS word
-               if (isExtensionInstalledAndNewer('sql_patches', '0.0.3')) {
-                       // Okay, recent enough, so transfer the word for POINTS
-                       setConfigEntry('POINTS', getPointsWord());
-               } // END - if
-
-               // Init key
-               setConfigEntry('secret_key', '');
-
-               // Is the version recent enought for secret keys?
-               if (isExtensionInstalledAndNewer('sql_patches', '0.3.6')) {
-                       // Read key from secret file
-                       if ((getFileHash() == '') || (getMasterSalt() == '') || (getPassScramble() == '')) {
-                               // Maybe need setup of secret key!
-                               loadIncludeOnce('inc/gen_sql_patches.php');
-                       } // END - if
-
-                       // Test again
-                       if ((getFileHash() != '') && (getMasterSalt() != '') && (getPassScramble() != '')) {
-                               // File hash fas generated so we can also file the secret file... hopefully.
-                               $hashFile = sprintf("%s%s.%s.cache", getPath(), getCachePath(), getFileHash());
-
-                               // Is the secret key file readable?
-                               if (isFileReadable($hashFile)) {
-                                       // Read file
-                                       setConfigEntry('secret_key', readFromFile($hashFile));
-                               } else {
-                                       // Remove it from database
-                                       updateConfiguration('file_hash', '');
-
-                                       // Cannot read secret file!
-                                       reportBug(__FILE__, __LINE__, 'Cannot read secret file! Please try to reload.');
-                               }
-                       } // END - if
-               } // END - if
                break;
 
        default: // Unknown extension mode