Changeset 1281
- 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
| r1280 |
r1281 |
|
| 1 | 1 | ispCP ω 1.0.0 Changelog |
|---|
| 2 | 2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| | 3 | |
|---|
| | 4 | 2008-07-20 Markus Milkereit |
|---|
| | 5 | - ENGINE: |
|---|
| | 6 | * Fixed #755: Protected areas are not working |
|---|
| 3 | 7 | |
|---|
| 4 | 8 | 2008-07-20 Benedikt Heintel |
|---|
| r1150 |
r1281 |
|
| 475 | 475 | |
|---|
| 476 | 476 | if ($size < 2) { |
|---|
| 477 | | |
|---|
| 478 | 477 | del_file($htaccess_file); |
|---|
| 479 | | |
|---|
| 480 | 478 | } |
|---|
| 481 | | |
|---|
| 482 | 479 | } |
|---|
| 483 | | |
|---|
| 484 | 480 | } |
|---|
| 485 | | |
|---|
| 486 | | } |
|---|
| 487 | | |
|---|
| | 481 | } |
|---|
| 488 | 482 | |
|---|
| 489 | 483 | return $rs if ($rs != 0); |
|---|
| … | … | |
| 547 | 541 | } |
|---|
| 548 | 542 | |
|---|
| | 543 | my $hfile = (get_file($htaccess_file))[1]; |
|---|
| | 544 | if(!defined($hfile)) { |
|---|
| | 545 | $hfile = ""; |
|---|
| | 546 | } |
|---|
| 549 | 547 | my $htaccess_content = |
|---|
| 550 | | set_zone( (get_file($htaccess_file))[1], " |
|---|
| | 548 | set_zone($hfile, " |
|---|
| 551 | 549 | AuthType $auth_type |
|---|
| 552 | 550 | AuthName \"$auth_name\" |
|---|
| … | … | |
| 651 | 649 | |
|---|
| 652 | 650 | foreach (split(',', $members)) { |
|---|
| 653 | | |
|---|
| 654 | 651 | my $user_id = $_; |
|---|
| 655 | | |
|---|
| 656 | 652 | $rs = htuser_add_user_to_group($dmn_id, $dmn_name, $ugroup, $user_id); |
|---|
| 657 | | |
|---|
| 658 | 653 | return $rs if ($rs != 0); |
|---|
| 659 | 654 | |
|---|
| 660 | 655 | } |
|---|
| 661 | | |
|---|
| 662 | 656 | $ugroups .= "$ugroup "; |
|---|
| 663 | 657 | |
|---|
| … | … | |
| 671 | 665 | my $htaccess_file = "$apache_www_dir/$dmn_name/$path/.htaccess"; |
|---|
| 672 | 666 | |
|---|
| | 667 | my $hfile = (get_file($htaccess_file))[1]; |
|---|
| | 668 | if(!defined($hfile)) { |
|---|
| | 669 | $hfile = ""; |
|---|
| | 670 | } |
|---|
| 673 | 671 | my $htaccess_content = |
|---|
| 674 | | set_zone( (get_file($htaccess_file))[1], " |
|---|
| | 672 | set_zone($hfile, " |
|---|
| 675 | 673 | AuthType $auth_type |
|---|
| 676 | 674 | AuthName \"$auth_name\" |
|---|
| r1246 |
r1281 |
|
| 219 | 219 | return $sqlUpd; |
|---|
| 220 | 220 | } |
|---|
| | 221 | |
|---|
| | 222 | /* |
|---|
| | 223 | * Fix for ticket #755 http://www.isp-control.net/ispcp/ticket/755 (Markus Milkereit, 2008-07-20) |
|---|
| | 224 | */ |
|---|
| | 225 | function _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 | } |
|---|
| 221 | 234 | ?> |
|---|
|
Download in other formats:
#########################################################################
# Site footer - Contents are automatically inserted after main Trac HTML
?>