Fileref:config.html.html 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <!-- headlinks removed -->
  6. <link rel="shortcut icon" href="../../../../misc/favicon.ico"/>
  7. <title>Fileref:config.html - SLIS Second Life Wiki</title>
  8. <style type="text/css">/*<![CDATA[*/ @import "../../../../skins/offline/main.css"; /*]]>*/</style>
  9. <link rel="stylesheet" type="text/css" media="print" href="../../../../skins/common/commonPrint.css" />
  10. <!--[if lt IE 5.5000]><style type="text/css">@import "../../../../skins/monobook/IE50Fixes.css";</style><![endif]-->
  11. <!--[if IE 5.5000]><style type="text/css">@import "../../../../skins/monobook/IE55Fixes.css";</style><![endif]-->
  12. <!--[if IE 6]><style type="text/css">@import "../../../../skins/monobook/IE60Fixes.css";</style><![endif]-->
  13. <!--[if IE]><script type="text/javascript" src="../../../../skins/common/IEFixes.js"></script>
  14. <meta http-equiv="imagetoolbar" content="no" /><![endif]-->
  15. <script type="text/javascript" src="../../../../skins/common/wikibits.js"></script>
  16. <script type="text/javascript" src="../../../../skins/offline/md5.js"></script>
  17. <script type="text/javascript" src="../../../../skins/offline/utf8.js"></script>
  18. <script type="text/javascript" src="../../../../skins/offline/lookup.js"></script>
  19. </head>
  20. <body
  21. class="ns-0 ns-subject page-Fileref_config_html">
  22. <div id="globalWrapper">
  23. <div id="column-content">
  24. <div id="content">
  25. <a name="top" id="contentTop"></a>
  26. <h1 class="firstHeading">Fileref:config.html</h1>
  27. <div id="bodyContent">
  28. <h3 id="siteSub">From SLIS Second Life Wiki</h3>
  29. <div id="contentSub"></div>
  30. <!-- start content -->
  31. <div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><p><a href="../../../../articles/f/o/l/File:Folder.gif.html" class="image"><img alt="Folder.gif" src="../../../../images/6/2F/6/6/67/Folder.gif" width="16" height="16" /></a> <a href="../../../../articles/r/o/o/Fileref:root.html" title="Fileref:root" class="mw-redirect">(parent)</a> <br />
  32. </p><p>This is the main configuration page for the Sloodle module. Note: it is only a fragment which cannot be accessed directly. It must be accessed through the Moodle modules script.
  33. </p><p><br />
  34. When first accessed, the file carries out initial processing of existing Moodle data to check if Sloodle settings exist in the Moodle configuration table. If not, it creates appropriate default values. An HTML form is displayed allowing the user to submit their configuration options. A configuration processing function (<a href="http:http://localhost/sl/index.php?title=Sloodle_process_options&amp;action=edit&amp;redlink=1" class="new" title="Sloodle process options (page does not exist)">sloodle_process_options</a> defined in <a href="../../../../articles/l/i/b/Fileref:lib.php.html" title="Fileref:lib.php">lib.php</a>) is called by the Moodle framework to validate the configuration. If valid, then it is stored and Moodle takes over. However, if the configuration is invalid, then the user is re-directed back to the configuration page, and appropriate error messages are displayed.
  35. </p><p><br />
  36. </p>
  37. <h2> <span class="mw-headline" id="Dependencies"> Dependencies </span></h2>
  38. <p>Sloodle files:
  39. </p>
  40. <ul><li> <a href="../../../../articles/c/o/n/Fileref:config.php.html" title="Fileref:config.php">config.php</a>
  41. </li><li> <a href="../../../../articles/l/i/b/Fileref:lib/sl_generallib.php.html" title="Fileref:lib/sl generallib.php">lib/sl_generallib.php</a>
  42. </li></ul>
  43. <p><br />
  44. </p>
  45. <h2> <span class="mw-headline" id="Algorithm"> Algorithm </span></h2>
  46. <ol><li> Get prim password from database
  47. </li><li> Get user authentication method from database
  48. </li><li> Did prim password exist? If <b>not</b> then:
  49. <ol><li> Generate random prim password
  50. </li><li> Store random password in database
  51. </li></ol>
  52. </li><li> If user submitted password via web-form then store prim password locally
  53. </li><li> Did user authentication method exist? If <b>not</b> then:
  54. <ol><li> Store default method
  55. </li></ol>
  56. </li><li> If user submitted method via web-form then store method locally
  57. </li><li> Displaying heading with version numbers
  58. </li><li> Display error messages (if any were specified)
  59. </li><li> Display web-form with user-submitted data if available, or database data if not
  60. </li></ol>
  61. <p><br />
  62. </p>
  63. <table style="background-color:white; border:1px solid #0099cc; text-align:center; width:100%;">
  64. <tr>
  65. <th style="background-color:#99d9ea;" colspan="4"> This page is part of the SLOODLE documentation
  66. </th></tr>
  67. <tr>
  68. <td style="border-bottom:solid 1px #dddddd;"> Docs: <a href="../../../../articles/s/l/o/SloodleUserDocs.html" title="SloodleUserDocs" class="mw-redirect">Users</a> | <a href="../../../../articles/s/l/o/SloodleAdminDocs.html" title="SloodleAdminDocs" class="mw-redirect">Administrators</a> | <a href="../../../../articles/s/l/o/SloodleDevDocs.html" title="SloodleDevDocs" class="mw-redirect">Developers</a>
  69. </td></tr>
  70. <tr>
  71. <td style=""> <span style="float:left"><a href="../../../../articles/s/l/o/Sloodle.html" title="Sloodle" class="mw-redirect">Wiki Frontpage</a></span> <span style="float:right"><a rel="nofollow" class="external text" href="http://www.sloodle.org">Sloodle.org</a></span>
  72. </td></tr></table>
  73. <!--
  74. NewPP limit report
  75. Preprocessor node count: 16/1000000
  76. Post‐expand include size: 539/2097152 bytes
  77. Template argument size: 27/2097152 bytes
  78. Expensive parser function count: 0/100
  79. -->
  80. </div><div class="printfooter">
  81. </div>
  82. <div id="catlinks"><div id='catlinks' class='catlinks'><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="http://localhost/sl/index.php/Special:Categories" title="Special:Categories">Category</a>: <ul><li><a href="../../../../articles/s/l/o/Category:SloodleFileRef.html" title="Category:SloodleFileRef">SloodleFileRef</a></li></ul></div></div></div> <!-- end content -->
  83. <div class="visualClear"></div>
  84. </div>
  85. </div>
  86. </div>
  87. <div id="column-one">
  88. <div id="p-cactions" class="portlet">
  89. <h5>Views</h5>
  90. <ul>
  91. <li id="ca-nstab-main"
  92. class="selected" ><a href="../../../../articles/c/o/n/Fileref:config.html.html">Page</a></li><li id="ca-talk"
  93. class="new" ><a href="http:http://localhost/sl/index.php?title=Talk:Fileref:config.html&amp;action=edit&amp;redlink=1">Discussion</a></li><li id="ca-current"
  94. ><a href="http://localhost/sl/index.php/Fileref:config.html">Latest revision</a></li> </ul>
  95. </div>
  96. <div class="portlet" id="p-logo">
  97. <a style="background-image: url(../../../../misc/wiki.png);"
  98. href="../../../../index.html"
  99. title="Main Page"></a>
  100. </div>
  101. <script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
  102. <div class='portlet' id='p-navigation'>
  103. <h5>Navigation</h5>
  104. <div class='pBody'>
  105. <ul>
  106. <li id="n-mainpage-description"><a href="../../../../index.html">Main page</a></li>
  107. <li id="n-SLOODLE"><a href="../../../../articles/s/l/o/Sloodle.html">SLOODLE</a></li>
  108. <li id="n-currentevents"><a href="../../../../articles/c/u/r/SLIS_Second_Life_Wiki:Current_events.html">Current events</a></li>
  109. <li id="n-help"><a href="../../../../articles/c/o/n/Help:Contents.html">Help</a></li>
  110. </ul>
  111. </div>
  112. </div>
  113. <div class='portlet' id='p-SEARCH'>
  114. <h5>Search</h5>
  115. <div class='pBody'>
  116. <ul>
  117. </ul>
  118. </div>
  119. </div>
  120. <div class='portlet' id='p-TOOLBOX'>
  121. <h5>Toolbox</h5>
  122. <div class='pBody'>
  123. <ul>
  124. </ul>
  125. </div>
  126. </div>
  127. <div class='portlet' id='p-LANGUAGES'>
  128. <h5>LANGUAGES</h5>
  129. <div class='pBody'>
  130. <ul>
  131. </ul>
  132. </div>
  133. </div>
  134. <div id="p-search" class="portlet">
  135. <h5><label for="searchInput">Search</label></h5>
  136. <div id="searchBody" class="pBody">
  137. <form action="javascript:goToStatic(3)" id="searchform"><div>
  138. <input id="searchInput" name="search" type="text"
  139. accesskey="f" value="" />
  140. <input type='submit' name="go" class="searchButton" id="searchGoButton"
  141. value="Go" />
  142. </div></form>
  143. </div>
  144. </div>
  145. </div><!-- end of the left (by default at least) column -->
  146. <div class="visualClear"></div>
  147. <div id="footer">
  148. <div id="f-poweredbyico"><a href="//www.mediawiki.org/"><img src="../../../../skins/common/images/poweredby_mediawiki_88x31.png" height="31" width="88" alt="Powered by MediaWiki" /></a></div> <ul id="f-list">
  149. <li id="f-credits">This page was last modified 05:46, 22 January 2008 by SLIS Second Life Wiki user <a href="http:http://localhost/sl/index.php?title=User:Peter_Bloomfield&amp;action=edit&amp;redlink=1" class="new" title="User:Peter Bloomfield (page does not exist)">Peter Bloomfield</a>. </li> <li id="f-about"><a href="../../../../articles/a/b/o/SLIS_Second_Life_Wiki:About.html" title="SLIS Second Life Wiki:About">About SLIS Second Life Wiki</a></li> <li id="f-disclaimer"><a href="../../../../articles/g/e/n/SLIS_Second_Life_Wiki:General_disclaimer.html" title="SLIS Second Life Wiki:General disclaimer">Disclaimers</a></li> </ul>
  150. </div>
  151. </div>
  152. </body>
  153. </html>