source: locker/deploy/bin/phpical @ 240

Last change on this file since 240 was 127, checked in by jbarnold, 18 years ago
old copies of locker software
  • Property svn:executable set to *
File size: 857 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#`cp /mit/scripts/deploy/phpical/MIT\ Academic\ Calendar.ics calendars/`;
19
20`rm -f contemp.php`;
21`rm -f 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.