Last change
on this file since 1848 was
1547,
checked in by ezyang, 14 years ago
|
Merge adehnert's phpical changes, update mergeinfo.
|
-
Property svn:executable set to
*
|
File size:
931 bytes
|
Rev | Line | |
---|
[127] | 1 | #!/usr/bin/perl |
---|
| 2 | use strict; |
---|
[1222] | 3 | use FindBin qw($Bin); |
---|
| 4 | use lib $Bin; |
---|
[127] | 5 | use onserver; |
---|
| 6 | |
---|
| 7 | setup(); |
---|
| 8 | |
---|
| 9 | undef $/; |
---|
| 10 | open(FILE, "contemp.php"); |
---|
| 11 | my $a = <FILE>; |
---|
| 12 | close(FILE); |
---|
| 13 | $a =~ s/adminpass/$admin_password/g; |
---|
[1547] | 14 | $a =~ s|\$timezone\s*= '';|\$timezone = 'US/Eastern';|g; |
---|
[127] | 15 | $a =~ s/\$phpicalendar_publishing/\/\/ WARNING: The scripts.mit.edu maintainers have had to disable this feature on scripts.mit.edu because it contains a serious security vulnerability that has not been addressed by the software\'s authors. Please do not try to enable this feature\n\$phpicalendar_publishing/; |
---|
| 16 | open(FILE, ">config.inc.php"); |
---|
| 17 | print FILE $a; |
---|
| 18 | close(FILE); |
---|
| 19 | |
---|
[474] | 20 | #system('cp', '/mit/scripts/deploy/phpical/MIT Academic Calendar.ics', 'calendars/'); |
---|
[127] | 21 | |
---|
[474] | 22 | unlink('contemp.php'); |
---|
| 23 | unlink('calendars/publish.ical.php'); |
---|
[127] | 24 | |
---|
| 25 | print <<END; |
---|
| 26 | Your $sname Admin Panel is at |
---|
| 27 | http://$server/~$USER/$addrend/admin |
---|
| 28 | You can use this admin panel to upload calendars for display. |
---|
| 29 | END |
---|
| 30 | press_enter(); |
---|
Note: See
TracBrowser
for help on using the repository browser.