source: locker/deploy/bin/phpical @ 922

Last change on this file since 922 was 474, checked in by andersk, 17 years ago
File::Path for mkpath and rmtree.
  • Property svn:executable set to *
File size: 873 bytes
Line 
1#!/usr/bin/perl
2use strict;
3use lib '/mit/scripts/deploy/bin';
4use onserver;
5
6setup();
7
8undef $/;
9open(FILE, "contemp.php");
10my $a = <FILE>;
11close(FILE);
12$a =~ s/adminpass/$admin_password/g;
13$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/;
14open(FILE, ">config.inc.php");
15print FILE $a;
16close(FILE);
17
18#system('cp', '/mit/scripts/deploy/phpical/MIT Academic Calendar.ics', 'calendars/');
19
20unlink('contemp.php');
21unlink('calendars/publish.ical.php');
22
23print <<END;
24Your $sname Admin Panel is at
25http://$server/~$USER/$addrend/admin
26You can use this admin panel to upload calendars for display.
27END
28press_enter();
Note: See TracBrowser for help on using the repository browser.