| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <!-- headlinks removed -->
- <link rel="shortcut icon" href="../../../../misc/favicon.ico"/>
- <title>Fileref:config.html - SLIS Second Life Wiki</title>
- <style type="text/css">/*<![CDATA[*/ @import "../../../../skins/offline/main.css"; /*]]>*/</style>
- <link rel="stylesheet" type="text/css" media="print" href="../../../../skins/common/commonPrint.css" />
- <!--[if lt IE 5.5000]><style type="text/css">@import "../../../../skins/monobook/IE50Fixes.css";</style><![endif]-->
- <!--[if IE 5.5000]><style type="text/css">@import "../../../../skins/monobook/IE55Fixes.css";</style><![endif]-->
- <!--[if IE 6]><style type="text/css">@import "../../../../skins/monobook/IE60Fixes.css";</style><![endif]-->
- <!--[if IE]><script type="text/javascript" src="../../../../skins/common/IEFixes.js"></script>
- <meta http-equiv="imagetoolbar" content="no" /><![endif]-->
- <script type="text/javascript" src="../../../../skins/common/wikibits.js"></script>
- <script type="text/javascript" src="../../../../skins/offline/md5.js"></script>
- <script type="text/javascript" src="../../../../skins/offline/utf8.js"></script>
- <script type="text/javascript" src="../../../../skins/offline/lookup.js"></script>
- </head>
- <body
- class="ns-0 ns-subject page-Fileref_config_html">
- <div id="globalWrapper">
- <div id="column-content">
- <div id="content">
- <a name="top" id="contentTop"></a>
- <h1 class="firstHeading">Fileref:config.html</h1>
- <div id="bodyContent">
- <h3 id="siteSub">From SLIS Second Life Wiki</h3>
- <div id="contentSub"></div>
- <!-- start content -->
- <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 />
- </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.
- </p><p><br />
- 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&action=edit&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.
- </p><p><br />
- </p>
- <h2> <span class="mw-headline" id="Dependencies"> Dependencies </span></h2>
- <p>Sloodle files:
- </p>
- <ul><li> <a href="../../../../articles/c/o/n/Fileref:config.php.html" title="Fileref:config.php">config.php</a>
- </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>
- </li></ul>
- <p><br />
- </p>
- <h2> <span class="mw-headline" id="Algorithm"> Algorithm </span></h2>
- <ol><li> Get prim password from database
- </li><li> Get user authentication method from database
- </li><li> Did prim password exist? If <b>not</b> then:
- <ol><li> Generate random prim password
- </li><li> Store random password in database
- </li></ol>
- </li><li> If user submitted password via web-form then store prim password locally
- </li><li> Did user authentication method exist? If <b>not</b> then:
- <ol><li> Store default method
- </li></ol>
- </li><li> If user submitted method via web-form then store method locally
- </li><li> Displaying heading with version numbers
- </li><li> Display error messages (if any were specified)
- </li><li> Display web-form with user-submitted data if available, or database data if not
- </li></ol>
- <p><br />
- </p>
- <table style="background-color:white; border:1px solid #0099cc; text-align:center; width:100%;">
- <tr>
- <th style="background-color:#99d9ea;" colspan="4"> This page is part of the SLOODLE documentation
- </th></tr>
- <tr>
- <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>
- </td></tr>
- <tr>
- <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>
- </td></tr></table>
- <!--
- NewPP limit report
- Preprocessor node count: 16/1000000
- Post‐expand include size: 539/2097152 bytes
- Template argument size: 27/2097152 bytes
- Expensive parser function count: 0/100
- -->
- </div><div class="printfooter">
- </div>
- <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 -->
- <div class="visualClear"></div>
- </div>
- </div>
- </div>
- <div id="column-one">
- <div id="p-cactions" class="portlet">
- <h5>Views</h5>
- <ul>
- <li id="ca-nstab-main"
- class="selected" ><a href="../../../../articles/c/o/n/Fileref:config.html.html">Page</a></li><li id="ca-talk"
- class="new" ><a href="http:http://localhost/sl/index.php?title=Talk:Fileref:config.html&action=edit&redlink=1">Discussion</a></li><li id="ca-current"
- ><a href="http://localhost/sl/index.php/Fileref:config.html">Latest revision</a></li> </ul>
- </div>
- <div class="portlet" id="p-logo">
- <a style="background-image: url(../../../../misc/wiki.png);"
- href="../../../../index.html"
- title="Main Page"></a>
- </div>
- <script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
- <div class='portlet' id='p-navigation'>
- <h5>Navigation</h5>
- <div class='pBody'>
- <ul>
- <li id="n-mainpage-description"><a href="../../../../index.html">Main page</a></li>
- <li id="n-SLOODLE"><a href="../../../../articles/s/l/o/Sloodle.html">SLOODLE</a></li>
- <li id="n-currentevents"><a href="../../../../articles/c/u/r/SLIS_Second_Life_Wiki:Current_events.html">Current events</a></li>
- <li id="n-help"><a href="../../../../articles/c/o/n/Help:Contents.html">Help</a></li>
- </ul>
- </div>
- </div>
- <div class='portlet' id='p-SEARCH'>
- <h5>Search</h5>
- <div class='pBody'>
- <ul>
- </ul>
- </div>
- </div>
- <div class='portlet' id='p-TOOLBOX'>
- <h5>Toolbox</h5>
- <div class='pBody'>
- <ul>
- </ul>
- </div>
- </div>
- <div class='portlet' id='p-LANGUAGES'>
- <h5>LANGUAGES</h5>
- <div class='pBody'>
- <ul>
- </ul>
- </div>
- </div>
- <div id="p-search" class="portlet">
- <h5><label for="searchInput">Search</label></h5>
- <div id="searchBody" class="pBody">
- <form action="javascript:goToStatic(3)" id="searchform"><div>
- <input id="searchInput" name="search" type="text"
- accesskey="f" value="" />
- <input type='submit' name="go" class="searchButton" id="searchGoButton"
- value="Go" />
- </div></form>
- </div>
- </div>
- </div><!-- end of the left (by default at least) column -->
- <div class="visualClear"></div>
- <div id="footer">
- <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">
- <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&action=edit&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>
- </div>
- </div>
- </body>
- </html>
|