| Last change
                  on this file since 2279 was
                  1226,
                  checked in by mitchb, 16 years ago | 
        
          | Merge r1219:1225 from trunk to branches/fc11-dev | 
        
          | 
              
                  Property svn:executable set to
                  * | 
        | File size:
            824 bytes | 
      
      
        
  | Rev | Line |  | 
|---|
| [127] | 1 | #!/usr/bin/perl | 
|---|
|  | 2 | use strict; | 
|---|
| [1226] | 3 | use FindBin qw($Bin); | 
|---|
|  | 4 | use lib $Bin; | 
|---|
| [127] | 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 |  | 
|---|
| [472] | 21 | fetch_uri('install.php', {action => 'step_2'}); | 
|---|
|  | 22 | fetch_uri('install.php', {action => 'step_3'}); | 
|---|
|  | 23 | fetch_uri('install.php', {action => 'step_4'}); | 
|---|
| [127] | 24 |  | 
|---|
| [472] | 25 | fetch_uri( | 
|---|
|  | 26 | 'install.php', | 
|---|
|  | 27 | {action => 'step_6'}, | 
|---|
|  | 28 | {action => 'step_6', | 
|---|
|  | 29 | username => $admin_username, | 
|---|
|  | 30 | password => $admin_password}); | 
|---|
| [127] | 31 |  | 
|---|
| [474] | 32 | unlink('include/contemp.php'); | 
|---|
| [127] | 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.