Visualizzazione risultati 1 fino 5 di 5

Discussione: Errore di sintassi (era "Problema...")

  1. #1
    Guest

    Exclamation Errore di sintassi (era "Problema...")

    Salve tutti..
    qst è il mio sito www.aoussar.altervista.org e appena entro mi si appare qst messaggio:
    Parse error: syntax error, unexpected T_DEC, expecting T_VARIABLE or '$' in /membri/aoussar/index.php on line 3

    ho provato a contrllare l'index, ma nn riesco a individuare l'errore..
    mi poteti dire cosa devo fare per recuperare il sito..anke xke nn ho fatto neake il backup.
    grazie
    Ultima modifica di debug : 01-08-2007 alle ore 16.37.17

  2. #2
    Ospite Guest

    Predefinito

    Posta il contenuto di index.php.

    Non serve scrivere a caratteri cubitali,non siamo ancora ciechi.

  3. #3
    Guest

    Predefinito

    grazie1000 probid x la tua risp
    [B]questo è il contenuto dell'index[/B]

    Codice PHP:
    <?php
    //
    -------------------------------------------------------------------------//
    // Nuked-KlaN - PHP Portal
    //
    // [url]http://www.nuked-klan.org[/url] //
    // -------------------------------------------------------------------------//
    // This program is free software. you can redistribute it and/or modify //
    // it under the terms of the GNU General Public License as published by //
    // the Free Software Foundation; either version 2 of the License. //
    // -------------------------------------------------------------------------//
    define ("INDEX_CHECK", 1);

    include (
    "conf.inc.php");

    if (!
    defined("NK_OPEN"))
    {
    echo
    "<br /><br /><br /><div style=\"text-align: center;\"><big>Sorry, this website is momently closed, Please try again later.</big></div>";
    exit();
    }

    if (!
    defined("NK_INSTALLED"))
    {
    if (
    is_file("install.php"))
    {
    header("location: install.php");
    }
    }
    else
    {
    if (
    is_file("install.php") || is_file("update.php"))
    {
    echo
    "<br /><br /><br /><div style=\"text-align: center;\"><big>Warning ! <b>install.php</b> and <b>update.php</b> must be removed before continuing !</big></div>";
    exit();
    }
    }

    include (
    "nuked.php");

    $session = session_check();
    if (
    $session == 1) $user = secure();
    else
    $user = "";

    $check_ip = banip();

    if (
    $check_ip != "")
    {
    $url_ban = "ban.php?ip_ban=" . $check_ip;
    redirect($url_ban, 0);
    exit();
    }

    if (isset(
    $nuked_nude) && $nuked_nude != "") $im_file = $nuked_nude;
    else if (isset(
    $page) && $page != "") $im_file = $page;
    else
    $im_file = "index";

    // Securite par phpSecure.info
    if (ereg("\.\.", $theme) || ereg("\.\.", $language) || ereg("\.\.", $file) || ereg("\.\.", $im_file) || eregi("http\:\/\/", $file) || eregi("http\:\/\/", $im_file))
    {
    die(
    "<br /><br /><br /><div style=\"text-align: center;\"><big>What are you trying to do ?</big></div>");
    }

    $file = trim($file);
    $im_file = trim($im_file);
    $theme = trim($theme);
    $language = trim($language);
    // Fin

    if ($nuked['nk_status'] == "closed" && $user[1] < 9 && $op != "login_screen" && $op != "login_message" && $op != "login")
    {
    include (
    "themes/" . $theme . "/colors.php");
    translate("lang/" . $language . ".lang.php");

    echo
    "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"
    . "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"fr\">\n"
    . "<head><title>" . $nuked['name'] . " :: " . $nuked['slogan'] . " ::</title>\n"
    . "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />\n"
    . "<meta http-equiv=\"content-style-type\" content=\"text/css\" />\n"
    . "<link title=\"style\" type=\"text/css\" rel=\"stylesheet\" href=\"themes/" . $theme . "/style.css\" /></head>\n"
    . "<body style=\"background: " . $bgcolor2 . ";\"><div><br /><br /><br /><br /><br /><br /><br /><br /></div>
    \n"
    . "<table style=\"margin-left: auto;margin-right: auto;text-align: left;background: " . $bgcolor3 . ";\" cellspacing=\"1\" cellpadding=\"20\">\n"
    . "<tr><td style=\"background: " . $bgcolor1 . ";\" align=\"center\"><big><b>" . $nuked['name'] . " - " . $nuked['slogan'] . "</b></big><br /><br />\n"
    . _SITECLOSED . "</td></tr></table></body></html>";
    }
    else if ((
    $file == "Admin" || $page == "admin" || $nuked_nude == "admin") && $session_admin == 0)
    {
    include (
    "themes/" . $theme . "/colors.php");
    include (
    "themes/" . $theme . "/theme.php");
    translate("lang/" . $language . ".lang.php");

    if (!isset(
    $nuked_nude)) top();

    include(
    "modules/Admin/login.php");

    if (!isset(
    $nuked_nude))
    {
    footer();
    include(
    "Includes/copyleft.php");
    }
    }
    else
    {
    if (
    $file != "Admin" && $page != "admin" && $nuked_nude != "admin" && $op != "smilies" && $session_admin == 1) setcookie($cookie_admin, "", time() - 86400);

    include (
    "themes/" . $theme . "/colors.php");
    include (
    "themes/" . $theme . "/theme.php");
    translate("lang/" . $language . ".lang.php");

    visits();

    if (!isset(
    $nuked_nude))
    {

    if (
    defined("NK_GZIP") && @extension_loaded('zlib') && !@ini_get('zlib.output_compression') && @phpversion() >= "4.0.4")
    {
    ob_start("ob_gzhandler");
    }

    top();

    echo
    "<script type=\"text/javascript\" src=\"infobulle.js\"></script>"
    . "<script type=\"text/javascript\">InitBulle('" . $bgcolor2 . "', '" . $bgcolor3 . "', 2);</script>";


    if (
    $nuked['nk_status'] == "closed" && $user[1] == 9)
    {
    echo
    "<table style=\"background: " . $bgcolor3 . ";\" width=\"100%\" cellspacing=\"1\" cellpadding=\"8\">\n"
    ."<tr><td style=\"background: " . $bgcolor2 . ";\" ><big><b>" . _YOURSITEISCLOSED . " :<br /><br/ >" . $nuked['url'] . "/index.php?file=User&amp;op=login_screen</b></big></td></tr></table><br />\n";
    }
    }

    if (
    is_file("modules/" . $file . "/" . $im_file . ".php"))
    {
    include(
    "modules/" . $file . "/" . $im_file . ".php");
    }
    else
    {
    include(
    "modules/404/index.php");
    }

    if (!isset(
    $nuked_nude))
    {
    if (
    $user[5] > 0 && !isset($_COOKIE['popup']) && $file != "User" && $file != "Userbox")
    {
    echo
    "<div id=\"popup_dhtml\" style=\"position:absolute;top:0;left:0;visibility:visible;z-index:10\"></div>\n"
    . "<script type=\"text/javascript\" src=\"popup.js\"></script>\n"
    . "<script type=\"text/javascript\">popup('" . $bgcolor2 . "', '" . $bgcolor3 . "', '" . _NEWMESSAGESTART . "&nbsp;" . $user[5] . "&nbsp;" . _NEWMESSAGEEND . "', '" . _CLOSEWINDOW . "', 'index.php?file=Userbox', 350, 100);</script>\n";
    }

    footer();
    include(
    "Includes/copyleft.php");
    }
    }

    ?>
    Ultima modifica di funcool : 01-08-2007 alle ore 17.54.59

  4. #4
    Ospite Guest

    Predefinito

    Alla riga tre,metti "//" (senza virgolette) prima di
    Codice PHP:
    -------------------------------------------------------------------------//

    Ciao!

  5. #5
    Guest

    Predefinito

    grazie1000 mi hai risolto il poblema..

Regole di scrittura

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