1 | <?php |
---|
2 | $stoppage = true; |
---|
3 | |
---|
4 | if ($_REQUEST['submit']) |
---|
5 | { |
---|
6 | foreach ($_POST['set'] as $name => $value) |
---|
7 | { |
---|
8 | $_SESSION['sett'][$name] = $value; |
---|
9 | } |
---|
10 | } |
---|
11 | $uri = 'http://'.$_SERVER['HTTP_HOST'].str_replace('/install/index.php','', $_SERVER['SCRIPT_NAME']); |
---|
12 | if (!$_SESSION['sett']['host']) |
---|
13 | { |
---|
14 | $_SESSION['sett']['host'] = $uri.'/'; |
---|
15 | } |
---|
16 | if (!$_SESSION['sett']['style']) |
---|
17 | { |
---|
18 | $_SESSION['sett']['style'] = $uri.'/style'; |
---|
19 | } |
---|
20 | if (!$_SESSION['sett']['img']) |
---|
21 | { |
---|
22 | $_SESSION['sett']['img'] = $uri.'/img'; |
---|
23 | } |
---|
24 | if (!$_SESSION['sett']['common']) |
---|
25 | { |
---|
26 | $_SESSION['sett']['common'] = $uri.'/common'; |
---|
27 | } |
---|
28 | |
---|
29 | if ($_SESSION['sett']['adminpw'] && $_SESSION['sett']['site']) |
---|
30 | { |
---|
31 | $stoppage = false; |
---|
32 | } |
---|
33 | if ($_SESSION['sett']['aid'] && $_SESSION['sett']['cid']) |
---|
34 | { |
---|
35 | echo '<b>Error:</b> You have entered an alliance AND corp id, please fix this conflict.<br/>'; |
---|
36 | $stoppage = true; |
---|
37 | } |
---|
38 | ?> |
---|
39 | <p>You have to enter/edit some settings now, i will generate a config based on this data for you.<br/> |
---|
40 | To be able to continue you have to enter at least an admin password and a site identification key.<br/> |
---|
41 | <br/> |
---|
42 | <b>Tips:</b><br/> |
---|
43 | Title is used as title attribute for every page so your corp/alliance name could be a good idea.<br/> |
---|
44 | 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/> |
---|
45 | The URLs are guessed on the location of this installscript, you might need to correct them for some installations.<br/> |
---|
46 | You can try to get the needed corp/alliance id from the eve-dev.net test keyboard in case you don't know them. |
---|
47 | </p> |
---|
48 | <form id="options" name="options" method="post" action="?step=6"> |
---|
49 | <input type="hidden" name="step" value="6"> |
---|
50 | <div class="block-header2">Settings</div> |
---|
51 | <table class="kb-subtable"> |
---|
52 | <?php |
---|
53 | $settings = array(); |
---|
54 | $settings[] = array('descr' => 'Adminpassword', 'name' => 'adminpw'); |
---|
55 | $settings[] = array('descr' => 'Title', 'name' => 'title'); |
---|
56 | $settings[] = array('descr' => 'Site', 'name' => 'site'); |
---|
57 | |
---|
58 | $settings[] = array('descr' => 'Host', 'name' => 'host'); |
---|
59 | $settings[] = array('descr' => 'Style URL', 'name' => 'style'); |
---|
60 | $settings[] = array('descr' => 'IMG URL', 'name' => 'img'); |
---|
61 | $settings[] = array('descr' => 'Common URL', 'name' => 'common'); |
---|
62 | |
---|
63 | //$settings[] = array('descr' => 'CorpID', 'name' => 'cid'); |
---|
64 | //$settings[] = array('descr' => 'AllianceID', 'name' => 'aid'); |
---|
65 | |
---|
66 | foreach ($settings as $set) |
---|
67 | { |
---|
68 | ?> |
---|
69 | <tr><td width="120"><b><?php echo $set['descr']; ?></b></td><td><input type=text name=set[<?php echo $set['name']; ?>] size=60 maxlength=80 value="<?php echo $_SESSION['sett'][$set['name']]; ?>"></td></tr> |
---|
70 | <?php |
---|
71 | } |
---|
72 | ?> |
---|
73 | <tr><td width="120"></td><td><input type=submit name=submit value="Save"></td></tr> |
---|
74 | </table> |
---|
75 | <?php if ($stoppage) |
---|
76 | { |
---|
77 | return; |
---|
78 | }?> |
---|
79 | <p><a href="?step=<?php echo ($_SESSION['state']+1); ?>">Next Step</a></p> |
---|