Esempio n. 1
0
<?php

defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
require_once dirname(__FILE__) . '/../components/DirectoryChecker.php';
DirectoryChecker::check();
$installConfig = array('name' => 'Ygin Installer', 'language' => 'ru', 'sourceLanguage' => 'ru_RU', 'import' => array('application.components.*', 'ygin.modules.user.models.User', 'ygin.modules.user.behaviors.password.*', 'ygin.modules.user.components.DaWebUser'), 'defaultController' => 'install/default', 'modules' => array('ygin.install'), 'pluginsCompile' => true, 'components' => array('errorHandler' => array('errorAction' => 'install/default/error'), 'session' => array('autoStart' => true), 'urlManager' => array('urlFormat' => 'path', 'showScriptName' => false, 'urlSuffix' => '/', 'caseSensitive' => true, 'rules' => array('<controller:\\w+>/<id:\\d+>' => '<controller>/view', '<controller:\\w+>' => '<controller>/index', '<controller:\\w+>/<action:\\w+>/<id:\\d+>' => '<controller>/<action>', '<controller:\\w+>/<action:\\w+>' => '<controller>/<action>')), 'authManager' => array('class' => 'CDbAuthManager', 'connectionID' => 'db', 'itemTable' => 'da_auth_item', 'itemChildTable' => 'da_auth_item_child', 'assignmentTable' => 'da_auth_assignment', 'defaultRoles' => array('guest')), 'log' => array('routes' => array('install' => array('class' => 'CFileLogRoute', 'categories' => array('ygin.install'), 'logFile' => 'install.log')))));
$coreConfig = (require dirname(__FILE__) . '/../../../config/core.php');
return CMap::mergeArray($coreConfig, $installConfig);
Esempio n. 2
0
 //------ check directories ---------------
 $indexAdmin->addConfigBoxLine('');
 $redirectFile = $_SERVER['PHP_SELF'];
 $languageConstants = array(_AM_OLEDRION_AVAILABLE, _AM_OLEDRION_NOTAVAILABLE, _AM_OLEDRION_CREATETHEDIR, _AM_OLEDRION_NOTWRITABLE, _AM_OLEDRION_SETMPERM, _AM_OLEDRION_DIRCREATED, _AM_OLEDRION_DIRNOTCREATED, _AM_OLEDRION_PERMSET, _AM_OLEDRION_PERMNOTSET);
 //$path =  $xoopsModuleConfig['uploaddir'] . '/';
 $indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(OLEDRION_UPLOAD_PATH, 0777, $languageConstants, $redirectFile));
 //$path = XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['screenshots'] . '/';
 $indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(OLEDRION_ATTACHED_FILES_PATH, 0777, $languageConstants, $redirectFile));
 //$path = XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['catimage'] . '/';
 $indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(OLEDRION_PICTURES_PATH, 0777, $languageConstants, $redirectFile));
 //$path = XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['mainimagedir'] . '/';
 $indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(OLEDRION_CSV_PATH, 0777, $languageConstants, $redirectFile));
 //$path = XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['catimage'] . '/';
 $indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(OLEDRION_CACHE_PATH, 0777, $languageConstants, $redirectFile));
 //$path = XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['mainimagedir'] . '/';
 $indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(OLEDRION_TEXT_PATH, 0777, $languageConstants, $redirectFile));
 //echo $indexAdmin->addNavigation('index.php');
 //echo $indexAdmin->renderIndex();
 //echo wfd_serverstats();
 //---------------------------
 echo $indexAdmin->addNavigation('index.php');
 echo $indexAdmin->renderIndex();
 $itemsCount = 5;
 // Nombre d'éléments à afficher
 if ($h_oledrion_products->getCount() > 0) {
     echo "<table border='0' width='100%' cellpadding='2' cellspacing='2'>";
     echo "<tr>\n";
     // Dernières commandes ************************************************
     echo "<td valign='top' width='50%' align='center'><b>" . _AM_OLEDRION_LAST_ORDERS . "</b>";
     $tblTmp = array();
     $criteria = new CriteriaCompo();
Esempio n. 3
0
        if (isset($_GET['redirect'])) {
            $redirect = filter_input(INPUT_GET, 'redirect', FILTER_SANITIZE_STRING);
        }
        if (isset($_GET['languageConstants'])) {
            $languageConstants = json_decode($_GET['languageConstants']);
        }
        $result = DirectoryChecker::createDirectory($path);
        $msg = $result ? $languageConstants[0] : $languageConstants[1];
        redirect_header($redirect, 2, $msg . ': ' . $path);
        exit;
        break;
    case "setperm":
        $languageConstants = array();
        if (isset($_GET['path'])) {
            $path = filter_input(INPUT_GET, 'path', FILTER_SANITIZE_STRING);
        }
        if (isset($_GET['mode'])) {
            $mode = filter_input(INPUT_GET, 'mode', FILTER_SANITIZE_STRING);
        }
        if (isset($_GET['redirect'])) {
            $redirect = filter_input(INPUT_GET, 'redirect', FILTER_SANITIZE_STRING);
        }
        if (isset($_GET['languageConstants'])) {
            $languageConstants = json_decode($_GET['languageConstants']);
        }
        $result = DirectoryChecker::setDirectoryPermissions($path, $mode);
        $msg = $result ? $languageConstants[0] : $languageConstants[1];
        redirect_header($redirect, 2, $msg . ': ' . $path);
        exit;
        break;
}