|
Last change
on this file since 1224 was
1222,
checked in by ezyang, 16 years ago
|
|
Fix incorrect including of production onserver.pm when scriptsdev=dev is used.
|
-
Property svn:executable set to
*
|
|
File size:
824 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, "include/contemp.php"); |
|---|
| 11 | my $a = <FILE>; |
|---|
| 12 | close(FILE); |
|---|
| 13 | $a =~ s/localhost/$sqlhost/g; |
|---|
| 14 | $a =~ s/dbuser/$sqluser/g; |
|---|
| 15 | $a =~ s/dbpass/$sqlpass/g; |
|---|
| 16 | $a =~ s/polldb/$sqldb/g; |
|---|
| 17 | open(FILE, ">include/config.inc.php"); |
|---|
| 18 | print FILE $a; |
|---|
| 19 | close(FILE); |
|---|
| 20 | |
|---|
| 21 | fetch_uri('install.php', {action => 'step_2'}); |
|---|
| 22 | fetch_uri('install.php', {action => 'step_3'}); |
|---|
| 23 | fetch_uri('install.php', {action => 'step_4'}); |
|---|
| 24 | |
|---|
| 25 | fetch_uri( |
|---|
| 26 | 'install.php', |
|---|
| 27 | {action => 'step_6'}, |
|---|
| 28 | {action => 'step_6', |
|---|
| 29 | username => $admin_username, |
|---|
| 30 | password => $admin_password}); |
|---|
| 31 | |
|---|
| 32 | unlink('include/contemp.php'); |
|---|
| 33 | |
|---|
| 34 | print <<END; |
|---|
| 35 | Your $sname Admin Panel is at |
|---|
| 36 | http://$server/~$USER/$addrend/admin |
|---|
| 37 | You can use this admin panel to create your first poll. |
|---|
| 38 | END |
|---|
| 39 | press_enter(); |
|---|
Note: See
TracBrowser
for help on using the repository browser.