Changeset 1281

Show
Ignore:
Timestamp:
07/20/08 15:22:15 (4 months ago)
Author:
rats
Message:

* Fixed #755: Protected areas are not working

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r1280 r1281  
    11ispCP ω 1.0.0 Changelog 
    22~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     3 
     42008-07-20 Markus Milkereit 
     5        - ENGINE: 
     6                * Fixed #755: Protected areas are not working 
    37 
    482008-07-20 Benedikt Heintel 
  • trunk/engine/ispcp-htuser-mngr

    r1150 r1281  
    475475 
    476476                                if ($size < 2) { 
    477  
    478477                                        del_file($htaccess_file); 
    479  
    480478                                } 
    481  
    482479                        } 
    483  
    484480                } 
    485  
    486         } 
    487  
     481        } 
    488482 
    489483        return $rs if ($rs != 0); 
     
    547541        } 
    548542 
     543        my $hfile = (get_file($htaccess_file))[1]; 
     544        if(!defined($hfile)) { 
     545                $hfile = ""; 
     546        } 
    549547        my $htaccess_content = 
    550         set_zone( (get_file($htaccess_file))[1], " 
     548        set_zone($hfile, " 
    551549        AuthType $auth_type 
    552550        AuthName \"$auth_name\" 
     
    651649 
    652650                foreach (split(',', $members)) { 
    653  
    654651                        my $user_id = $_; 
    655  
    656652                        $rs = htuser_add_user_to_group($dmn_id, $dmn_name, $ugroup, $user_id); 
    657  
    658653                        return $rs if ($rs != 0); 
    659654 
    660655                } 
    661  
    662656                $ugroups .= "$ugroup "; 
    663657 
     
    671665        my $htaccess_file = "$apache_www_dir/$dmn_name/$path/.htaccess"; 
    672666 
     667        my $hfile = (get_file($htaccess_file))[1]; 
     668        if(!defined($hfile)) { 
     669                $hfile = ""; 
     670        } 
    673671        my $htaccess_content = 
    674         set_zone( (get_file($htaccess_file))[1], " 
     672        set_zone($hfile, " 
    675673        AuthType $auth_type 
    676674        AuthName \"$auth_name\" 
  • trunk/gui/include/database-update-functions.php

    r1246 r1281  
    219219        return $sqlUpd; 
    220220} 
     221 
     222/* 
     223 * Fix for ticket #755 http://www.isp-control.net/ispcp/ticket/755 (Markus Milkereit, 2008-07-20) 
     224 */ 
     225function _databaseUpdate_6() { 
     226        $sqlUpd = array(); 
     227 
     228        $sqlUpd[] = "ALTER IGNORE TABLE `htaccess` 
     229                                CHANGE `user_id` `user_id` VARCHAR(255) NULL DEFAULT NULL , 
     230                                CHANGE `group_id` `group_id` VARCHAR(255) NULL DEFAULT NULL"; 
     231 
     232        return $sqlUpd; 
     233} 
    221234?>