コード例 #1
0
ファイル: install1.php プロジェクト: dehvCurtis/phplist
   i.e.:
   steps-lib.php
   languages.php
   mysql.inc
   install-texts.inc
*/
echo "<!-- " . __FILE__ . " -->\n";
if ($_SESSION["session_ok"] != 1) {
    header("Location:?");
}
echo "<!-- " . __FILE__ . " -->\n";
/***************************************************
  This script use only the structure BOUNCE_DEF
***************************************************/
include "lib/parameters.inc";
genPHPVariables($bounce_def);
echo "<!-- " . __FILE__ . " -->\n";
if ($submited) {
    /* The code above take the mission to check some mail data
          enter by the user in the Step 1.
       */
    echo "<!-- " . __FILE__ . " -->\n";
    getPostVariables($bounce_def);
    $mail_test = processPopTest($message_envelope, $bounce_mailbox_host, $bounce_mailbox_user, $bounce_mailbox_password);
    echo "<!-- mail test: " . __FILE__ . " -->\n";
    if (!$mail_test) {
        echo "<!-- getting HTML elements: " . __FILE__ . " -->\n";
        $HTMLElements = getHTMLElements($bounce_def);
        $inTheSame = 1;
        echo "<!-- AFTER getting HTML elements: " . __FILE__ . " -->\n";
        $msg = $GLOBALS["I18N"]->get("Connection refused, check your host, user or password");
コード例 #2
0
ファイル: install0.php プロジェクト: dehvCurtis/phplist
   that parent-script have serveral included files
   witch contain some functions used in this one.
   i.e.:
   steps-lib.php
   languages.php
   mysql.inc
   install-texts.inc
*/
if ($_SESSION["session_ok"] != 1) {
    header("Location:?");
}
/***************************************************
  This script use only the structure DATABASE_DEF
***************************************************/
include "lib/parameters.inc";
genPHPVariables($database_def, "BASIC");
if ($submited) {
    /* The code above take the mission to validate the database data
          enter by the user in the Step 0.
       */
    getPostVariables($database_def);
    $errno = check_connection($database_host, $database_user, $database_password, $database_name);
    $errno_arr = explode("|", $errno);
    $msg = $errno_arr[1];
    $_SESSION['dbCreatedSuccesfully'] = $errno_arr[2];
    if ($errno_arr[0] > 0) {
        $HTMLElements = getHTMLElements($database_def);
        $inTheSame = 1;
    } else {
        setSessionData($database_def);
        $inTheSame = 0;