mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-12-25 11:40:00 +00:00
Merge pull request #2 from eaxs/master
Minor improvements to JEXEC and check procedure
This commit is contained in:
commit
e6bd12e032
@ -73,7 +73,13 @@ class jedcheckerRulesJexec
|
||||
$pos_2 = strpos($line, '_JEXEC');
|
||||
|
||||
// Skip the line if _JEXEC is not found
|
||||
if($pos_2 === false) continue;
|
||||
if($pos_2 === false) {
|
||||
// Alternatively search for JPATH_PLATFORM
|
||||
$pos_2 = strpos($line, 'JPATH_PLATFORM');
|
||||
|
||||
// Nothing found, skip the line
|
||||
if($pos_2 === false) continue;
|
||||
}
|
||||
|
||||
// Search for "defined" and "die". "or" may not be present
|
||||
// depending on syntax
|
||||
|
@ -60,7 +60,7 @@ JHtml::script('media/com_jedchecker/js/police.js');
|
||||
<h2><?php echo JText::_('COM_JEDCHECKER_WALL_OF_HONOR'); ?></h2>
|
||||
<p><?php echo JText::_('COM_JEDCHECKER_PEOPLE_THAT_HAVE_HELPED_WITH_THE_DEVELOPMENT'); ?></p>
|
||||
<ul>
|
||||
<li>Tobias Kuhn (<a href="http://projectfork.com" target="_blank">projectfork</a>)</li>
|
||||
<li>Tobias Kuhn (<a href="http://projectfork.net" target="_blank">projectfork</a>)</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -13,6 +13,12 @@ var police = new Class({
|
||||
var self = this;
|
||||
this.setOptions(options);
|
||||
|
||||
// Clear result from any previous check
|
||||
if(document.id('police-check-result').getChildren('div').length > 0) {
|
||||
document.id('police-check-result').empty();
|
||||
}
|
||||
|
||||
|
||||
this.options.rules.each(function(rule){
|
||||
self.check(rule);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user