Show
Ignore:
Timestamp:
06/05/08 17:18:12 (6 months ago)
Author:
sidtheduck
Message:

+ Lots of sorting fixes

  • Now sorting is the same throughout . defaults from Admin->Options are used on both Admin->Manage and front-end gallery . plogger_init_picture order = plogger_init_pictures order . sorting fixes from Import display to actually saving the files

+ Additional check for safe_mode workaround to see if ftp_connect function exists in compiled PHP installation before attempting the workaround

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/admin/plog-admin.php

    r536 r546  
    55//session_register ("entries_per_page"); 
    66 
    7 require_once("../plog-load_config.php");                                        // load configuration variables from database 
    8 //require_once("../plog-functions.php"); 
    9 //require_once("../plog-globals.php"); 
     7// load configuration variables from database, plog-globals, & plog-functions 
     8require_once(dirname(dirname(__FILE__))."/plog-load_config.php"); 
     9 
    1010 
    1111if (isset($_REQUEST['action']) && $_REQUEST["action"] == "log_in"){ 
    1212        // TODO: leiuta generic login funktsioon 
    1313 
    14         if (($_REQUEST["plog-username"] == $config["admin_username"]) && (md5($_REQUEST["plog-password"]) == $config["admin_password"])){ 
     14        if ( (isset($_REQUEST["plog-username"]) && $_REQUEST["plog-username"] == $config["admin_username"]) && (isset($_REQUEST["plog-password"]) && md5($_REQUEST["plog-password"]) == $config["admin_password"]) ){ 
    1515                $_SESSION["plogger_logged_in"] = true; 
    16         } 
    17         else{ 
     16        }       else { 
    1817                header("Location: index.php?errorcode=1"); 
    1918                exit; 
    2019        } 
    21 } 
    22 elseif(isset($_REQUEST['action']) && $_REQUEST["action"] == "log_out"){ 
     20} elseif(isset($_REQUEST['action']) && $_REQUEST["action"] == "log_out") { 
    2321        $_SESSION = array(); 
    2422        session_destroy();