altocompta/doc/developper/html/admin__repo_8php.html
2006-06-25 21:07:20 +00:00

578 lines
22 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/admin_repo.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>admin_repo.php File Reference</h1>Administration of the repository : creation of user, folder, security, templates... Accessible only by the administrator. <a href="#_details">More...</a>
<p>
<p>
<a href="admin__repo_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="admin__repo_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="admin__repo_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="admin__repo_8php.html#a2">return</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="admin__repo_8php.html#a3">$pass5</a> = md5($_POST['PASS'])</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="admin__repo_8php.html#a4">$Res</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="admin__repo_8php.html#a5">$cn</a> = GetAllUser()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="admin__repo_8php.html#a6">$compteur</a> = 0</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="admin__repo_8php.html#a7">$dos</a> = trim($_POST[&quot;DATABASE&quot;])</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="admin__repo_8php.html#a8">exit</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="admin__repo_8php.html#a9">$desc</a> = FormatString($_POST[&quot;DESCRIPTION&quot;])</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="admin__repo_8php.html#a10">$l_id</a> = GetDbId($dos)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="admin__repo_8php.html#a11">$template</a> = &quot;&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="admin__repo_8php.html#a12">$cl</a> = 'class=&quot;even&quot;'</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="admin__repo_8php.html#a13">$count</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="admin__repo_8php.html#a14">$mod_desc</a> = FormatString($_POST[&quot;FMOD_DESC&quot;])</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="admin__repo_8php.html#a15">$cn_mod</a> = dbconnect($l_id,'mod')</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="admin__repo_8php.html#a16">$a_seq</a> = array('s_jrn','s_jrn_op','s_centralized','s_stock_goods')</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="admin__repo_8php.html#a17">$sql</a> = &quot;select jrn_def_id from jrn_def &quot;</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="admin__repo_8php.html#a18">$Max</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="admin__repo_8php.html#a19">$available</a> = &quot;&quot;</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Administration of the repository : creation of user, folder, security, templates... Accessible only by the administrator.
<p>
<p>
Definition in file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>.<hr><h2>Variable Documentation</h2>
<a class="anchor" name="a16"></a><!-- doxytag: member="admin_repo.php::$a_seq" ref="a16" 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_seq = array('s_jrn','s_jrn_op','s_centralized','s_stock_goods') </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="admin__repo_8php-source.html#l00226">226</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a19"></a><!-- doxytag: member="admin_repo.php::$available" ref="a19" 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">$available = &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="admin__repo_8php-source.html#l00278">278</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a12"></a><!-- doxytag: member="admin_repo.php::$cl" 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"><a class="el" href="user__sec_8php.html#a13">else</a> $cl = 'class=&quot;even&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="admin__repo_8php-source.html#l00149">149</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a5"></a><!-- doxytag: member="admin_repo.php::$cn" 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">$cn = GetAllUser() </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="admin__repo_8php-source.html#l00065">65</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a15"></a><!-- doxytag: member="admin_repo.php::$cn_mod" 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">$cn_mod = dbconnect($l_id,'mod') </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="admin__repo_8php-source.html#l00217">217</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a6"></a><!-- doxytag: member="admin_repo.php::$compteur" 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">$compteur = 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="admin__repo_8php-source.html#l00067">67</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a13"></a><!-- doxytag: member="admin_repo.php::$count" 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">$count = 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="admin__repo_8php-source.html#l00163">163</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>.
<p>
Referenced by <a class="el" href="form__inc_8php-source.html#l00180">GetNumberLine()</a>, <a class="el" href="user__common_8php-source.html#l00322">ListJrn()</a>, and <a class="el" href="class_8pdf_8php-source.html#l00821">Cpdf::o_page()</a>. </td>
</tr>
</table>
<a class="anchor" name="a9"></a><!-- doxytag: member="admin_repo.php::$desc" 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">$desc = FormatString($_POST[&quot;DESCRIPTION&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="admin__repo_8php-source.html#l00119">119</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>.
<p>
Referenced by <a class="el" href="class__action_8php-source.html#l00199">action::Confirm()</a>, <a class="el" href="class__action_8php-source.html#l00085">action::Display()</a>, and <a class="el" href="user__menu_8php-source.html#l00037">u_ShowDossier()</a>. </td>
</tr>
</table>
<a class="anchor" name="a7"></a><!-- doxytag: member="admin_repo.php::$dos" 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">$dos = trim($_POST[&quot;DATABASE&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="admin__repo_8php-source.html#l00114">114</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a10"></a><!-- doxytag: member="admin_repo.php::$l_id" 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">$l_id = GetDbId($dos) </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="admin__repo_8php-source.html#l00124">124</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>.
<p>
Referenced by <a class="el" href="jrn_8php-source.html#l00711">GetData()</a>, and <a class="el" href="jrn_8php-source.html#l00583">ViewJrn()</a>. </td>
</tr>
</table>
<a class="anchor" name="a18"></a><!-- doxytag: member="admin_repo.php::$Max" ref="a18" 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">$Max = 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="admin__repo_8php-source.html#l00233">233</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a14"></a><!-- doxytag: member="admin_repo.php::$mod_desc" 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">$mod_desc = FormatString($_POST[&quot;FMOD_DESC&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="admin__repo_8php-source.html#l00203">203</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a3"></a><!-- doxytag: member="admin_repo.php::$pass5" 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">$pass5 = md5($_POST['PASS']) </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="admin__repo_8php-source.html#l00059">59</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>.
<p>
Referenced by <a class="el" href="class__user_8php-source.html#l00143">cl_user::Admin()</a>, and <a class="el" href="class__user_8php-source.html#l00085">cl_user::Check()</a>. </td>
</tr>
</table>
<a class="anchor" name="a0"></a><!-- doxytag: member="admin_repo.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="admin__repo_8php-source.html#l00031">31</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a4"></a><!-- doxytag: member="admin_repo.php::$Res" 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">$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,<span class="stringliteral">"insert into ac_users(use_first_name,use_name,use_login,use_active,use_pass)</span>
<span class="stringliteral"> values ('"</span>.$_POST[<span class="stringliteral">"FNAME"</span>].<span class="stringliteral">"','"</span>.$_POST[<span class="stringliteral">"LNAME"</span>].<span class="stringliteral">"','"</span>.$_POST[<span class="stringliteral">"LOGIN"</span>].<span class="stringliteral">"',1,'$pass5')"</span>)
</pre></div>
<p>
Definition at line <a class="el" href="admin__repo_8php-source.html#l00060">60</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a17"></a><!-- doxytag: member="admin_repo.php::$sql" ref="a17" 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">$sql = &quot;select jrn_def_id from jrn_def &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="admin__repo_8php-source.html#l00231">231</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a11"></a><!-- doxytag: member="admin_repo.php::$template" 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">$template = &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="admin__repo_8php-source.html#l00140">140</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a1"></a><!-- doxytag: member="admin_repo.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="admin__repo_8php-source.html#l00033">33</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a8"></a><!-- doxytag: member="admin_repo.php::exit" 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"><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="admin__repo_8php-source.html#l00117">117</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a2"></a><!-- doxytag: member="admin_repo.php::return" 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"><a class="el" href="priv__user_8php.html#a2">return</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="admin__repo_8php-source.html#l00042">42</a> of file <a class="el" href="admin__repo_8php-source.html">admin_repo.php</a>. </td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Sun Jun 25 23:05:36 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>