コード例 #1
0
 function BxDolAdminTools()
 {
     parent::BxDolIO();
     $this->sTroubledElements = '';
     $this->aInstallDirs = array('backup', 'cache', 'cache_public', 'langs', 'media/images', 'media/images/banners', 'media/images/blog', 'media/images/classifieds', 'media/images/membership', 'media/images/profile', 'media/moxie/files', 'media/moxie/storage', 'tmp');
     $this->aInstallFiles = array('sitemap.xml');
     $this->aFlashDirs = array('flash/modules/board/files', 'flash/modules/chat/files', 'flash/modules/photo/files', 'flash/modules/im/files', 'flash/modules/mp3/files', 'flash/modules/video/files', 'flash/modules/video_comments/files');
     $this->aFlashFiles = array('flash/modules/global/data/integration.dat', 'flash/modules/board/xml/config.xml', 'flash/modules/board/xml/langs.xml', 'flash/modules/board/xml/main.xml', 'flash/modules/board/xml/skins.xml', 'flash/modules/chat/xml/config.xml', 'flash/modules/chat/xml/langs.xml', 'flash/modules/chat/xml/main.xml', 'flash/modules/chat/xml/skins.xml', 'flash/modules/desktop/xml/config.xml', 'flash/modules/desktop/xml/langs.xml', 'flash/modules/desktop/xml/main.xml', 'flash/modules/desktop/xml/skins.xml', 'flash/modules/global/app/ffmpeg.exe', 'flash/modules/global/xml/config.xml', 'flash/modules/global/xml/main.xml', 'flash/modules/im/xml/config.xml', 'flash/modules/im/xml/langs.xml', 'flash/modules/im/xml/main.xml', 'flash/modules/im/xml/skins.xml', 'flash/modules/mp3/xml/config.xml', 'flash/modules/mp3/xml/langs.xml', 'flash/modules/mp3/xml/main.xml', 'flash/modules/mp3/xml/skins.xml', 'flash/modules/photo/xml/config.xml', 'flash/modules/photo/xml/langs.xml', 'flash/modules/photo/xml/main.xml', 'flash/modules/photo/xml/skins.xml', 'flash/modules/video/xml/config.xml', 'flash/modules/video/xml/langs.xml', 'flash/modules/video/xml/main.xml', 'flash/modules/video/xml/skins.xml', 'flash/modules/video_comments/xml/config.xml', 'flash/modules/video_comments/xml/langs.xml', 'flash/modules/video_comments/xml/main.xml', 'flash/modules/video_comments/xml/skins.xml');
     $this->aPostInstallPermDirs = array();
     $this->aPostInstallPermFiles = array();
 }
コード例 #2
0
ファイル: BxDolAdminTools.php プロジェクト: Arvindvi/dolphin
 function BxDolAdminTools()
 {
     parent::BxDolIO();
     $this->sTroubledElements = '';
     $this->aInstallDirs = array('backup', 'cache', 'cache_public', 'langs', 'media/app', 'media/images', 'media/images/banners', 'media/images/blog', 'media/images/classifieds', 'media/images/membership', 'media/images/profile', 'media/images/profile_bg', 'tmp', 'plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer', 'plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/HTML', 'plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/CSS', 'plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/Test', 'plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/URI');
     $this->aInstallFiles = array('sitemap.xml');
     $this->aFlashDirs = array('flash/modules/board/files', 'flash/modules/chat/files', 'flash/modules/photo/files', 'flash/modules/im/files', 'flash/modules/mp3/files', 'flash/modules/video/files', 'flash/modules/video_comments/files');
     $this->aFlashFiles = array('flash/modules/global/data/integration.dat', 'flash/modules/board/xml/config.xml', 'flash/modules/board/xml/langs.xml', 'flash/modules/board/xml/main.xml', 'flash/modules/board/xml/skins.xml', 'flash/modules/chat/xml/config.xml', 'flash/modules/chat/xml/langs.xml', 'flash/modules/chat/xml/main.xml', 'flash/modules/chat/xml/skins.xml', 'flash/modules/desktop/xml/config.xml', 'flash/modules/desktop/xml/langs.xml', 'flash/modules/desktop/xml/main.xml', 'flash/modules/desktop/xml/skins.xml', 'flash/modules/global/app/ffmpeg.exe', 'flash/modules/global/xml/config.xml', 'flash/modules/global/xml/main.xml', 'flash/modules/im/xml/config.xml', 'flash/modules/im/xml/langs.xml', 'flash/modules/im/xml/main.xml', 'flash/modules/im/xml/skins.xml', 'flash/modules/mp3/xml/config.xml', 'flash/modules/mp3/xml/langs.xml', 'flash/modules/mp3/xml/main.xml', 'flash/modules/mp3/xml/skins.xml', 'flash/modules/photo/xml/config.xml', 'flash/modules/photo/xml/langs.xml', 'flash/modules/photo/xml/main.xml', 'flash/modules/photo/xml/skins.xml', 'flash/modules/video/xml/config.xml', 'flash/modules/video/xml/langs.xml', 'flash/modules/video/xml/main.xml', 'flash/modules/video/xml/skins.xml', 'flash/modules/video_comments/xml/config.xml', 'flash/modules/video_comments/xml/langs.xml', 'flash/modules/video_comments/xml/main.xml', 'flash/modules/video_comments/xml/skins.xml');
     $this->aPostInstallPermDirs = array();
     $this->aPostInstallPermFiles = array();
 }
コード例 #3
0
 public function __construct()
 {
     parent::__construct();
     $this->aInstallPermissions = array('inc', 'cache', 'cache_public', 'logs', 'tmp', 'storage');
     $this->aPostInstallPermissions = array();
     if (defined('BX_DOL_INSTALL') && BX_DOL_INSTALL) {
         $this->bInstallScript = true;
         $this->sRootPath = BX_INSTALL_URL_ROOT;
     } else {
         $this->bInstallScript = false;
         $this->sRootPath = BX_DOL_URL_ROOT;
     }
 }
コード例 #4
0
ファイル: BxDolStudioTools.php プロジェクト: blas-dmx/trident
 public function __construct()
 {
     parent::__construct();
     $this->aInstallPermissions = array('inc', 'cache', 'cache_public', 'logs', 'tmp', 'storage', defined('BX_SYSTEM_FFMPEG') ? bx_ltrim_str(BX_SYSTEM_FFMPEG, BX_DIRECTORY_PATH_ROOT) : 'plugins/ffmpeg/ffmpeg.exe');
     // remove 'inc' folder if script is already installed
     if (defined('BX_DOL')) {
         array_shift($this->aInstallPermissions);
     }
     $this->aPostInstallPermissions = array();
     if (defined('BX_DOL_INSTALL') && BX_DOL_INSTALL) {
         $this->bInstallScript = true;
         $this->sRootPath = BX_INSTALL_URL_ROOT;
     } else {
         $this->bInstallScript = false;
         $this->sRootPath = BX_DOL_URL_ROOT;
     }
 }
コード例 #5
0
 function __construct()
 {
     parent::__construct();
 }
コード例 #6
0
ファイル: check.php プロジェクト: Gotgot59/dolphin.pro
    $mixCheckResult = $sConditionalSuccess . "'Spy' module can't be upgraded, it must be uninstalled before the upgrade process, after upgrade is completed you can install it again.";
}
$iModuleId = $this->oDb->getOne("SELECT `ID` FROM `sys_modules` WHERE `uri` = 'map_profiles'");
if ($iModuleId && true === $mixCheckResult) {
    $mixCheckResult = $sConditionalSuccess . "'Profiles Map' module is replaced with new 'World Maps' module, you need to uninstall 'Profiles Map' module.";
}
$iModuleId = $this->oDb->getOne("SELECT `ID` FROM `sys_modules` WHERE `uri` = 'open_social'");
if ($iModuleId && true === $mixCheckResult) {
    $mixCheckResult = $sConditionalSuccess . "'Open Social' module is removed, you need to uninstall this module.";
}
$iModuleId = $this->oDb->getOne("SELECT `ID` FROM `sys_modules` WHERE `uri` = 'data_migration'");
if ($iModuleId && true === $mixCheckResult) {
    $mixCheckResult = $sConditionalSuccess . "'Data Migration from Dolphin 6.1.6' module is removed, you need to uninstall this module.";
}
bx_import('BxDolIO');
$oBxDolIO = new BxDolIO();
$isWritable = $oBxDolIO->isWritable('sitemap.xml');
if (!$isWritable && true === $mixCheckResult) {
    $mixCheckResult = $sConditionalSuccess . "'sitemap.xml' file is not writable, make it writable and try again";
}
$iModuleId = $this->oDb->getOne("SELECT `ID` FROM `sys_modules` WHERE `uri` = 'profiler'");
$isWritable = $oBxDolIO->isWritable('modules/boonex/profiler/log');
if ($iModuleId && !$isWritable && true === $mixCheckResult) {
    $mixCheckResult = $sConditionalSuccess . "'modules/boonex/profiler/log' directory is not writable, make it writable and try again";
}
$iModuleId = $this->oDb->getOne("SELECT `ID` FROM `sys_modules` WHERE `uri` = 'sites'");
$isWritable = $oBxDolIO->isWritable('modules/boonex/sites/data/images/thumbs');
if ($iModuleId && !$isWritable && true === $mixCheckResult) {
    $mixCheckResult = $sConditionalSuccess . "'modules/boonex/sites/data/images/thumbs' directory is not writable, make it writable and try again";
}
$iModuleId = $this->oDb->getOne("SELECT `ID` FROM `sys_modules` WHERE `uri` = 'forum'");
コード例 #7
0
ファイル: index.php プロジェクト: Arvindvi/dolphin
function checkPreInstallPermission(&$sError)
{
    global $aTemporalityWritableFolders;
    $sFoldersErr = $sFilesErr = $sErrorMessage = '';
    $oBxDolIO = new BxDolIO();
    require_once '../inc/classes/BxDolAdminTools.php';
    $oAdmTools = new BxDolAdminTools();
    $aInstallDirsMerged = array_merge($aTemporalityWritableFolders, $oAdmTools->aInstallDirs);
    foreach ($aInstallDirsMerged as $sFolder) {
        if (!$oBxDolIO->isWritable($sFolder)) {
            $sFoldersErr .= '&nbsp;&nbsp;&nbsp;' . $sFolder . ';<br />';
        }
    }
    foreach ($oAdmTools->aFlashDirs as $sFolder) {
        if (!$oBxDolIO->isWritable($sFolder)) {
            $sFoldersErr .= '&nbsp;&nbsp;&nbsp;' . $sFolder . ';<br />';
        }
    }
    if (strlen($sFoldersErr)) {
        $sError = 'error';
        $sErrorMessage .= '<strong>The following directories have inappropriate permissions</strong>:<br />' . $sFoldersErr;
    }
    foreach ($oAdmTools->aInstallFiles as $sFile) {
        if (!$oBxDolIO->isWritable($sFile)) {
            $sFilesErr .= '&nbsp;&nbsp;&nbsp;' . $sFile . ';<br /> ';
        }
    }
    foreach ($oAdmTools->aFlashFiles as $sFile) {
        if (strpos($sFile, 'ffmpeg') === false) {
            if (!$oBxDolIO->isWritable($sFile)) {
                $sFilesErr .= '&nbsp;&nbsp;&nbsp;' . $sFile . ';<br /> ';
            }
        } else {
            if (!$oBxDolIO->isExecutable($sFile)) {
                $sFilesErr .= '&nbsp;&nbsp;&nbsp;' . $sFile . ';<br /> ';
            }
        }
    }
    if (strlen($sFilesErr)) {
        $sError = 'error';
        $sErrorMessage .= '<strong>The following files have inappropriate permissions</strong>:<br />' . $sFilesErr;
    }
    return $sErrorMessage;
}
コード例 #8
0
 function BxDolInstallerUtils()
 {
     parent::BxDolIO();
 }