Ankündigung

Einklappen
Keine Ankündigung bisher.

2 Probleme

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • 2 Probleme

    Hallo,

    vielleicht könnt Ihr mir ja helfen.

    1. Problem:
    Fatal error: Call to a member function on a non-object in /home/www/doc/6005/xxx.net/xxx.net/www/mainfile.php on line 84


    hier ein Ausschnitt aus dem Quellcode:

    <?php

    $phpver = phpversion();
    if ($phpver >= '4.0.4pl1' && strstr($HTTP_USER_AGENT,'compatible')) {
    if (extension_loaded('zlib')) {
    ob_end_clean();
    ob_start('ob_gzhandler');
    }
    } else if ($phpver > '4.0') {
    if (strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')) {
    if (extension_loaded('zlib')) {
    $do_gzip_compress = TRUE;
    ob_start();
    ob_implicit_flush(0);
    //header('Content-Encoding: gzip');
    }
    }
    }

    $phpver = explode(".", $phpver);
    $phpver = "$phpver[0]$phpver[1]";
    if ($phpver >= 41) {
    $PHP_SELF = $_SERVER['PHP_SELF'];
    }

    if (!ini_get("register_globals")) {
    import_request_variables('GPC');
    }

    foreach ($_GET as $secvalue) {
    if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||
    (eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||
    (eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||
    (eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||
    (eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) ||
    (eregi("<[^>]*style*\"?[^>]*>", $secvalue)) ||
    (eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||
    (eregi("\([^>]*\"?[^)]*\)", $secvalue)) ||
    (eregi("\"", $secvalue))) {
    die ("<center><img src=images/logo.gif>

    The html tags you attempted to use are not allowed

    [ <a href=\"javascript:history.go(-1)\">Go Back</a> ]");
    }
    }

    foreach ($_POST as $secvalue) {
    if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*style*\"?[^>]*>", $secvalue))) {
    die ("<center><img src=images/logo.gif>

    The html tags you attempted to use are not allowed

    [ <a href=\"javascript:history.go(-1)\">Go Back</a> ]");
    }
    }

    if (eregi("mainfile.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
    }

    if ($forum_admin == 1) {
    require_once("../../../config.php");
    require_once("../../../db/db.php");
    } elseif ($inside_mod == 1) {
    require_once("../../config.php");
    require_once("../../db/db.php");
    } else {
    require_once("config.php");
    require_once("db/db.php");
    /* FOLLOWING TWO LINES ARE DEPRECATED BUT ARE HERE FOR OLD MODULES COMPATIBILITY */
    /* PLEASE START USING THE NEW SQL ABSTRACTION LAYER. SEE MODULES DOC FOR DETAILS */
    require_once("includes/sql_layer.php");
    $dbi = sql_connect($dbhost, $dbuname, $dbpass, $dbname);
    }

    $mainfile = 1;
    $sql = "SELECT sitename, nukeurl, site_logo, slogan, startdate, adminmail, anonpost, Default_Theme, foot1, foot2, foot3, commentlimit, anonymous, minpass, pollcomm, articlecomm, broadcast_msg, my_headlines, top, storyhome, user_news, oldnum, ultramode, banners, backend_title, backend_language, language, locale, multilingual, useflags, notify, notify_email, notify_subject, notify_message, notify_from, footermsgtxt, email_send, attachmentdir, attachments, attachments_view, download_dir, defaultpopserver, singleaccount, singleaccountname, numaccounts, imgpath, filter_forward, moderate, admingraphic, httpref, httprefmax, CensorMode, CensorReplace, copyright, Version_Num FROM ".$prefix."_config";
    $result = $db->sql_query($sql);
    $row = $db->sql_fetchrow($result);
    $sitename = $row[sitename];
    $nukeurl = $row[nukeurl];
    $site_logo = $row[site_logo];
    $slogan = $row[slogan];
    $startdate = $row[startdate];
    $adminmail = $row[adminmail];
    $anonpost = $row[anonpost];
    $Default_Theme = $row[Default_Theme];
    $foot1 = $row[foot1];
    $foot2 = $row[foot2];
    $foot3 = $row[foot3];
    Problem 2:

    Parse error: parse error, unexpected $ in /home/www/doc/6005/xxx/xxx.net/www/db/db.php on line 82

    Quellcode:

    <?php


    global $forum_admin;
    if ($forum_admin == 1) {
    $the_include = "../../../db";
    } elseif ($inside_mod == 1) {
    $the_include = "../../db";
    } else {
    $the_include = "db";
    }

    switch($dbtype) {

    case 'MySQL':
    include("".$the_include."/mysql.php");
    break;

    case 'mysql4':
    include("".$the_include."/mysql4.php");
    break;

    case 'postgres':
    include("".$the_include."/postgres7.php");
    break;

    case 'mssql':
    include("".$the_include."/mssql.php");
    break;

    case 'oracle':
    include("".$the_include."/oracle.php");
    break;

    case 'msaccess':
    include("".$the_include."/msaccess.php");
    break;

    case 'mssql-odbc':
    include("".$the_include."/mssql-odbc.php");
    break;

    case 'db2':
    include("".$the_include."/db2.php");
    break;
    danke im vorraus

    Gruß

    Jörg


  • #2
    phpnuke oder postnuke sind doch voll von Fehlern...

    beim 2. Problem gibst du uns 45 Zeichen Quellcode, wo aber der Fehler in der 82. steht...

    Kommentar

    Lädt...
    X