Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorKAES
    • CommentTimeSep 2nd 2010 edited
     
    I updated the the code shown here:

    http://core.trac.plogger.org/changeset/607/trunk/plog-load-config.php

    Problem is there is another if statement that doesn't get closed. I don't know how this works so I wouldn't have a clue how to fix this.

    This is my code:

    // if mod_rewrite is on and we're not embedded, remove the file basename

    if ($config['use_mod_rewrite'] == 1 && $config['embedded'] == 0) {
    $config['baseurl'] = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/';
    $config['baseurl'] = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
    // Verify URL for a trailing slash. If not, add one.
    if ($config['baseurl']{strlen($config['baseurl'])-1} != '/') {
    $config['baseurl'] = $config['baseurl'].'/';
    }
    // otherwise just use our cleaned up version of $_SERVER['PHP_SELF'] from plog-globals.php
    } else {

    // Remove plog-admin/ from the end, if present .. is there a better way to determine the full url?
    // Do we need this anymore?
    $is_admin = strpos($config['baseurl'], 'plog-admin/');
    if ($is_admin !== false) {
    $config['baseurl'] = substr($config['baseurl'], 0, $is_admin);
    }

    What do I do? the file has syntax errors and I get an error when using.
    I am using the latest version of plogger
    thanks