Rev 43 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | daniel-mar | 1 | <!DOCTYPE html> |
2 | <html lang="en"> |
||
3 | |||
4 | <head> |
||
5 | <title>OIDplus Setup</title> |
||
6 | <link rel="stylesheet" href="setup.css"> |
||
7 | <script src="../3p/sha3_js/sha3.js"></script><!-- https://github.com/emn178/js-sha3 --> |
||
8 | <script src="setup.js"></script> |
||
9 | </head> |
||
10 | |||
11 | <body onLoad="javascript:rebuild()"> |
||
12 | |||
13 | <h1>OIDplus Setup</h1> |
||
14 | |||
15 | <div id="step1"> |
||
16 | <h2>Step 1: Enter setup information</h2> |
||
17 | <form id="step1_form"> |
||
18 | <p>Which admin password do you want?<br><input id="admin_password" type="password" autocomplete="new-password" onKeyPress="javascript:rebuild()" onKeyUp="javascript:rebuild()"> <span id="password_warn"></span></p> |
||
19 | <p>Please repeat the password input:<br><input id="admin_password2" type="password" autocomplete="new-password" onKeyPress="javascript:rebuild()" onKeyUp="javascript:rebuild()"> <span id="password_warn2"></span></p> |
||
20 | <p>Which email address?<br><input id="admin_email" type="text" onKeyPress="javascript:rebuild()" onKeyUp="javascript:rebuild()"></p> |
||
21 | <p>---</p> |
||
22 | <p>MySQL hostname (usually <b>localhost</b>):<br><input id="mysql_host" type="text" value="localhost" onKeyPress="javascript:rebuild()" onKeyUp="javascript:rebuild()"></p> |
||
23 | <p>MySQL username:<br><input id="mysql_username" type="text" onKeyPress="javascript:rebuild()" onKeyUp="javascript:rebuild()"></p> |
||
24 | <p>MySQL password:<br><input id="mysql_password" type="password" autocomplete="new-password" onKeyPress="javascript:rebuild()" onKeyUp="javascript:rebuild()"></p> |
||
25 | <p>MySQL database name:<br><input id="mysql_database" type="text" onKeyPress="javascript:rebuild()" onKeyUp="javascript:rebuild()"></p> |
||
26 | <p>Tablename prefix (e.g. <b>oidplus_</b>):<br><input id="tablename_prefix" type="text" value="oidplus_" onKeyPress="javascript:rebuild()" onKeyUp="javascript:rebuild()"></p> |
||
27 | <p>---</p> |
||
28 | <p>RECAPTCHA Enabled <input id="recaptcha_enabled" type="checkbox" onclick="javascript:rebuild()"></p><!-- TODO Label for --> |
||
29 | <p>RECAPTCHA Public key<br><input id="recaptcha_public" type="text" onKeyPress="javascript:rebuild()" onKeyUp="javascript:rebuild()"></p> |
||
30 | <p>RECAPTCHA Private key<br><input id="recaptcha_private" type="text" onKeyPress="javascript:rebuild()" onKeyUp="javascript:rebuild()"></p> |
||
31 | </form> |
||
32 | </div> |
||
33 | |||
34 | <div id="step2"> |
||
35 | <h2>Step 2: Import data</h2> |
||
36 | <p>If you already have an OIDplus database and just want to rebuild the config file, please ignore this step. Otherwise, import one of the following MySQL dumps in your database:</p> |
||
37 | <p><ul> |
||
38 | <li><a href="struct_empty.sql.php" id="struct_1" target="_blank">Empty OIDplus database without example data</a><br><br></li> |
||
39 | <li><a href="struct_with_examples.sql.php" id="struct_2" target="_blank">OIDplus database with example data</a></li> |
||
40 | </ul></p> |
||
41 | </div> |
||
42 | |||
43 | <div id="step3"> |
||
44 | <h2>Step 3: Save config.inc.php file</h2> |
||
45 | <p>Save following contents into the file <b>includes/config.inc.php</b>:</p> |
||
46 | <code><font color="darkblue"><div id="config"></div></font></code> |
||
47 | </div> |
||
48 | |||
49 | <div id="step4"> |
||
50 | <h2>Step 4: Enter the page</h2> |
||
51 | <p><a href="../">Run the OIDplus system</a></p> |
||
52 | </div> |
||
53 | |||
54 | </body> |
||
55 | </html> |
||
56 |