Exemplo n.º 1
0
icms_core_Filesystem::chmod("../mainfile.php", 0444);
if (defined('XOOPS_TRUST_PATH') && XOOPS_TRUST_PATH != '') {
    icms_core_Filesystem::chmod(XOOPS_TRUST_PATH, 0777);
    icms_core_Filesystem::chmod(XOOPS_ROOT_PATH . '/modules', 0777);
    icms_core_Filesystem::chmod("/modules/protector/root/modules/protector", 0777);
    icms_core_Filesystem::chmod("/modules/protector/trust_path/modules", 0777);
    if (!is_dir(XOOPS_ROOT_PATH . '/modules/protector')) {
        icms_core_Filesystem::copyRecursive(XOOPS_ROOT_PATH . '/install/modules/protector/root/modules/protector', XOOPS_ROOT_PATH . '/modules/protector');
    }
    if (!is_dir(XOOPS_TRUST_PATH . '/modules')) {
        icms_core_Filesystem::copyRecursive(XOOPS_ROOT_PATH . '/install/modules/protector/trust_path/modules', XOOPS_TRUST_PATH . '/modules');
    }
    if (!is_dir(XOOPS_TRUST_PATH . '/modules/protector')) {
        icms_core_Filesystem::copyRecursive(XOOPS_ROOT_PATH . '/install/modules/protector/trust_path/modules/protector', XOOPS_TRUST_PATH . '/modules/protector');
    }
    icms_core_Filesystem::chmod(XOOPS_ROOT_PATH . '/modules', 0755);
}
$wizard->setPage('tablescreate');
$pageHasForm = true;
$pageHasHelp = false;
$vars =& $_SESSION['settings'];
include_once "../mainfile.php";
include_once './class/dbmanager.php';
$dbm = new db_manager();
if (!$dbm->isConnectable()) {
    $wizard->redirectToPage('-3');
    exit;
}
$process = '';
if (!$dbm->tableExists('users')) {
    $process = 'create';
Exemplo n.º 2
0
/**
 * Change the permission of a file or folder
 *
 * @author	Newbb2 developpement team
 * @param	string	$target  target file or folder
 * @param	int		$mode	permission
 * @return   bool	Returns true on success, false on failure
 *
 * @deprecated	Use icms_core_Filesystem::chmod, instead
 * @todo		Remove in version 1.4 - all occurrences have been removed from the core
 */
function icms_chmod($target, $mode = 0777)
{
    icms_core_Debug::setDeprecated('icms_core_Filesystem::chmod', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
    return icms_core_Filesystem::chmod($target, $mode);
}
Exemplo n.º 3
0
 * Installer introduction page
 *
 * See the enclosed file license.txt for licensing information.
 * If you did not receive this file, get it at http://www.fsf.org/copyleft/gpl.html
 *
 * @copyright    The XOOPS project http://www.xoops.org/
 * @license      http://www.fsf.org/copyleft/gpl.html GNU General Public License (GPL)
 * @package		installer
 * @since        Xoops 2.3.0
 * @author		Haruki Setoyama  <*****@*****.**>
 * @author 		Kazumi Ono <*****@*****.**>
 * @author		Skalpa Keo <*****@*****.**>
 * @version		$Id: page_start.php 20098 2010-09-07 16:19:19Z skenow $
 */
/**
 *
 */
require_once 'common.inc.php';
if (!defined('XOOPS_INSTALL')) {
    exit;
}
icms_core_Filesystem::chmod("../modules", 0777);
icms_core_Filesystem::chmod("../mainfile.php", 0777);
icms_core_Filesystem::chmod("../uploads", 0777);
icms_core_Filesystem::chmod("../templates_c", 0777);
icms_core_Filesystem::chmod("../cache", 0777);
$wizard->setPage('start');
$pageHasForm = false;
$content = "";
include "./language/{$wizard->language}/welcome.php";
include 'install_tpl.php';