mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-11 09:49:05 +00:00
640 lines
30 KiB
HTML
640 lines
30 KiB
HTML
|
<!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">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||
|
<title>Ryzom Account Management System: Users Class Reference</title>
|
||
|
|
||
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||
|
|
||
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||
|
<script type="text/javascript" src="jquery.js"></script>
|
||
|
<script type="text/javascript" src="search/search.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(function() { searchBox.OnSelectItem(0); });
|
||
|
</script>
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="top"><!-- do not remove this div! -->
|
||
|
|
||
|
|
||
|
<div id="titlearea">
|
||
|
<table cellspacing="0" cellpadding="0">
|
||
|
<tbody>
|
||
|
<tr style="height: 56px;">
|
||
|
|
||
|
|
||
|
<td style="padding-left: 0.5em;">
|
||
|
<div id="projectname">Ryzom Account Management System
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</td>
|
||
|
|
||
|
|
||
|
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
|
||
|
<!-- Generated by Doxygen 1.7.6.1 -->
|
||
|
<script type="text/javascript">
|
||
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||
|
</script>
|
||
|
<div id="navrow1" class="tabs">
|
||
|
<ul class="tablist">
|
||
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
||
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||
|
<li><a href="dirs.html"><span>Directories</span></a></li>
|
||
|
<li>
|
||
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
||
|
<span class="left">
|
||
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
||
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
||
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
||
|
alt=""/>
|
||
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
||
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
||
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
||
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
||
|
</span><span class="right">
|
||
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
||
|
</span>
|
||
|
</div>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div id="navrow2" class="tabs2">
|
||
|
<ul class="tablist">
|
||
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||
|
<li><a href="classes.html"><span>Class Index</span></a></li>
|
||
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="header">
|
||
|
<div class="summary">
|
||
|
<a href="#pub-methods">Public Member Functions</a> |
|
||
|
<a href="#pub-static-methods">Static Public Member Functions</a> |
|
||
|
<a href="#pro-methods">Protected Member Functions</a> |
|
||
|
<a href="#pri-methods">Private Member Functions</a> </div>
|
||
|
<div class="headertitle">
|
||
|
<div class="title">Users Class Reference</div> </div>
|
||
|
</div><!--header-->
|
||
|
<div class="contents">
|
||
|
<!-- doxytag: class="Users" -->
|
||
|
<p>handles basic user registration & management functions (shard related).
|
||
|
<a href="classUsers.html#details">More...</a></p>
|
||
|
<div class="dynheader">
|
||
|
Inheritance diagram for Users:</div>
|
||
|
<div class="dyncontent">
|
||
|
<div class="center">
|
||
|
<img src="classUsers.png" usemap="#Users_map" alt=""/>
|
||
|
<map id="Users_map" name="Users_map">
|
||
|
<area href="classWebUsers.html" title="handles CMS/WWW related functions regarding user management & registration." alt="WebUsers" shape="rect" coords="0,56,69,80"/>
|
||
|
</map>
|
||
|
</div></div>
|
||
|
|
||
|
<p><a href="classUsers-members.html">List of all members.</a></p>
|
||
|
<table class="memberdecls">
|
||
|
<tr><td colspan="2"><h2><a name="pub-methods"></a>
|
||
|
Public Member Functions</h2></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUsers.html#a6f124a6e3b8d117604e707601a6b4876">check_Register</a> ($values)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">checks if entered values before registering are valid. <a href="#a6f124a6e3b8d117604e707601a6b4876"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUsers.html#ac078497a378d4bedb8bab22dcc362b7c">checkUser</a> ($username)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">checks if entered username is valid. <a href="#ac078497a378d4bedb8bab22dcc362b7c"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUsers.html#a7c61019e954d60fa38fe0c20554fa53d">checkPassword</a> ($pass)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">checks if the password is valid. <a href="#a7c61019e954d60fa38fe0c20554fa53d"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUsers.html#a1ccd65e0ad68710b6176b381fe062a18">checkEmail</a> ($email)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">wrapper to check if the email address is valid. <a href="#a1ccd65e0ad68710b6176b381fe062a18"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUsers.html#a090fa5f2ca4565c03ffd21eae1393ab0">validEmail</a> ($email)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">check if the emailaddress structure is valid. <a href="#a090fa5f2ca4565c03ffd21eae1393ab0"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUsers.html#ad6da3241c4a12f4e81729ab830737e3c">check_change_password</a> ($values)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">check if the changing of a password is valid. <a href="#ad6da3241c4a12f4e81729ab830737e3c"></a><br/></td></tr>
|
||
|
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
|
||
|
Static Public Member Functions</h2></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">static </td><td class="memItemRight" valign="bottom"><a class="el" href="classUsers.html#ad9b1ccad9f285f5e3554003b17884482">generateSALT</a> ($length=2)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">generate a SALT. <a href="#ad9b1ccad9f285f5e3554003b17884482"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">static </td><td class="memItemRight" valign="bottom"><a class="el" href="classUsers.html#a110c60194f014cf45b93bde09b40a565">createUser</a> ($values, $user_id)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">creates a user in the shard. <a href="#a110c60194f014cf45b93bde09b40a565"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top">static </td><td class="memItemRight" valign="bottom"><a class="el" href="classUsers.html#a5879a0f4b8da3e91af153cd19ca6e548">createPermissions</a> ($pvalues)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">creates permissions in the shard db for a user. <a href="#a5879a0f4b8da3e91af153cd19ca6e548"></a><br/></td></tr>
|
||
|
<tr><td colspan="2"><h2><a name="pro-methods"></a>
|
||
|
Protected Member Functions</h2></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUsers.html#a809c817e5f9d61f80b6c07aaf3882e2d">checkUserNameExists</a> ($username)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">check if username already exists. <a href="#a809c817e5f9d61f80b6c07aaf3882e2d"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUsers.html#ab48b703be38135a0478aed6674a30fb0">checkEmailExists</a> ($email)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">check if email already exists. <a href="#ab48b703be38135a0478aed6674a30fb0"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUsers.html#a230235f569309159fb4b2b03956ebbd5">checkLoginMatch</a> ($user, $pass)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">check if username and password matches. <a href="#a230235f569309159fb4b2b03956ebbd5"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUsers.html#a6373c269ad6747ca429fa128e7eaf20b">setAmsPassword</a> ($user, $pass)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">sets the shards password. <a href="#a6373c269ad6747ca429fa128e7eaf20b"></a><br/></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUsers.html#aa28b8a5cb27f4330acf692f02a83d39f">setAmsEmail</a> ($user, $mail)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">sets the shards email. <a href="#aa28b8a5cb27f4330acf692f02a83d39f"></a><br/></td></tr>
|
||
|
<tr><td colspan="2"><h2><a name="pri-methods"></a>
|
||
|
Private Member Functions</h2></td></tr>
|
||
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUsers.html#a7bbf5cef9e09e9dc49d7811d3012da86">confirmPassword</a> ($pass_result, $pass, $confirmpass)</td></tr>
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">checks if the confirmPassword matches the original. <a href="#a7bbf5cef9e09e9dc49d7811d3012da86"></a><br/></td></tr>
|
||
|
</table>
|
||
|
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
|
||
|
<div class="textblock"><p>handles basic user registration & management functions (shard related). </p>
|
||
|
<p>The <a class="el" href="classUsers.html" title="handles basic user registration & management functions (shard related).">Users</a> class is the basis class of <a class="el" href="classWebUsers.html" title="handles CMS/WWW related functions regarding user management & registration.">WebUsers</a>, this class provides functions being used by all CMS's and our own www version. The <a class="el" href="classWebUsers.html" title="handles CMS/WWW related functions regarding user management & registration.">WebUsers</a> class however needs to be reimplemented by using the CMS's it's funcionality. This class handles the writing to the shard db mainly, and in case it's offline: writing to the ams_querycache. </p>
|
||
|
<dl class="author"><dt><b>Author:</b></dt><dd>Daan Janssens, mentored by Matthew Lagoe </dd></dl>
|
||
|
</div><hr/><h2>Member Function Documentation</h2>
|
||
|
<a class="anchor" id="ad6da3241c4a12f4e81729ab830737e3c"></a><!-- doxytag: member="Users::check_change_password" ref="ad6da3241c4a12f4e81729ab830737e3c" args="($values)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classUsers.html#ad6da3241c4a12f4e81729ab830737e3c">Users::check_change_password</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>values</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>check if the changing of a password is valid. </p>
|
||
|
<p>a mod/admin doesn't has to fill in the previous password when he wants to change the password, however for changing his own password he has to fill it in. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$values</td><td>an array containing the CurrentPass, ConfirmNewPass, NewPass and adminChangesOthers </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>if it is valid "success will be returned, else an array with errors will be returned. </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a6f124a6e3b8d117604e707601a6b4876"></a><!-- doxytag: member="Users::check_Register" ref="a6f124a6e3b8d117604e707601a6b4876" args="($values)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classUsers.html#a6f124a6e3b8d117604e707601a6b4876">Users::check_Register</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>values</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>checks if entered values before registering are valid. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$array</td><td>with Username,Password, ConfirmPass and Email. </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>string Info: Returns a string, if input data is valid then "success" is returned, else an array with errors </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a1ccd65e0ad68710b6176b381fe062a18"></a><!-- doxytag: member="Users::checkEmail" ref="a1ccd65e0ad68710b6176b381fe062a18" args="($email)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classUsers.html#a1ccd65e0ad68710b6176b381fe062a18">Users::checkEmail</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>email</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>wrapper to check if the email address is valid. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$email</td><td>the email address </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>"success", else in case it isn't valid an error will be returned. </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ab48b703be38135a0478aed6674a30fb0"></a><!-- doxytag: member="Users::checkEmailExists" ref="ab48b703be38135a0478aed6674a30fb0" args="($email)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classUsers.html#ab48b703be38135a0478aed6674a30fb0">Users::checkEmailExists</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>email</em></td><td>)</td>
|
||
|
<td><code> [protected]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>check if email already exists. </p>
|
||
|
<p>This is the base function, it should be overwritten by the <a class="el" href="classWebUsers.html" title="handles CMS/WWW related functions regarding user management & registration.">WebUsers</a> class. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$email</td><td>the email address </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>string Info: Returns true or false if the email is in the www db. </dd></dl>
|
||
|
|
||
|
<p>Reimplemented in <a class="el" href="classWebUsers.html#a2874604f0ac49c770bbbffef342466ff">WebUsers</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a230235f569309159fb4b2b03956ebbd5"></a><!-- doxytag: member="Users::checkLoginMatch" ref="a230235f569309159fb4b2b03956ebbd5" args="($user, $pass)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classUsers.html#a230235f569309159fb4b2b03956ebbd5">Users::checkLoginMatch</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>user</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>pass</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td><code> [protected]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>check if username and password matches. </p>
|
||
|
<p>This is the base function, it should be overwritten by the <a class="el" href="classWebUsers.html" title="handles CMS/WWW related functions regarding user management & registration.">WebUsers</a> class. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$user</td><td>the inserted username </td></tr>
|
||
|
<tr><td class="paramname">$pass</td><td>the inserted password </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
<p>Reimplemented in <a class="el" href="classWebUsers.html#a488f20463bfac01871810fa5f7461e10">WebUsers</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a7c61019e954d60fa38fe0c20554fa53d"></a><!-- doxytag: member="Users::checkPassword" ref="a7c61019e954d60fa38fe0c20554fa53d" args="($pass)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classUsers.html#a7c61019e954d60fa38fe0c20554fa53d">Users::checkPassword</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>pass</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>checks if the password is valid. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$pass</td><td>the password willing to be used. </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>string Info: Returns a string based on if the password is valid, if valid then "success" is returned </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ac078497a378d4bedb8bab22dcc362b7c"></a><!-- doxytag: member="Users::checkUser" ref="ac078497a378d4bedb8bab22dcc362b7c" args="($username)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classUsers.html#ac078497a378d4bedb8bab22dcc362b7c">Users::checkUser</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>username</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>checks if entered username is valid. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$username</td><td>the username that the user wants to use. </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>string Info: Returns a string based on if the username is valid, if valid then "success" is returned </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a809c817e5f9d61f80b6c07aaf3882e2d"></a><!-- doxytag: member="Users::checkUserNameExists" ref="a809c817e5f9d61f80b6c07aaf3882e2d" args="($username)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classUsers.html#a809c817e5f9d61f80b6c07aaf3882e2d">Users::checkUserNameExists</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>username</em></td><td>)</td>
|
||
|
<td><code> [protected]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>check if username already exists. </p>
|
||
|
<p>This is the base function, it should be overwritten by the <a class="el" href="classWebUsers.html" title="handles CMS/WWW related functions regarding user management & registration.">WebUsers</a> class. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$username</td><td>the username </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>string Info: Returns true or false if the user is in the www db. </dd></dl>
|
||
|
|
||
|
<p>Reimplemented in <a class="el" href="classWebUsers.html#a717ecd295ccfcf9dfa9a9d6d84b97d3b">WebUsers</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a7bbf5cef9e09e9dc49d7811d3012da86"></a><!-- doxytag: member="Users::confirmPassword" ref="a7bbf5cef9e09e9dc49d7811d3012da86" args="($pass_result, $pass, $confirmpass)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classUsers.html#a7bbf5cef9e09e9dc49d7811d3012da86">Users::confirmPassword</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>pass_result</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>pass</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>confirmpass</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td><code> [private]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>checks if the confirmPassword matches the original. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$pass_result</td><td>the result of the previous password check. </td></tr>
|
||
|
<tr><td class="paramname">$pass</td><td>the original pass. </td></tr>
|
||
|
<tr><td class="paramname">$confirmpass</td><td>the confirmation password. </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>string Info: Verify's $_POST["Password"] is the same as $_POST["ConfirmPass"] </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a5879a0f4b8da3e91af153cd19ca6e548"></a><!-- doxytag: member="Users::createPermissions" ref="a5879a0f4b8da3e91af153cd19ca6e548" args="($pvalues)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static <a class="el" href="classUsers.html#a5879a0f4b8da3e91af153cd19ca6e548">Users::createPermissions</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>pvalues</em></td><td>)</td>
|
||
|
<td><code> [static]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>creates permissions in the shard db for a user. </p>
|
||
|
<p>incase the shard is offline it will place it in the ams_querycache. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$pvalues</td><td>with username </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a110c60194f014cf45b93bde09b40a565"></a><!-- doxytag: member="Users::createUser" ref="a110c60194f014cf45b93bde09b40a565" args="($values, $user_id)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static <a class="el" href="classUsers.html#a110c60194f014cf45b93bde09b40a565">Users::createUser</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>values</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>user_id</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td><code> [static]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>creates a user in the shard. </p>
|
||
|
<p>incase the shard is offline it will place it in the ams_querycache. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$values</td><td>with name,pass and mail </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>ok if it's get correctly added to the shard, else return lib offline and put in libDB, if libDB is also offline return liboffline. </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ad9b1ccad9f285f5e3554003b17884482"></a><!-- doxytag: member="Users::generateSALT" ref="ad9b1ccad9f285f5e3554003b17884482" args="($length=2)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static <a class="el" href="classUsers.html#ad9b1ccad9f285f5e3554003b17884482">Users::generateSALT</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>length</em> = <code>2</code></td><td>)</td>
|
||
|
<td><code> [static]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>generate a SALT. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$length,which</td><td>is by default 2 </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>a random salt of 2 chars </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="aa28b8a5cb27f4330acf692f02a83d39f"></a><!-- doxytag: member="Users::setAmsEmail" ref="aa28b8a5cb27f4330acf692f02a83d39f" args="($user, $mail)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classUsers.html#aa28b8a5cb27f4330acf692f02a83d39f">Users::setAmsEmail</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>user</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>mail</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td><code> [protected]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>sets the shards email. </p>
|
||
|
<p>in case the shard is offline, the entry will be stored in the ams_querycache. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$user</td><td>the usersname of the account of which we want to change the emailaddress. </td></tr>
|
||
|
<tr><td class="paramname">$mail</td><td>the new email address </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>ok if it worked, if the lib or shard is offline it will return liboffline or shardoffline. </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a6373c269ad6747ca429fa128e7eaf20b"></a><!-- doxytag: member="Users::setAmsPassword" ref="a6373c269ad6747ca429fa128e7eaf20b" args="($user, $pass)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classUsers.html#a6373c269ad6747ca429fa128e7eaf20b">Users::setAmsPassword</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>user</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>pass</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td><code> [protected]</code></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>sets the shards password. </p>
|
||
|
<p>in case the shard is offline, the entry will be stored in the ams_querycache. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$user</td><td>the usersname of the account of which we want to change the password. </td></tr>
|
||
|
<tr><td class="paramname">$pass</td><td>the new password. </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>ok if it worked, if the lib or shard is offline it will return liboffline or shardoffline. </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a090fa5f2ca4565c03ffd21eae1393ab0"></a><!-- doxytag: member="Users::validEmail" ref="a090fa5f2ca4565c03ffd21eae1393ab0" args="($email)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classUsers.html#a090fa5f2ca4565c03ffd21eae1393ab0">Users::validEmail</a> </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">$ </td>
|
||
|
<td class="paramname"><em>email</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>check if the emailaddress structure is valid. </p>
|
||
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">$email</td><td>the email address </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="return"><dt><b>Returns:</b></dt><dd>true or false </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
||
|
<li>/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/users.php</li>
|
||
|
</ul>
|
||
|
</div><!-- contents -->
|
||
|
<!-- window showing the filter options -->
|
||
|
<div id="MSearchSelectWindow"
|
||
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
||
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
||
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||
|
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Variables</a></div>
|
||
|
|
||
|
<!-- iframe showing the search results (closed by default) -->
|
||
|
<div id="MSearchResultsWindow">
|
||
|
<iframe src="javascript:void(0)" frameborder="0"
|
||
|
name="MSearchResults" id="MSearchResults">
|
||
|
</iframe>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
<hr class="footer"/><address class="footer"><small>
|
||
|
Generated on Fri Sep 13 2013 00:20:37 for Ryzom Account Management System by  <a href="http://www.doxygen.org/index.html">
|
||
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||
|
</a> 1.7.6.1
|
||
|
</small></address>
|
||
|
|
||
|
</body>
|
||
|
</html>
|