Changeset 18520 for trunk/FACT++/www


Ignore:
Timestamp:
06/23/16 18:04:30 (8 years ago)
Author:
tbretz
Message:
Allow to save an empty schedule to allow to delete the schedule of the night; do not copy usename and password to variables before check whether they are set, this leads to error messages in the log-file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/schedule/save.php

    r18517 r18520  
    1212    global $groupDN;
    1313
     14    if (!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW']))
     15        return "Unauthorized.";
     16
    1417    $username = $_SERVER['PHP_AUTH_USER'];
    1518    $password = $_SERVER['PHP_AUTH_PW'];
    16 
    17     if (!isset($username) || !isset($password))
    18         return "Unauthorized.";
    1919
    2020    $con = @ldap_connect($ldaphost);
     
    164164$last = $cut;
    165165
     166if (count($data)!=1 || !empty($data[0][0])) // empty schedule
    166167foreach ($data as $row)
    167168{
Note: See TracChangeset for help on using the changeset viewer.