Last change
on this file since 2196 was
1226,
checked in by mitchb, 15 years ago
|
Merge r1219:1225 from trunk to branches/fc11-dev
|
-
Property svn:executable set to
*
|
File size:
874 bytes
|
Line | |
---|
1 | #!/usr/bin/perl |
---|
2 | use strict; |
---|
3 | use FindBin qw($Bin); |
---|
4 | use lib $Bin; |
---|
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; |
---|
14 | $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/; |
---|
15 | open(FILE, ">config.inc.php"); |
---|
16 | print FILE $a; |
---|
17 | close(FILE); |
---|
18 | |
---|
19 | #system('cp', '/mit/scripts/deploy/phpical/MIT Academic Calendar.ics', 'calendars/'); |
---|
20 | |
---|
21 | unlink('contemp.php'); |
---|
22 | unlink('calendars/publish.ical.php'); |
---|
23 | |
---|
24 | print <<END; |
---|
25 | Your $sname Admin Panel is at |
---|
26 | http://$server/~$USER/$addrend/admin |
---|
27 | You can use this admin panel to upload calendars for display. |
---|
28 | END |
---|
29 | press_enter(); |
---|
Note: See
TracBrowser
for help on using the repository browser.