Changeset 1417

Show
Ignore:
Timestamp:
08/21/09 15:11:38 (3 years ago)
Author:
gbastien
Message:

* Previous patch introduces a bug in install for php <5.2.1. Now #588 is fixed for php >=5.2.1. Otherwise as before.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/install.php

    r1416 r1417  
    5656 
    5757# Random password generator 
    58 $temp_dir = sys_get_temp_dir ( ); 
     58$temp_dir = function_exists('sys_get_temp_dir') ? sys_get_temp_dir ( ) : '/tmp'; 
    5959$password_file = $temp_dir . '/dog_cookie.txt'; 
    6060$random_password = null;