kostenloser Webspace werbefrei: lima-city


brauche Hilfe - php Scriptfehler

lima-cityForumProgrammiersprachenPHP, MySQL & .htaccess

  1. Autor dieses Themas

    s****r

    Ich habe nach langer Arbeit und viel Anpassung von php-files
    nun Contenido 4.4.5 installiert bekommen.

    Leider scheinen 2 php Files nicht richtig zu funktionieren,
    hab grad ein ziemliches Brett vorm Kopf, in den Installationsfiles
    hab ich es schlie?lich auch hinbekommen. Das Backend l?uft
    einwandfrei, bis auf die Vorschau.

    Hier die Seite auf der die Fehler auftreten:

    http://sutter.xardas.lima-city.de/cms/front_content.php

    Und hier die zugeh?rigen fehlerhaften .php files:

    front_contend.php
    ---------------------------------------------------------------------
    <?php

    /******************************************
    * File : front_content.php
    * Project : Contenido
    * Descr : Contenido Frontend
    *
    * Author : Olaf Niemann,
    * Jan Lengowski
    *
    * Created : 21.01.2003
    * Modified : 21.01.2003
    *
    * ? four for business AG
    ******************************************/
    include_once ("config.php");
    include_once ($contenido_path . "includes/config.php");
    cInclude("includes", "cfg_sql.inc.php");
    cInclude("includes", "functions.general.php");
    cInclude("includes", "functions.i18n.php");
    cInclude("includes", "functions.tpl.php");
    cInclude("includes", "functions.con.php");
    cInclude("includes", "functions.mod.php");
    cInclude("includes", "functions.api.php");
    cInclude("classes", 'class.inuse.php');
    cInclude("classes", 'class.user.php');
    cInclude("classes", 'class.notification.php');
    cInclude("classes", 'class.table.php');

    /* Include cronjob-Emulator */
    $oldpwd = getcwd();
    chdir($cfg["path"]["contenido"].$cfg["path"]["cronjobs"]);
    cInclude("includes", "pseudo-cron.inc.php");
    chdir($oldpwd);


    if ($contenido)
    {

    //Backend
    page_open(array('sess' => 'Contenido_Session',
    'auth' => 'Contenido_Challenge_Crypt_Auth',
    'perm' => 'Contenido_Perm'));

    } else {

    //Frontend
    page_open(array('sess' => 'Contenido_Frontend_Session',
    'auth' => 'Contenido_Frontend_Challenge_Crypt_Auth',
    'perm' => 'Contenido_Perm'));

    }

    $db = new DB_Contenido;

    $sess->register("cfgClient");
    $sess->register("errsite_idcat");
    $sess->register("errsite_idart");
    $sess->register("encoding");

    if ($cfgClient["set"] != "set")
    {
    rereadClients();
    }

    $sql = "SELECT
    idlang,
    encoding
    FROM
    ".$cfg["tab"]["lang"];

    $db->query($sql);

    while ($db->next_record())
    {
    $encoding[$db->f("idlang")] = $db->f("encoding");
    }
    ....
    ---------------------------------------------------------------------------------
    Der Fehler liegt wohl im chdir, aber wie kann ich das hier
    l?sen ???


    session.inc (Auszug)
    ---------------------------------------------------------------------------------
    function put_headers() {
    # Allowing a limited amount of caching, as suggested by
    # Padraic Renaghan on phplib@lists.netuse.de.
    #
    # Note that in HTTP/1.1 the Cache-Control headers override the Expires
    # headers and HTTP/1.0 ignores headers it does not recognize (e.g,
    # Cache-Control). Mulitple Cache-Control directives are split into
    # mulitple headers to better hilfe/support" title="Support">support MSIE 4.x.
    #
    # Added pre- and post-check for MSIE 5.x as suggested by R.C.Winters,
    # see http://msdn.microsoft.com/workshop/author/perf/perftips.asp#Use%20Cache-Control%20Extensions
    # for details
    switch ($this->allowcache) {

    case "passive":
    $mod_gmt = gmdate("D, d M Y H:i:s", getlastmod()) . " GMT";
    header("Last-Modified: " . $mod_gmt);
    # possibly ie5 needs the pre-check line. This needs testing.
    header("Cache-Control: post-check=0, pre-check=0");
    break;

    case "public":
    $exp_gmt = gmdate("D, d M Y H:i:s", time() + $this->allowcache_expire * 60) . " GMT";
    $mod_gmt = gmdate("D, d M Y H:i:s", getlastmod()) . " GMT";
    header("Expires: " . $exp_gmt);
    header("Last-Modified: " . $mod_gmt);
    header("Cache-Control: public");
    header("Cache-Control: max-age=" . $this->allowcache_expire * 60);
    break;

    case "private":
    $mod_gmt = gmdate("D, d M Y H:i:s", getlastmod()) . " GMT";
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    header("Last-Modified: " . $mod_gmt);
    header("Cache-Control: private");
    header("Cache-Control: max-age=" . $this->allowcache_expire * 60);
    header("Cache-Control: pre-check=" . $this->allowcache_expire * 60);
    break;

    default:
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
    header("Cache-Control:no-store, no-cache, must-revalidate");
    header("Cache-Control: post-check=0, pre-check=0", false);
    header("Cache-control: private, no-cache");
    header("Pragma: no-cache");

    break;
    }
    }

    ##
    ## Garbage collection
    ##
    ## Destroy all session data older than this
    ##
    function gc() {
    srand(time());
    if ((rand()%100) < $this->gc_probability) {
    $this->that->ac_gc($this->gc_time, $this->name);
    }
    }

    ##
    ## Initialization
    ##

    function start($sid = "") {
    $this->set_container();
    $this->set_tokenname();
    $this->put_headers();
    $this->release_token($sid);
    $this->get_id($sid);
    $this->thaw();
    $this->gc();
    }

    }
    ?>

    ---------------------------------------------------
    Bin f?r jede Hilfe dankbar !
  2. Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden!

    lima-city: Gratis werbefreier Webspace für deine eigene Homepage

Dir gefällt dieses Thema?

Über lima-city

Login zum Webhosting ohne Werbung!