Changeset 1487677
- Timestamp:
- 09/01/2016 05:11:12 AM (10 years ago)
- Location:
- ose-firewall/trunk
- Files:
-
- 5 edited
-
classes/App/Model/ManageipsModel.php (modified) (1 diff)
-
classes/Library/oseFirewallBase.php (modified) (20 diffs)
-
ose_firewall_badge.php (modified) (1 diff)
-
ose_wordpress_firewall.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ose-firewall/trunk/classes/App/Model/ManageipsModel.php
r1446915 r1487677 95 95 $referer_id = $this->addReferer(); 96 96 $varValues = array( 97 'name' => $name,97 'name' => oseFirewall::cleanupVar ($name), 98 98 'datetime' => date('Y-m-d h:i:s'), 99 99 'score' => 0, -
ose-firewall/trunk/classes/Library/oseFirewallBase.php
r1464525 r1487677 79 79 return true; 80 80 } 81 else 81 else 82 82 { 83 83 return false; 84 } 84 } 85 85 } 86 86 public function loadBackendFunctions() … … 118 118 return false; 119 119 } 120 120 121 121 $dbReady = oseFirewallBase :: isAdvanceSettingConfigDBReady(); 122 122 if($dbReady == false){ … … 124 124 }else{ 125 125 return true; 126 } 126 } 127 127 } 128 128 public static function isAdvanceSettingConfigDBReady() … … 166 166 } 167 167 private function isAdvanceSettingConfigEnable(){ 168 return $this->checkOseConfig ('adRules', 'advscan'); 168 return $this->checkOseConfig ('adRules', 'advscan'); 169 169 } 170 170 public static function getLocaleString(){ … … 174 174 $lang = 'en_US'; 175 175 } 176 176 177 177 return $lang; 178 178 } … … 180 180 { 181 181 if (defined('OSE_OEM_LANG_TAG') && OSE_OEM_LANG_TAG =='') { 182 $lang = self::getLocaleString(); 182 $lang = self::getLocaleString(); 183 183 } 184 184 else if (defined('OSE_OEM_LANG_TAG') && OSE_OEM_LANG_TAG !='') 185 185 { 186 $lang = OSE_OEM_LANG_TAG; 186 $lang = OSE_OEM_LANG_TAG; 187 187 } 188 188 else { … … 196 196 $oseDB2 = self::getDBO(); 197 197 $data = $oseDB2->isTableExists('#__osefirewall_backupath'); 198 if (!empty($data)) 199 { 200 self::checkVSTypeTable (); 198 if (!empty($data)) 199 { 200 self::checkVSTypeTable (); 201 201 $data = $oseDB2->isTableExists('#__osefirewall_vspatterns'); 202 202 $oseDB2->closeDBO(); … … 213 213 echo '<span class="label label-warning"><i class="glyphicon glyphicon-remove"></i> Warning: Firewall Outdated</span> <button class="btn btn-danger btn-xs fx-button" id="fixSignature" name="fixSignature" onClick="updateSignature(\'#rulesetsTable\')">Fix It</button>'; 214 214 if (OSE_CMS!='joomla') 215 { 215 { 216 216 echo '<script type="text/javascript">document.getElementById("fixSignature").click();</script>'; 217 217 } … … 225 225 $oseDB2 = self::getDBO(); 226 226 $query = "SELECT COUNT(id) AS count FROM `#__osefirewall_basicrules`;"; 227 $oseDB2->setQuery($query); 227 $oseDB2->setQuery($query); 228 228 $count = $oseDB2->loadResult(); 229 229 return ($count['count']); 230 230 } 231 // Version 3.4.0 Table checking; 231 // Version 3.4.0 Table checking; 232 232 private static function checkVSTypeTable () { 233 233 $oseDB2 = self::getDBO(); … … 246 246 if ( $result['count2']>0 && $oseDB2->isTableExists('#__osefirewall_vspatterns')) 247 247 { 248 $queries = array (); 248 $queries = array (); 249 249 $queries[] = "SET FOREIGN_KEY_CHECKS = 0"; 250 250 $queries[] = "DROP TABLE IF EXISTS `#__osefirewall_files` "; … … 257 257 $oseDB2->setQuery($query); 258 258 $oseDB2->query (); 259 } 259 } 260 260 } 261 return false; 262 } 263 } 261 return false; 262 } 263 } 264 264 } 265 265 public static function getGeoIPState() … … 445 445 self::runController ('LoginController', 'index'); 446 446 } 447 public static function subscription () 447 public static function subscription () 448 448 { 449 449 self::runController ('SubscriptionController', 'index'); 450 450 } 451 public static function cronjobs () 451 public static function cronjobs () 452 452 { 453 453 self::runController ('CronjobsController', 'index'); … … 457 457 self::runController ('PermconfigController', 'index'); 458 458 } 459 public static function clamav () 459 public static function clamav () 460 460 { 461 461 $app = self::runApp(); 462 462 $app->runController('clamav', 'index'); 463 463 } 464 public static function apiconfig () 464 public static function apiconfig () 465 465 { 466 466 $app = self::runApp(); … … 511 511 public function getDebugMode() 512 512 { 513 return $this->checkOseConfig ('debugMode', 'scan'); 513 return $this->checkOseConfig ('debugMode', 'scan'); 514 514 } 515 515 … … 525 525 } 526 526 else { 527 $host = explode(":", $dbConfig->host); 527 $host = explode(":", $dbConfig->host); 528 528 $dbo = new PDO("mysql:unix_socket=".$host[1].";dbname=".$dbConfig->db, $dbConfig->user, $dbConfig->password); 529 529 } … … 540 540 $stmt = $dbo->query ("SELECT `value` FROM `".$dbConfig->prefix."ose_secConfig` WHERE `key` = '".$key."' AND `type` = '".$type."'"); 541 541 if (!empty($stmt)) 542 { 542 { 543 543 $stmt->setFetchMode(PDO::FETCH_OBJ); 544 544 $result = $stmt->fetch(); … … 581 581 } 582 582 return $return; 583 } 583 } 584 584 public function comparePHPVersion () { 585 585 return (version_compare(PHP_VERSION, '5.3.0') >= 0)?true:false; … … 587 587 public function runReport () { 588 588 oseFirewall::callLibClass('audit', 'audit'); 589 $audit = new oseFirewallAudit (); 589 $audit = new oseFirewallAudit (); 590 590 $audit -> runReport(); 591 591 } 592 592 public static function getTime () { 593 self::loadDateClass(); 593 self::loadDateClass(); 594 594 $oseDatetime = new oseDatetime(); 595 595 $oseDatetime->setFormat("Y-m-d H:i:s"); 596 596 $time = $oseDatetime->getDateTime(); 597 return $time; 597 return $time; 598 598 } 599 599 public static function enhanceSysSecurity () { 600 600 oseFirewall::callLibClass('audit', 'audit'); 601 $audit = new oseFirewallAudit (); 602 $audit -> enhanceSysSecurity(); 601 $audit = new oseFirewallAudit (); 602 $audit -> enhanceSysSecurity(); 603 603 } 604 604 public static function getConfiguration($type) … … 611 611 $db->closeDBO (); 612 612 if (!empty($results)) 613 { 613 { 614 614 foreach ($results as $result) 615 615 { … … 1017 1017 $oseDB2->query(); 1018 1018 } 1019 public static function cleanupVar ($var) { 1020 return str_replace(array('"', "'", '<', '>'), "", $var); 1021 } 1019 1022 } -
ose-firewall/trunk/ose_firewall_badge.php
r1486767 r1487677 4 4 Description: Plugin For Showing Centrora Security Badge 5 5 Author: Centrora Security 6 Version: 6.5. 86 Version: 6.5.9 7 7 */ 8 8 //include(dirname(__FILE__).'/includes/oseBadgeWidget.php'); -
ose-firewall/trunk/ose_wordpress_firewall.php
r1486767 r1487677 5 5 Description: Centrora Security (previously OSE Firewall) - A WordPress Security Firewall plugin created by Centrora. Protect your WordPress site by identify any malicious codes, spam, virus, SQL injection, and security vulnerabilities. 6 6 Author: Centrora (Previously ProWeb) 7 Version: 6.5. 87 Version: 6.5.9 8 8 Author URI: http://www.centrora.com/ 9 9 */ -
ose-firewall/trunk/readme.txt
r1486767 r1487677 6 6 Requires at least: 3.7 7 7 Tested up to: 4.5.2 8 Stable tag: 6.5. 88 Stable tag: 6.5.9 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 164 164 165 165 == Changelog == 166 167 = 6.5.9 = 168 * Improved Add IP function to cleanup IP title to enhance security, credits to 'Plugin Vulnerabilities' 166 169 167 170 = 6.5.8 =
Note: See TracChangeset
for help on using the changeset viewer.