Changeset 461 for dev/install

Show
Ignore:
Timestamp:
10/23/09 09:03:46 (11 years ago)
Author:
kovell
Message:

Fixes: eve-dev changed to eve-id, recursive clearup scripts recurse more than one level, defunct admin sync removed.

Location:
dev/install
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • dev/install

    • Property svn:ignore set to
      install.lock
  • dev/install/index.php

    r400 r461  
    3838</div></td> 
    3939</tr></table> 
    40 <div class="counter"><font style="font-size: 9px;">&copy;2006-2009 <a href="http://www.eve-dev.net/" target="_blank">EVE Development Network</a></font></div> 
     40<div class="counter"><font style="font-size: 9px;">&copy;2006-2009 <a href="http://www.eve-id.net/" target="_blank">EVE Development Network</a></font></div> 
    4141</td></tr></table> 
    4242</body> 
  • dev/install/install_step2.php

    r434 r461  
    11<?php 
    2 if(!$installrunning) {header('Location: index.php');die();} 
     2if(!$installrunning) 
     3{header('Location: index.php');die();} 
    34$stoppage = false; 
    45 
     
    78if (function_exists('imagecreatefromstring')) 
    89{ 
    9     echo 'GD is available.<br/>'; 
    10     if (!function_exists('imagecreatetruecolor')) 
    11     { 
    12         echo 'Your GD is outdated though and will cause problems, please contact your system administrator to upgrade to GD 2.0 or higher.<br/>'; 
    13     } 
    14     echo 'Now let\'s see if you got the FreeType library needed for painting TrueType .ttf fonts onto images<br/>'; 
    15     if (function_exists('imagettftext')) 
    16     { 
    17         echo 'I found FreeType support, this is needed by the signature mod. Good!<br/>'; 
    18     } 
    19     else 
    20     { 
    21         echo 'Unfortunately I was unable to locate FreeType support so you cannot use all available signatures. :(<br/>'; 
    22     } 
     10        echo 'GD is available.<br/>'; 
     11        if (!function_exists('imagecreatetruecolor')) 
     12        { 
     13                echo 'Your GD is outdated though and will cause problems, please contact your system administrator to upgrade to GD 2.0 or higher.<br/>'; 
     14        } 
     15        echo 'Now let\'s see if you got the FreeType library needed for painting TrueType .ttf fonts onto images<br/>'; 
     16        if (function_exists('imagettftext')) 
     17        { 
     18                echo 'I found FreeType support, this is needed by the signature mod. Good!<br/>'; 
     19        } 
     20        else 
     21        { 
     22                echo 'Unfortunately I was unable to locate FreeType support so you cannot use all available signatures. :(<br/>'; 
     23        } 
    2324} 
    2425else 
    2526{ 
    26     echo 'GD is NOT available.<br/>The Killboard will be unable to output character portraits or corporation logos, please speak with your system administrator to install GD 2.0 or higher.<br/>'; 
    27     echo 'You can continue the installation but the Killboard might not run smoothly.<br/>'; 
     27        echo 'GD is NOT available.<br/>The Killboard will be unable to output character portraits or corporation logos, please speak with your system administrator to install GD 2.0 or higher.<br/>'; 
     28        echo 'You can continue the installation but the Killboard might not run smoothly.<br/>'; 
    2829} 
    2930 
     
    3233function checkdir($dir) 
    3334{ 
    34     if (!file_exists($dir)) 
    35     { 
    36         echo 'Creating '.$dir.' for you...<br/>'; 
    37         mkdir($dir); 
    38         chmod($dir, 0777); 
    39     } 
    40     if (is_writeable($dir)) 
    41     { 
    42         echo 'Directory '.$dir.' is there and writeable, excellent.<br/>'; 
    43     } 
    44     else 
    45     { 
    46         echo 'I cannot write into '.$dir.', you need to fix that for me before you can continue.<br/>'; 
    47         echo 'Please issue a "chmod 777 '.$dir.'" on the commandline inside of this directory<br/>'; 
    48         global $stoppage; 
    49         $stoppage = true; 
    50     } 
     35        if (!file_exists($dir)) 
     36        { 
     37                echo 'Creating '.$dir.' for you...<br/>'; 
     38                mkdir($dir); 
     39                chmod($dir, 0777); 
     40        } 
     41        if (is_writeable($dir)) 
     42        { 
     43                echo 'Directory '.$dir.' is there and writeable, excellent.<br/>'; 
     44        } 
     45        else 
     46        { 
     47                echo 'I cannot write into '.$dir.', you need to fix that for me before you can continue.<br/>'; 
     48                echo 'Please issue a "chmod 777 '.$dir.'" on the commandline inside of this directory<br/>'; 
     49                global $stoppage; 
     50                $stoppage = true; 
     51        } 
    5152} 
    5253 
    5354if (is_writeable('../cache')) 
    5455{ 
    55     echo 'Cache directory is writeable, testing for subdirs now:<br/>'; 
    56     checkdir('../cache/cache'); 
    57     checkdir('../cache/api'); 
    58     checkdir('../cache/corps'); 
    59     checkdir('../cache/data'); 
    60     checkdir('../cache/map'); 
    61     checkdir('../cache/mails'); 
    62     checkdir('../cache/portraits'); 
    63     checkdir('../cache/templates_c'); 
     56        echo 'Cache directory is writeable, testing for subdirs now:<br/>'; 
     57        checkdir('../cache/cache'); 
     58        checkdir('../cache/api'); 
     59        checkdir('../cache/corps'); 
     60        checkdir('../cache/data'); 
     61        checkdir('../cache/map'); 
     62        checkdir('../cache/mails'); 
     63        checkdir('../cache/portraits'); 
     64        checkdir('../cache/templates_c'); 
    6465} 
    6566else 
    6667{ 
    67     $stoppage = true; 
    68     echo 'I cannot write into ../cache, you need to fix that for me before you can continue.<br/>'; 
    69     echo 'Please issue a "chmod 777 ../cache" and "chmod 777 ../cache/*" on the commandline inside of this directory<br/>'; 
     68        $stoppage = true; 
     69        echo 'I cannot write into ../cache, you need to fix that for me before you can continue.<br/>'; 
     70        echo 'Please issue a "chmod 777 ../cache" and "chmod 777 ../cache/*" on the commandline inside of this directory<br/>'; 
    7071} 
    7172 
     
    7374if (!file_exists('../kbconfig.php')) 
    7475{ 
    75     $stoppage = true; 
    76     echo 'Please create the file \'kbconfig.php\' and make it writeable by the webserver.<br/>'; 
     76        $stoppage = true; 
     77        echo 'Please create the file \'kbconfig.php\' and make it writeable by the webserver.<br/>'; 
    7778} 
    7879elseif (is_writeable('../kbconfig.php')) 
    7980{ 
    80     echo 'The config file \'../kbconfig.php\' is there and writeable, excellent!<br/>'; 
     81        echo 'The config file \'../kbconfig.php\' is there and writeable, excellent!<br/>'; 
    8182} 
    8283else 
    8384{ 
    84     $stoppage = true; 
    85     echo 'I cannot write into ../kbconfig.php, you need to fix that for me before you can continue.<br/>'; 
    86     echo 'Please issue a "chmod 777 ../kbconfig" on the commandline inside of this directory<br/>'; 
     85        $stoppage = true; 
     86        echo 'I cannot write into ../kbconfig.php, you need to fix that for me before you can continue.<br/>'; 
     87        echo 'Please issue a "chmod 777 ../kbconfig" on the commandline inside of this directory<br/>'; 
    8788} 
    8889 
    8990echo '<br/><div class="block-header2">Connectivity</div>'; 
    9091// connectivity 
    91 $url = 'http://www.eve-dev.net/logo.png'; 
     92$url = 'http://www.eve-id.net/logo.png'; 
    9293if (ini_get('allow_url_fopen')) 
    9394{ 
    94     echo 'allow_url_fopen is on, I will try to fetch a testpage from "'.$url.'".<br/>'; 
    95     if (count(file($url))) 
    96     { 
    97         echo 'Seems to be ok, I got the file.<br/>'; 
    98     } 
    99     else 
    100     { 
    101         echo 'I could not get the file this might be a firewall related issue or the eve-dev server is not available.<br/>'; 
    102     } 
     95        echo 'allow_url_fopen is on, I will try to fetch a testpage from "'.$url.'".<br/>'; 
     96        if (count(file($url))) 
     97        { 
     98                echo 'Seems to be ok, I got the file.<br/>'; 
     99        } 
     100        else 
     101        { 
     102                echo 'I could not get the file this might be a firewall related issue or the eve-dev server is not available.<br/>'; 
     103        } 
    103104} 
    104105else 
    105106{ 
    106     include('../common/includes/class.http.php'); 
    107     echo 'allow_url_fopen is disabled, nethertheless I will try a socket connect now.<br/>'; 
     107        include('../common/includes/class.http.php'); 
     108        echo 'allow_url_fopen is disabled, nethertheless I will try a socket connect now.<br/>'; 
    108109 
    109     $http = new http_request($url); 
    110     if ($http->get_content()) 
    111     { 
    112         echo 'Seems to be ok, I got the file.<br/>'; 
    113     } 
    114     else 
    115     { 
    116         echo 'I could not get the file. This might be a firewall related issue or the eve-dev server is not available.<br/>'; 
    117     } 
     110        $http = new http_request($url); 
     111        if ($http->get_content()) 
     112        { 
     113                echo 'Seems to be ok, I got the file.<br/>'; 
     114        } 
     115        else 
     116        { 
     117                echo 'I could not get the file. This might be a firewall related issue or the eve-dev server is not available.<br/>'; 
     118        } 
    118119} 
    119120 
     
    140141<?php if ($stoppage) 
    141142{ 
    142     return; 
     143        return; 
    143144}?> 
    144145<p><a href="?step=<?php echo ($_SESSION['state']+1); ?>">Next Step</a></p> 
  • dev/install/install_step43.php

    r400 r461  
    55<div class="block-header2">Installation Complete</div> 
    66<p>Congratulations, you successfully installed the EVE Development Network Killboard v1.4!<br/> 
    7 Please check <a href="http://www.eve-dev.net/">EVE-Dev.net</a> for updates from time to time.<br/> 
     7Please check <a href="http://www.eve-id.net/">eve-id.net</a> for updates from time to time.<br/> 
    88<br/> 
    99You can now take a look at <a href="../">your new Killboard</a>.<br/><br/> 
  • dev/install/install_step6.php

    r400 r461  
    11<?php 
    2 if(!$installrunning) {header('Location: index.php');die();} 
     2if(!$installrunning) 
     3{ 
     4        header('Location: index.php'); 
     5        die(); 
     6} 
    37$stoppage = true; 
    48 
    59if ($_REQUEST['submit']) 
    610{ 
    7     foreach ($_POST['set'] as $name => $value) 
    8     { 
    9         $_SESSION['sett'][$name] = $value; 
    10     } 
     11        foreach ($_POST['set'] as $name => $value) 
     12        { 
     13                $_SESSION['sett'][$name] = $value; 
     14        } 
    1115} 
    1216$uri = 'http://'.$_SERVER['HTTP_HOST'].str_replace('/install/index.php','', $_SERVER['SCRIPT_NAME']); 
    1317if (!$_SESSION['sett']['host']) 
    1418{ 
    15     $_SESSION['sett']['host'] = $uri.'/'; 
     19        $_SESSION['sett']['host'] = $uri.'/'; 
    1620} 
    1721if (!$_SESSION['sett']['style']) 
    1822{ 
    19     $_SESSION['sett']['style'] = $uri.'/style'; 
     23        $_SESSION['sett']['style'] = $uri.'/style'; 
    2024} 
    2125if (!$_SESSION['sett']['img']) 
    2226{ 
    23     $_SESSION['sett']['img'] = $uri.'/img'; 
     27        $_SESSION['sett']['img'] = $uri.'/img'; 
    2428} 
    2529if (!$_SESSION['sett']['common']) 
    2630{ 
    27     $_SESSION['sett']['common'] = $uri.'/common'; 
     31        $_SESSION['sett']['common'] = $uri.'/common'; 
    2832} 
    2933 
    3034if ($_SESSION['sett']['adminpw'] && $_SESSION['sett']['site']) 
    3135{ 
    32     $stoppage = false; 
     36        $stoppage = false; 
    3337} 
    3438if ($_SESSION['sett']['aid'] && $_SESSION['sett']['cid']) 
    3539{ 
    36     echo '<b>Error:</b> You have entered an alliance AND corp id, please fix this conflict.<br/>'; 
    37     $stoppage = true; 
     40        echo '<b>Error:</b> You have entered an alliance AND corp id, please fix this conflict.<br/>'; 
     41        $stoppage = true; 
    3842} 
    3943if (isset($_SESSION['sett']['site']) && strlen($_SESSION['sett']['site']) > 12) 
    4044{ 
    41     echo '<b>Error:</b> Your site identification string is way too long.<br/>'; 
    42     $stoppage = true; 
     45        echo '<b>Error:</b> Your site identification string is way too long.<br/>'; 
     46        $stoppage = true; 
    4347} 
    4448?> 
    4549<p>You have to enter/edit some settings now. I will generate a config file based on this data for you.<br/> 
    46 To be able to continue you have to enter at least an admin password and a site identification key.<br/> 
    47 <br/> 
    48 <b>Tips:</b><br/> 
    49 Title is used as title attribute for every page so your corp/alliance name could be a good idea.<br/> 
    50 Site identification should be 1-8 chars, they will be used to reference your settings inside the database, something like 'GKB' will be sufficient.<br/> 
    51 The URLs are guessed on the location of this installscript, you might need to correct them for some installations.<br/> 
    52 You can try to get the needed corp/alliance id from the eve-dev.net test killboard in case you don't know them. 
     50        To be able to continue you have to enter at least an admin password and a site identification key.<br/> 
     51        <br/> 
     52        <b>Tips:</b><br/> 
     53        Title is used as title attribute for every page so your corp/alliance name could be a good idea.<br/> 
     54        Site identification should be 1-8 chars, they will be used to reference your settings inside the database, something like 'GKB' will be sufficient.<br/> 
     55        The URLs are guessed on the location of this installscript, you might need to correct them for some installations.<br/> 
    5356</p> 
    5457<form id="options" name="options" method="post" action="?step=6"> 
    55 <input type="hidden" name="step" value="6"> 
    56 <div class="block-header2">Settings</div> 
    57 <table class="kb-subtable"> 
    58 <?php 
    59 $settings = array(); 
    60 $settings[] = array('descr' => 'Adminpassword', 'name' => 'adminpw'); 
    61 $settings[] = array('descr' => 'Title', 'name' => 'title'); 
    62 $settings[] = array('descr' => 'Site', 'name' => 'site'); 
     58        <input type="hidden" name="step" value="6"> 
     59        <div class="block-header2">Settings</div> 
     60        <table class="kb-subtable"> 
     61                <?php 
     62                $settings = array(); 
     63                $settings[] = array('descr' => 'Adminpassword', 'name' => 'adminpw'); 
     64                $settings[] = array('descr' => 'Title', 'name' => 'title'); 
     65                $settings[] = array('descr' => 'Site', 'name' => 'site'); 
    6366 
    64 $settings[] = array('descr' => 'Host', 'name' => 'host'); 
    65 $settings[] = array('descr' => 'Style URL', 'name' => 'style'); 
    66 $settings[] = array('descr' => 'IMG URL', 'name' => 'img'); 
    67 $settings[] = array('descr' => 'Common URL', 'name' => 'common'); 
     67                $settings[] = array('descr' => 'Host', 'name' => 'host'); 
     68                $settings[] = array('descr' => 'Style URL', 'name' => 'style'); 
     69                $settings[] = array('descr' => 'IMG URL', 'name' => 'img'); 
     70                $settings[] = array('descr' => 'Common URL', 'name' => 'common'); 
    6871 
    69 //$settings[] = array('descr' => 'CorpID', 'name' => 'cid'); 
    70 //$settings[] = array('descr' => 'AllianceID', 'name' => 'aid'); 
     72                //$settings[] = array('descr' => 'CorpID', 'name' => 'cid'); 
     73                //$settings[] = array('descr' => 'AllianceID', 'name' => 'aid'); 
    7174 
    72 foreach ($settings as $set) 
    73 { 
    74 ?> 
    75 <tr><td width="120"><b><?php echo $set['descr']; ?></b></td><td><input type=<?php  
    76         if($set[name] == 'adminpw') echo "password"; else echo "text" 
    77         ?> name=set[<?php echo $set['name']; ?>] size=60 maxlength=80 value="<?php echo $_SESSION['sett'][$set['name']]; ?>"></td></tr> 
    78 <?php 
    79 } 
    80 ?> 
    81 <tr><td width="120"></td><td><input type=submit name=submit value="Save"></td></tr> 
    82 </table> 
    83 <?php if ($stoppage) 
    84 { 
    85     return; 
    86 }?> 
    87 <p><a href="?step=<?php echo ($_SESSION['state']+1); ?>">Next Step</a></p> 
     75                foreach ($settings as $set) 
     76                { 
     77                        ?> 
     78                <tr><td width="120"><b><?php echo $set['descr']; ?></b></td><td><input type=<?php 
     79                                        if($set[name] == 'adminpw') echo "password"; else echo "text" 
     80                                                                                                                                                                           ?> name=set[<?php echo $set['name']; ?>] size=60 maxlength=80 value="<?php echo $_SESSION['sett'][$set['name']]; ?>"></td></tr> 
     81                        <?php 
     82                        } 
     83                        ?> 
     84                <tr><td width="120"></td><td><input type=submit name=submit value="Save"></td></tr> 
     85        </table> 
     86        <?php if ($stoppage) 
     87        { 
     88                return; 
     89        }?> 
     90        <p><a href="?step=<?php echo ($_SESSION['state']+1); ?>">Next Step</a></p> 
  • dev/install/install_step8.php

    r433 r461  
    44<div class="block-header2">Installation Complete</div> 
    55<p>Congratulations, you have successfully installed the EVE Development Network Killboard v2.0!<br/> 
    6 Please check <a href="http://www.eve-dev.net/">EVE-Dev.net</a> for updates from time to time.<br/> 
     6Please check <a href="http://www.eve-id.net/">eve-id.net</a> for updates from time to time.<br/> 
    77<br/> 
    88You can now take a look at <a href="../">your new Killboard</a>.<br/><br/>