Not signed in (Sign In)

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

    • CommentAuthorLyrix
    • CommentTimeNov 7th 2006
     
    I have installed Plogger on my server and it works really perfect.
    But now, i want to disable the admin log screen.
    I have a own cms admin page and want to integrate plogger into it.
    I will secure the plogger admin folder with an .htacces file.

    Does anybody know how to disable the login screen of plogger?
    • CommentAuthorLyrix
    • CommentTimeNov 10th 2006
     
    I solved the problem myself

    Just delete this part of the Plog-globals.php file and it will never ask voor the login screen again.

    if ($_REQUEST["action"] == "log_in"){
    $query = "SELECT * FROM `".$TABLE_PREFIX."config`";
    $result = run_query($query);
    $row = mysql_fetch_assoc($result);

    if (($_REQUEST["username"] == $row["admin_username"]) && (md5($_REQUEST["password"]) == $row["admin_password"])){
    $_SESSION["plogger_logged_in"] = true;
    }
    else{
    header("Location: index.php?errorcode=1");
    exit;
    }
    }
    elseif($_REQUEST["action"] == "log_out"){
    $_SESSION = array();
    session_destroy();
    }

    if (!isset($_SESSION["plogger_logged_in"])){
    header("Location: index.php");
    exit;
    }