Visualizzazione risultati 1 fino 1 di 1

Discussione: Errore installazione Aurora gpt

  1. #1
    Guest

    Exclamation Errore installazione Aurora gpt

    Salve,vorrei riaprire questa domanda http://forum.it.altervista.org/probl...rrore-php.html aggiungendo che ho gli stessi errori dell'utente e che ho installato lo script AuroraGPT PTS versione 4.0.1 , questo è il link dell'errore http://tookleinptr.altervista.org/install/install.php , questo è il file che da quanto ho capito causa l'errore
    Codice PHP:
    <?


    function backLink($step) {
    global
    $Db1;
    if(
    $Db1) $Db1->sql_close();
    echo
    "<hr>There was an error... <a href='install.php?step=$step'>Go Back To Step $step ?</a>";
    }

    function
    nextLink($step) {
    global
    $Db1;
    if(
    $Db1) $Db1->sql_close();
    echo
    "<hr><a href='install.php?step=$step'>Continue To Step $step</a>";
    }

    function
    loadDB() {
    global
    $Db1, $DBHost, $DBDatabase, $DBUser, $DBPassword, $tripError;
    include(
    PATH."config.php");
    echo
    "<strong>Connection To DB: </strong>";
    $Db1 = new DB_sql;
    if(
    $Db1->connect($DBHost, $DBDatabase, $DBUser, $DBPassword)) {
    echo
    "<em class='ok'>OK!</em><br />";
    return
    true;
    }
    else {
    echo
    "<em class='error'>Error!</em><br />";
    $tripError=true;
    backLink(1);
    }
    return
    false;
    }

    function
    iif($var1, $text="", $else="") {
    if(
    $var1) {
    return
    $text;
    }
    else {
    return
    $else;
    }
    }

    function
    saveModules() {
    global
    $Db1, $_POST;
    $Db1->query("UPDATE admin_modules SET active='0'");
    foreach(
    $_POST['checklist'] as $k=>$v) {
    $Db1->query("UPDATE admin_modules SET active='1' WHERE id='$k'");
    }
    return
    true;
    }


    ?>
    Questo è il file dell'installazione sempre presente nell'errore a quanto pare

    Codice PHP:
    <?

    if(function_exists("array_combine")) $v="php5"; else $v="php4";

    $base = $_SERVER['DOCUMENT_ROOT'] . $_SERVER['PHP_SELF'];
    $base = substr($base ,0,strpos($base, "install/install.php") );
    define("PATH", $base);

    require(
    PATH."install/includes/".$v."/functions.php");
    require(
    PATH."includes/mysql.php");
    require(
    PATH."install/includes/".$v."/configure.php");
    require(
    PATH."install/includes/".$v."/tables.php");
    require(
    PATH."install/includes/".$v."/prefill.php");
    require(
    PATH."install/includes/".$v."/xmlParser.php");



    // variables
    if($_GET['step']) $step = $_GET['step']; else $step = 1;
    $tripError=false;

    //objects
    $setupConfig = new setupConfig();
    $setupTables = new setupTables();
    $setupPrefill = new setupPrefill();
    //$Db1; // gets assigned in loadDB()

    include(PATH."install/includes/templates/header.php");
    switch(
    $step) {
    case
    1:
    echo
    "<h1>Basic Configuration</h1>";
    if(
    $setupConfig->isConfig() && !$setupConfig->isWritable()) echo "<div class='alert'>Alert: There is already a config.php present that is not writable! Please chmod this file to 775 or delete it to continue!</div>";
    $setupConfig->loadBaseConfig();
    include(
    PATH."install/includes/templates/configForm.php");
    echo
    "<div class='alert'>This is the first release of this installer. If you are upgrading a site, please make a backup of the database first -- just in case!<br /><br />Note: All custom admin menu items will be deleted during an upgrade!</div>";
    break;
    case
    2:
    echo
    "<h1>Verifying Configuration</h1>";
    echo
    "<strong>Testing Database Configuration: </strong>";
    $setupConfig->setConfig($_POST['formHost'],$_POST['formDb'],$_POST['formUser'],$_POST['formPwd'],$_POST['formKey']);
    if(
    $setupConfig->testConfig()) echo "<em class='ok'>Connected!</em><br />";
    else {echo
    "<em class='error'>".$setupConfig->error."</em><br />"; $tripError=true; backLink(1); break;}
    echo
    "<strong>Saving Configuration: </strong>";
    if(
    $setupConfig->createConfig()) echo "<em class='ok'>config.php Saved!</em><br />";
    else {echo
    "<em class='error'>Error! Check write permissions for config.php</em><br />"; $tripError=true; backLink(1); break;}
    echo
    nextLink(3);
    break;
    case
    3:
    echo
    "<h1>Setup Database Tables</h1>";
    if(!
    loadDB()) break;
    echo
    "<strong>Loading XML Data: </strong>";
    if(
    $setupTables->parseXML()) echo "<em class='ok'>OK!</em><br />";
    else {echo
    "<em class='error'>Error!</em><br />"; $tripError=true; backLink(1); break;}
    echo
    "<strong>Updating Tables: </strong>";
    if(
    $setupTables->setupStructure()) echo "<em class='ok'>Done!</em><br />";
    else {echo
    "<em class='error'>Error!</em><br />"; $tripError=true; backLink(1); break;}
    echo
    nextLink(4);
    break;
    case
    4:
    echo
    "<h1>Fill Database Tables</h1>";
    if(!
    loadDB()) break;
    echo
    "<strong>Clearing Menu Data: </strong>";
    if(
    $setupPrefill->clearMenu()) echo "<em class='ok'>OK!</em><br />";
    else {echo
    "<em class='error'>Error!</em><br />"; $tripError=true; backLink(1); break;}
    echo
    "<strong>Loading XML Data: </strong>";
    if(
    $setupPrefill->parseXML()) echo "<em class='ok'>OK!</em><br />";
    else {echo
    "<em class='error'>Error!</em><br />"; $tripError=true; backLink(1); break;}
    echo
    "<strong>Saving Data: </strong>";
    if(
    $setupPrefill->doPrefill()) echo "<em class='ok'>OK!</em><br />";
    else {echo
    "<em class='error'>Error!</em><br />"; $tripError=true; backLink(1); break;}
    echo
    nextLink(5);
    break;
    case
    5:
    echo
    "<h1>Set Admin Menu Modules</h1>";
    include(
    PATH."install/includes/templates/modulesForm.php");
    break;
    case
    6:
    echo
    "<h1>Saving Admin Menu Modules</h1>";
    if(!
    loadDB()) break;
    echo
    "<strong>Saving Modules</strong>";
    if(
    saveModules()) echo "<em class='ok'>OK!</em><br />";
    else {echo
    "<em class='error'>Error!</em><br />"; $tripError=true; backLink(1); break;}
    echo
    nextLink(7);
    break;
    case
    7:
    echo
    "<h1>Were Done!</h1>";
    echo
    "<p>The installation/upgrade functions here are done!</p><p> Be sure to delete the <em class='ok'>install</em> directory when you are done!</p>";
    break;
    }
    include(
    PATH."install/includes/templates/footer.php");


    ?>
    Questo è per coloro che dicono che non è possibile installarlo su Altervista http://demoauroa.altervista.org/
    Ultima modifica di andreafallico : 03-07-2012 alle ore 18.46.06

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •