File indexing completed on 2025-02-02 05:44:56
0001 <h3>Step 2: generating providers.xml file</h3> 0002 <p>Here is the autogenerated providers.xml file for your webserver.<br> 0003 You can briefly modify it before applying it to your server. This will be the one<br> 0004 you will provide to clients that wants to connect (will it be desktop, web etc..)</p> 0005 <p>This configuration will also be responsible for /v1/config OCS call!</p> 0006 0007 <form action="/admin/steps/step2" method="post"> 0008 <table border="0"> 0009 <tr><td>Server ID</td><td><input type="text" name="serverid" value="<?=$data[0]['serverid']?>" placeholder="id (e.g. myocsserver)"></td></tr> 0010 <tr><td>Name</td><td><input type="text" name="name" value="<?=$data[0]['name']?>" placeholder="name (e.g. My Ocs Server)"></td></tr> 0011 <tr><td>Website URL</td><td><input type="text" name="website" value="<?=$data[0]['website']?>" placeholder="website (e.g. myocsserver.com)"></td></tr> 0012 <tr><td>Host</td><td><input type="text" name="host" value="<?=$data[0]['host']?>" placeholder="host (e.g. ocs.myocsserver.com)"></td></tr> 0013 <tr><td>V1 location</td><td><input type="text" name="location" value="<?=$data[0]['location']?>" placeholder="v1 (e.g. ocs.myocsserver.com/v1)"></td></tr> 0014 <tr><td>Terms of use URL</td><td><input type="text" name="termsofuse" value="<?=$data[0]['termsofuse']?>" placeholder="link to terms of use"></td></tr> 0015 <tr><td>Register new user URL</td><td><input type="text" name="register" value="<?=$data[0]['register']?>" placeholder="link to page registration"></td></tr> 0016 <tr><td>E-mail of admin</td><td><input type="text" name="contact" value="<?=$data[0]['contact']?>" placeholder="email of server admin"></td></tr> 0017 0018 <tr><td><label for="sslid">Protocol:</label></td><td> 0019 <select id="sslid" name="ssl"> 0020 <option value="no" <?=$data[0]['ssln']?>>http</option> 0021 <option value="yes" <?=$data[0]['ssly']?>>https</option> 0022 </select> 0023 </td></tr> 0024 <tr><td><label for="formatid">Output:</label></td> 0025 <td> 0026 <select id="formatid" name="format"> 0027 <option value="xml" <?=$data[0]['jsonn']?>>xml</option> 0028 <option value="json" <?=$data[0]['jsony']?>>json</option> 0029 </select> 0030 </td></tr> 0031 0032 <tr><td colspan="2"><input style="float:right" type="submit" value="Generate configuration"></td></tr> 0033 </table> 0034 </form> 0035 <hr> 0036 <h4>Generated providers.xml:</h4> 0037 <pre> 0038 <?=$data[0]['exampleprovider']?> 0039 </pre> 0040 <hr> 0041 <h4>/v1/config call:</h4> 0042 <pre> 0043 <?=$data[0]['configcall']?> 0044 </pre> 0045 <hr> 0046 <form action="/admin/steps/step2/save"> 0047 <input type="submit" value="Save config and proceed"> 0048 </form>