Exemplo n.º 1
0
 public function rrmdir($dir)
 {
     if (is_dir($dir)) {
         $objects = scandir($dir);
         foreach ($objects as $object) {
             if ($object != "." && $object != "..") {
                 if (filetype($dir . "/" . $object) == "dir") {
                     eucaInstall::rrmdir($dir . "/" . $object);
                 } else {
                     unlink($dir . "/" . $object);
                 }
             }
         }
         reset($objects);
         rmdir($dir);
     }
 }
Exemplo n.º 2
0
<?php

/**
 * @version $Id: upgrade_0_14_4.inc.php
 * @package AEC - Account Control Expiration - Membership Manager
 * @subpackage Install Includes
 * @copyright 2011-2015 Copyright (C) David Deutsch
 * @author David Deutsch <*****@*****.**> & Team AEC - http://www.valanx.org
 * @license GNU/GPL v.3 http://www.gnu.org/licenses/gpl.html or, at your option, any later version
 */
// Dont allow direct linking
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
$db->setQuery("ALTER TABLE #__acctexp_plans CHANGE `name` `name` varchar(255)");
if (!$db->query()) {
    $errors[] = array($db->getErrorMsg(), $query);
}
if (is_dir(JPATH_SITE . '/components/com_acctexp/lang')) {
    eucaInstall::rrmdir(JPATH_SITE . '/components/com_acctexp/lang');
}
if (is_dir(JPATH_SITE . '/components/com_acctexp/micro_integration/lang')) {
    eucaInstall::rrmdir(JPATH_SITE . '/components/com_acctexp/micro_integration/lang');
}
if (is_dir(JPATH_SITE . '/components/com_acctexp/processors/lang')) {
    eucaInstall::rrmdir(JPATH_SITE . '/components/com_acctexp/processors/lang');
}
if (is_dir(JPATH_SITE . '/administrator/components/com_acctexp/lang')) {
    eucaInstall::rrmdir(JPATH_SITE . '/administrator/components/com_acctexp/lang');
}