source: trunk/locker/deploy/bin/phpical @ 1279

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