33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-12-28 12:30:44 +00:00
jedchecker/source/administrator/components/com_jedchecker/controllers/police.php

27 lines
783 B
PHP
Raw Normal View History

<?php
/**
* @author Daniel Dimitrov - compojoom.com
* @date: 02.06.12
*
* @copyright Copyright (C) 2008 - 2012 compojoom.com . All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('_JEXEC') or die('Restricted access');
defined('_JEXEC') or die('Restricted access');
jimport('joomla.filesystem');
jimport('joomla.filesystem.archive');
class jedcheckerControllerPolice extends JController {
public function check() {
require_once JPATH_COMPONENT_ADMINISTRATOR . '/libraries/rules/htmlindexes.php';
2012-06-03 19:00:33 +00:00
$path = JPATH_COMPONENT_ADMINISTRATOR . '/tmp/unzipped/';
$police = new jedcheckerRulesHtmlindexes;
$folders = JFolder::folders($path);
$police->check($path.$folders[0]);
}
}