예제 #1
0
/*
 * ByteHoard 2.1
 * Copyright (c) Andrew Godwin & contributors 2004
 *
 *   Installer2 - Page File
 *   $Id$
 *
 */
$pagearray = array();
$pagearray['title'] = $bhlang['install:title:bytehoard_installation'] . " :: " . $bhlang['install:title:systemchecks'];
$pcrecheck = bhi_check_pcre();
$safemodecheck = bhi_check_safe_mode();
$phpcheck = bhi_check_php();
$imagesystems += $gdcheck = bhi_check_gd();
$imagesystems += $imcheck = bhi_check_imagemagick();
$cipcheck = bhi_check_permissions("../config.inc.php");
$cachecheck = bhi_check_permissions("../cache/writetest");
$pagearray['content'] = $bhlang['install:text:checking_system'] . "<br><br><b>" . $bhlang['install:label:php'] . "</b><br>" . $bhlang['install:check:php'];
if ($phpcheck == false) {
    $pagearray['content'] .= "<span class='failed'>" . $bhlang['install:check:failedphp'] . "</span>";
    $fatals += 1;
} elseif ($phpcheck == 5) {
    $pagearray['content'] .= "<span class='failedoption'>" . $bhlang['install:check:php5'] . "</span>";
    $warnings += 1;
} elseif ($phpcheck == 4) {
    $pagearray['content'] .= "<span class='passed'>" . $bhlang['install:check:ok'] . "</span>";
} else {
    $pagearray['content'] .= "<span class='failed'>" . $bhlang['install:check:failedphp'] . "</span>";
    $fatals += 1;
}
예제 #2
0
}
bh_changeconfig("layout", "horizon");
bh_changeconfig("skin", "horizonblue");
bh_changeconfig("usetrash", "1");
bh_changeconfig("limitthumbs", "1");
bh_changeconfig("sitename", "ByteHoard");
bh_changeconfig("siteslogan", "");
bh_changeconfig("signupmoderation", "1");
bh_changeconfig("profileoptions", "fullname,email");
bh_changeconfig("maxexpires", "60");
bh_changeconfig("lang", "en");
bh_changeconfig("authmodule", "bytehoard.inc.php");
bh_changeconfig("filesystemmodule", "filesystem");
bh_changeconfig("signupdisabled", "0");
bh_changeconfig("fromemail", 'do_not_reply@' . $_SERVER['SERVER_NAME']);
if (bhi_check_imagemagick() == TRUE) {
    bh_changeconfig("imageprog", "imagemagick");
    bh_changeconfig("syspath_convert", "convert");
} elseif (bhi_check_gd() == TRUE) {
    bh_changeconfig("imageprog", "gd");
}
bh_changeconfig("bhfilepath", realpath("../"));
# LOGACTIONS
insert_bhdb("logactions", array("type" => "BH_ERROR", "action" => "onscreen", "parameters" => "error"));
insert_bhdb("logactions", array("type" => "BH_WARNING", "action" => "onscreen", "parameters" => "warning"));
insert_bhdb("logactions", array("type" => "BH_NOTICE", "action" => "onscreen", "parameters" => "notice"));
insert_bhdb("logactions", array("type" => "BH_ONSCREEN", "action" => "onscreen", "parameters" => "warning"));
insert_bhdb("logactions", array("type" => "BH_LOGOUT", "action" => "logtofile"));
insert_bhdb("logactions", array("type" => "BH_LOGIN_SUCCESS", "action" => "logtofile"));
insert_bhdb("logactions", array("type" => "BH_LOGIN_FAILURE", "action" => "logtofile"));
insert_bhdb("logactions", array("type" => "BH_FILE_UPLOAD", "action" => "logtofile"));