altocompta/doc/developper/html/user__sec_8php.html

470 lines
18 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>phpcompta: /home/dany/developpement/phpcompta-dev/phpcompta/html/user_sec.php File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.4 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<div class="nav">
<a class="el" href="dir_000000.html">developpement</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_000001.html">phpcompta-dev</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_000002.html">phpcompta</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_000003.html">html</a></div>
<h1>user_sec.php File Reference</h1>Set the security for an user. <a href="#_details">More...</a>
<p>
<p>
<a href="user__sec_8php-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="user__sec_8php.html#a0">$rep</a> = DbConnect()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="user__sec_8php.html#a1">$User</a> = new <a class="el" href="classcl__user.html">cl_user</a>($rep)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="user__sec_8php.html#a2">$cn_dossier</a> = DbConnect($_SESSION['g_dossier'])</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="user__sec_8php.html#a3">exit</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="user__sec_8php.html#a4">$cn</a> = DbConnect()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="user__sec_8php.html#a5">$MaxUser</a> = pg_NumRows($User)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="user__sec_8php.html#a6">$action</a> = &quot;&quot;</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="user__sec_8php.html#a7">$l2_Res</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="user__sec_8php.html#a8">$l2_count</a> = pg_NumRows($l2_Res)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="user__sec_8php.html#a9">$Res</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="user__sec_8php.html#a10">$l2_line</a> = pg_fetch_array($User,0)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="user__sec_8php.html#a11">$admin</a> = CheckIsAdmin($l2_line['use_login'])</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="user__sec_8php.html#a12">$MaxJrn</a> = pg_NumRows($Res)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="user__sec_8php.html#a13">else</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="user__sec_8php.html#a14">$l_change</a> = &quot;action=change_jrn&amp;<a class="el" href="classjrn.html">jrn</a>=$l_line[jrn_def_id]&amp;login=$l2_line[use_login]&amp;user_id=$l2_line[use_id]&quot;</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="user__sec_8php.html#a13">else</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="user__sec_8php.html#a15">$right</a> = 3</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Set the security for an user.
<p>
<p>
Definition in file <a class="el" href="user__sec_8php-source.html">user_sec.php</a>.<hr><h2>Variable Documentation</h2>
<a class="anchor" name="a6"></a><!-- doxytag: member="user_sec.php::$action" ref="a6" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$<a class="el" href="classaction.html">action</a> = &quot;&quot; </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="user__sec_8php-source.html#l00076">76</a> of file <a class="el" href="user__sec_8php-source.html">user_sec.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a11"></a><!-- doxytag: member="user_sec.php::$admin" ref="a11" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$admin = CheckIsAdmin($l2_line['use_login']) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="user__sec_8php-source.html#l00160">160</a> of file <a class="el" href="user__sec_8php-source.html">user_sec.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a4"></a><!-- doxytag: member="user_sec.php::$cn" ref="a4" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$cn = DbConnect() </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="user__sec_8php-source.html#l00053">53</a> of file <a class="el" href="user__sec_8php-source.html">user_sec.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a2"></a><!-- doxytag: member="user_sec.php::$cn_dossier" ref="a2" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$cn_dossier = DbConnect($_SESSION['g_dossier']) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="user__sec_8php-source.html#l00041">41</a> of file <a class="el" href="user__sec_8php-source.html">user_sec.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a8"></a><!-- doxytag: member="user_sec.php::$l2_count" ref="a8" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$l2_count = pg_NumRows($l2_Res) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="user__sec_8php-source.html#l00102">102</a> of file <a class="el" href="user__sec_8php-source.html">user_sec.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a10"></a><!-- doxytag: member="user_sec.php::$l2_line" ref="a10" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$l2_line = pg_fetch_array($User,0) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="user__sec_8php-source.html#l00141">141</a> of file <a class="el" href="user__sec_8php-source.html">user_sec.php</a>.
<p>
Referenced by <a class="el" href="jrn_8php-source.html#l00038">RecordJrn()</a>. </td>
</tr>
</table>
<a class="anchor" name="a7"></a><!-- doxytag: member="user_sec.php::$l2_Res" ref="a7" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$l2_Res </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<b>Initial value:</b><div class="fragment"><pre class="fragment"><a class="code" href="postgres_8php.html#a2">ExecSql</a>($cn_dossier,
<span class="stringliteral">"select * from user_sec_jrn where uj_login='$login' and uj_jrn_id=$jrn"</span>)
</pre></div>
<p>
Definition at line <a class="el" href="user__sec_8php-source.html#l00100">100</a> of file <a class="el" href="user__sec_8php-source.html">user_sec.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a14"></a><!-- doxytag: member="user_sec.php::$l_change" ref="a14" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$l_change = &quot;action=change_jrn&amp;<a class="el" href="classjrn.html">jrn</a>=$l_line[jrn_def_id]&amp;login=$l2_line[use_login]&amp;user_id=$l2_line[use_id]&quot; </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="user__sec_8php-source.html#l00170">170</a> of file <a class="el" href="user__sec_8php-source.html">user_sec.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a12"></a><!-- doxytag: member="user_sec.php::$MaxJrn" ref="a12" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$MaxJrn = pg_NumRows($Res) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="user__sec_8php-source.html#l00163">163</a> of file <a class="el" href="user__sec_8php-source.html">user_sec.php</a>.
<p>
Referenced by <a class="el" href="central__inc_8php-source.html#l00036">Centralise()</a>. </td>
</tr>
</table>
<a class="anchor" name="a5"></a><!-- doxytag: member="user_sec.php::$MaxUser" ref="a5" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$MaxUser = pg_NumRows($User) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="user__sec_8php-source.html#l00055">55</a> of file <a class="el" href="user__sec_8php-source.html">user_sec.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a0"></a><!-- doxytag: member="user_sec.php::$rep" ref="a0" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$rep = DbConnect() </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="user__sec_8php-source.html#l00034">34</a> of file <a class="el" href="user__sec_8php-source.html">user_sec.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a9"></a><!-- doxytag: member="user_sec.php::$Res" ref="a9" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$Res </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<b>Initial value:</b><div class="fragment"><pre class="fragment"><a class="code" href="postgres_8php.html#a2">ExecSql</a>($cn_dossier,
<span class="stringliteral">"delete from user_sec_act where ua_login='"</span>.$_GET['login'].<span class="stringliteral">"' and ua_act_id=$act"</span>)
</pre></div>
<p>
Definition at line <a class="el" href="user__sec_8php-source.html#l00122">122</a> of file <a class="el" href="user__sec_8php-source.html">user_sec.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a15"></a><!-- doxytag: member="user_sec.php::$right" ref="a15" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="user__sec_8php.html#a13">else</a> $right = 3 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="user__sec_8php-source.html#l00175">175</a> of file <a class="el" href="user__sec_8php-source.html">user_sec.php</a>.
<p>
Referenced by <a class="el" href="class_8ezpdf_8php-source.html#l00134">Cezpdf::ezSetCmMargins()</a>, <a class="el" href="class_8ezpdf_8php-source.html#l00246">Cezpdf::ezSetMargins()</a>, <a class="el" href="class_8ezpdf_8php-source.html#l01205">Cezpdf::ezText()</a>, <a class="el" href="user__menu_8php-source.html#l00246">ShowMenuJrnUser()</a>, and <a class="el" href="postgres_8php-source.html#l00289">SyncRight()</a>. </td>
</tr>
</table>
<a class="anchor" name="a1"></a><!-- doxytag: member="user_sec.php::$User" ref="a1" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$User = new <a class="el" href="classcl__user.html">cl_user</a>($rep) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="user__sec_8php-source.html#l00036">36</a> of file <a class="el" href="user__sec_8php-source.html">user_sec.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a13"></a><!-- doxytag: member="user_sec.php::else" ref="a13" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="user__sec_8php.html#a13">else</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="user__sec_8php-source.html#l00167">167</a> of file <a class="el" href="user__sec_8php-source.html">user_sec.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a3"></a><!-- doxytag: member="user_sec.php::exit" ref="a3" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="user__sec_8php.html#a3">exit</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="user__sec_8php-source.html#l00046">46</a> of file <a class="el" href="user__sec_8php-source.html">user_sec.php</a>. </td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 23 00:12:46 2006 for phpcompta by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4 </small></address>
</body>
</html>