Location: PHPKode > projects > Simple Web Account Manager > swam-1.0beta2/phpdoc/__filesource/fsource_swam__config.inc.html
<?xml version="1.0" encoding="iso-8859-1"?>
<!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>
			<!-- template designed by Marco Von Ballmoos -->
			<title>File Source for config.inc</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
						<h1>Source for file config.inc</h1>
<p>Documentation is available at <a href="../swam/_config.inc.html">config.inc</a></p>
<div class="src-code">
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php">&lt;?php</span></div></li>
<li><div class="src-line"><a name="a2"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a3"></a><span class="src-comm">/*</span></div></li>
<li><div class="src-line"><a name="a4"></a><span class="src-comm">*&nbsp;SWAM&nbsp;(Simple&nbsp;Web&nbsp;Account&nbsp;Manager)&nbsp;is&nbsp;a&nbsp;personal&nbsp;finance&nbsp;manager</span></div></li>
<li><div class="src-line"><a name="a5"></a><span class="src-comm">*&nbsp;written&nbsp;in&nbsp;PHP.</span></div></li>
<li><div class="src-line"><a name="a6"></a><span class="src-comm">*&nbsp;Copyright&nbsp;(C)&nbsp;2004-2008&nbsp;Mathieu&nbsp;Peltier.</span></div></li>
<li><div class="src-line"><a name="a7"></a><span class="src-comm">*&nbsp;Contact:&nbsp;mpeltier&nbsp;at&nbsp;users.sourceforge.net</span></div></li>
<li><div class="src-line"><a name="a8"></a><span class="src-comm">*</span></div></li>
<li><div class="src-line"><a name="a9"></a><span class="src-comm">*&nbsp;This&nbsp;program&nbsp;is&nbsp;free&nbsp;software:&nbsp;you&nbsp;can&nbsp;redistribute&nbsp;it&nbsp;and/or&nbsp;modify</span></div></li>
<li><div class="src-line"><a name="a10"></a><span class="src-comm">*&nbsp;it&nbsp;under&nbsp;the&nbsp;terms&nbsp;of&nbsp;the&nbsp;GNU&nbsp;General&nbsp;Public&nbsp;License&nbsp;as&nbsp;published&nbsp;by</span></div></li>
<li><div class="src-line"><a name="a11"></a><span class="src-comm">*&nbsp;the&nbsp;Free&nbsp;Software&nbsp;Foundation,&nbsp;either&nbsp;version&nbsp;3&nbsp;of&nbsp;the&nbsp;License,&nbsp;or</span></div></li>
<li><div class="src-line"><a name="a12"></a><span class="src-comm">*&nbsp;(at&nbsp;your&nbsp;option)&nbsp;any&nbsp;later&nbsp;version.</span></div></li>
<li><div class="src-line"><a name="a13"></a><span class="src-comm">*</span></div></li>
<li><div class="src-line"><a name="a14"></a><span class="src-comm">*&nbsp;This&nbsp;program&nbsp;is&nbsp;distributed&nbsp;in&nbsp;the&nbsp;hope&nbsp;that&nbsp;it&nbsp;will&nbsp;be&nbsp;useful,&nbsp;but</span></div></li>
<li><div class="src-line"><a name="a15"></a><span class="src-comm">*&nbsp;WITHOUT&nbsp;ANY&nbsp;WARRANTY;&nbsp;without&nbsp;even&nbsp;the&nbsp;implied&nbsp;warranty&nbsp;of</span></div></li>
<li><div class="src-line"><a name="a16"></a><span class="src-comm">*&nbsp;MERCHANTABILITY&nbsp;or&nbsp;FITNESS&nbsp;FOR&nbsp;A&nbsp;PARTICULAR&nbsp;PURPOSE.&nbsp;See&nbsp;the&nbsp;GNU</span></div></li>
<li><div class="src-line"><a name="a17"></a><span class="src-comm">*&nbsp;General&nbsp;Public&nbsp;License&nbsp;for&nbsp;more&nbsp;details.</span></div></li>
<li><div class="src-line"><a name="a18"></a><span class="src-comm">*</span></div></li>
<li><div class="src-line"><a name="a19"></a><span class="src-comm">*&nbsp;You&nbsp;should&nbsp;have&nbsp;received&nbsp;a&nbsp;copy&nbsp;of&nbsp;the&nbsp;GNU&nbsp;General&nbsp;Public&nbsp;License</span></div></li>
<li><div class="src-line"><a name="a20"></a><span class="src-comm">*&nbsp;along&nbsp;with&nbsp;this&nbsp;program.&nbsp;If&nbsp;not,&nbsp;see&nbsp;&lt;http://www.gnu.org/licenses/&gt;.</span></div></li>
<li><div class="src-line"><a name="a21"></a><span class="src-comm">*</span></div></li>
<li><div class="src-line"><a name="a22"></a><span class="src-comm">*&nbsp;Initial&nbsp;developer(s):&nbsp;Mathieu&nbsp;Peltier.</span></div></li>
<li><div class="src-line"><a name="a23"></a><span class="src-comm">*&nbsp;Contributor(s):</span></div></li>
<li><div class="src-line"><a name="a24"></a><span class="src-comm">*/</span></div></li>
<li><div class="src-line"><a name="a25"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a26"></a><span class="src-doc">/**</span></div></li>
<li><div class="src-line"><a name="a27"></a><span class="src-doc">&nbsp;*&nbsp;SWAM&nbsp;configuration&nbsp;file.</span></div></li>
<li><div class="src-line"><a name="a28"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a29"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@package</span><span class="src-doc">&nbsp;swam</span></div></li>
<li><div class="src-line"><a name="a30"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@author</span><span class="src-doc">&nbsp;Mathieu&nbsp;Peltier&nbsp;&lt;hide@address.com&gt;</span></div></li>
<li><div class="src-line"><a name="a31"></a><span class="src-doc">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a32"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a33"></a><span class="src-doc">/**&nbsp;SWAM&nbsp;root&nbsp;path&nbsp;(*without*&nbsp;ending&nbsp;slash:&nbsp;e.g&nbsp;/path/to/root).&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a34"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'SWAM_ROOT_PATH'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'/swamdev'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a35"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a36"></a><span class="src-comm">//&nbsp;Data&nbsp;source&nbsp;settings</span></div></li>
<li><div class="src-line"><a name="a37"></a><span class="src-comm">//&nbsp;-----------------------</span></div></li>
<li><div class="src-line"><a name="a38"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a39"></a><span class="src-doc">/**&nbsp;</span></div></li>
<li><div class="src-line"><a name="a40"></a><span class="src-doc">&nbsp;*&nbsp;Data&nbsp;source&nbsp;settings</span></div></li>
<li><div class="src-line"><a name="a41"></a><span class="src-doc">&nbsp;*&nbsp;</span></div></li>
<li><div class="src-line"><a name="a42"></a><span class="src-doc">&nbsp;*&nbsp;Warning:&nbsp;a&nbsp;rule&nbsp;is&nbsp;set&nbsp;in&nbsp;.htaccess&nbsp;to&nbsp;prevent&nbsp;to&nbsp;load&nbsp;the&nbsp;SQLite</span></div></li>
<li><div class="src-line"><a name="a43"></a><span class="src-doc">&nbsp;*&nbsp;database&nbsp;from&nbsp;the&nbsp;Web&nbsp;server&nbsp;if&nbsp;the&nbsp;file&nbsp;is&nbsp;accessible&nbsp;-&nbsp;this&nbsp;is&nbsp;not</span></div></li>
<li><div class="src-line"><a name="a44"></a><span class="src-doc">&nbsp;*&nbsp;the&nbsp;recommanded&nbsp;configuration.&nbsp;If&nbsp;you&nbsp;change&nbsp;the&nbsp;file&nbsp;name,&nbsp;make</span></div></li>
<li><div class="src-line"><a name="a45"></a><span class="src-doc">&nbsp;*&nbsp;sure&nbsp;to&nbsp;edit&nbsp;.htaccess&nbsp;file&nbsp;too.</span></div></li>
<li><div class="src-line"><a name="a46"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a47"></a><span class="src-doc">&nbsp;*&nbsp;Sample&nbsp;DNS&nbsp;for&nbsp;mysql&nbsp;and&nbsp;postgresql:</span></div></li>
<li><div class="src-line"><a name="a48"></a><span class="src-doc">&nbsp;*&nbsp;mysql:host=&lt;hostname&gt;;port=&lt;port&gt;;dbname=&lt;database&gt;</span></div></li>
<li><div class="src-line"><a name="a49"></a><span class="src-doc">&nbsp;*&nbsp;pgsql:host=&lt;hostname&gt;&nbsp;port=&lt;port&gt;&nbsp;dbname=&lt;database&gt;</span></div></li>
<li><div class="src-line"><a name="a50"></a><span class="src-doc">&nbsp;*&nbsp;Login&nbsp;and&nbsp;password&nbsp;are&nbsp;ignored&nbsp;by&nbsp;SQLite.</span></div></li>
<li><div class="src-line"><a name="a51"></a><span class="src-doc">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a52"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'SWAM_DATASOURCE'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'sqlite:/home/mpeltier/local/swam/swam.sqlite'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a53"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a54"></a><span class="src-doc">/**&nbsp;</span></div></li>
<li><div class="src-line"><a name="a55"></a><span class="src-doc">&nbsp;*&nbsp;Data&nbsp;source&nbsp;login&nbsp;(ignored&nbsp;by&nbsp;SQLite).</span></div></li>
<li><div class="src-line"><a name="a56"></a><span class="src-doc">&nbsp;*/&nbsp;</span></div></li>
<li><div class="src-line"><a name="a57"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'SWAM_DATASOURCE_LOGIN'</span><span class="src-sym">,&nbsp;</span><span class="src-str">''</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a58"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a59"></a><span class="src-doc">/**&nbsp;</span></div></li>
<li><div class="src-line"><a name="a60"></a><span class="src-doc">&nbsp;*&nbsp;Data&nbsp;source&nbsp;password&nbsp;(ignored&nbsp;by&nbsp;SQLite).</span></div></li>
<li><div class="src-line"><a name="a61"></a><span class="src-doc">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a62"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'SWAM_DATASOURCE_PASSWORD'</span><span class="src-sym">,&nbsp;</span><span class="src-str">''</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a63"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a64"></a><span class="src-comm">//&nbsp;Mail&nbsp;settings</span></div></li>
<li><div class="src-line"><a name="a65"></a><span class="src-comm">//&nbsp;-----------------------</span></div></li>
<li><div class="src-line"><a name="a66"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a67"></a><span class="src-doc">/**&nbsp;SMTP&nbsp;server&nbsp;to&nbsp;use.&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a68"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'SWAM_SMTP_SERVER'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'localhost'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a69"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a70"></a><span class="src-doc">/**&nbsp;</span></div></li>
<li><div class="src-line"><a name="a71"></a><span class="src-doc">&nbsp;*&nbsp;Webmaster&nbsp;email&nbsp;(used&nbsp;as&nbsp;from&nbsp;field&nbsp;of&nbsp;administrative&nbsp;emails&nbsp;sent</span></div></li>
<li><div class="src-line"><a name="a72"></a><span class="src-doc">&nbsp;*&nbsp;by&nbsp;SWAM).</span></div></li>
<li><div class="src-line"><a name="a73"></a><span class="src-doc">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a74"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'SWAM_WEBMASTER_EMAIL'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'SWAM&nbsp;Webmaster&nbsp;&lt;hide@address.com&gt;'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a75"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a76"></a><span class="src-doc">/**</span></div></li>
<li><div class="src-line"><a name="a77"></a><span class="src-doc">&nbsp;*&nbsp;Webmaster&nbsp;mailto&nbsp;link.&nbsp;Note&nbsp;that&nbsp;it&nbsp;is&nbsp;printed&nbsp;in&nbsp;footer&nbsp;of&nbsp;all</span></div></li>
<li><div class="src-line"><a name="a78"></a><span class="src-doc">&nbsp;*&nbsp;pages.&nbsp;To&nbsp;prevent&nbsp;spam,&nbsp;you&nbsp;may&nbsp;want&nbsp;to&nbsp;use&nbsp;the&nbsp;JavaScript&nbsp;email</span></div></li>
<li><div class="src-line"><a name="a79"></a><span class="src-doc">&nbsp;*&nbsp;obfuscator&nbsp;at&nbsp;http://www.jottings.com/obfuscator.htm.</span></div></li>
<li><div class="src-line"><a name="a80"></a><span class="src-doc">&nbsp;*&nbsp;To&nbsp;do&nbsp;that,&nbsp;just&nbsp;use&nbsp;the&nbsp;online&nbsp;form,&nbsp;copy/paste&nbsp;the&nbsp;content&nbsp;of&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a81"></a><span class="src-doc">&nbsp;*&nbsp;&lt;script&gt;&nbsp;element&nbsp;here&nbsp;and&nbsp;then&nbsp;set&nbsp;SWAM_WEBMASTER_MAILTO_JAVASCRIPT</span></div></li>
<li><div class="src-line"><a name="a82"></a><span class="src-doc">&nbsp;*&nbsp;to&nbsp;true.&nbsp;See&nbsp;SWAM_COPYRIGHT&nbsp;definition&nbsp;in&nbsp;constants.inc&nbsp;for&nbsp;a</span></div></li>
<li><div class="src-line"><a name="a83"></a><span class="src-doc">&nbsp;*&nbsp;sample:&nbsp;just&nbsp;replace&nbsp;the&nbsp;last&nbsp;line&nbsp;&quot;document.write(...)&quot;&nbsp;by:</span></div></li>
<li><div class="src-line"><a name="a84"></a><span class="src-doc">&nbsp;*&nbsp;document.write(&quot;&lt;a&nbsp;href=\'mailto:&quot;+link+&quot;\'&gt;&lt;your&nbsp;name&gt;&lt;/a&gt;&quot;)</span></div></li>
<li><div class="src-line"><a name="a85"></a><span class="src-doc">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a86"></a><span class="src-comm">#define('SWAM_WEBMASTER_MAILTO',&nbsp;'&lt;a&nbsp;href=&quot;mailto:hide@address.com&quot;&gt;Webmaster&lt;/a&gt;');</span></div></li>
<li><div class="src-line"><a name="a87"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'SWAM_WEBMASTER_MAILTO'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'</span></div></li>
<li><div class="src-line"><a name="a88"></a><span class="src-str">//&nbsp;eMail&nbsp;Obfuscator&nbsp;Script&nbsp;2.1&nbsp;by&nbsp;Tim&nbsp;Williams&nbsp;-&nbsp;freeware</span></div></li>
<li><div class="src-line"><a name="a89"></a><span class="src-str">//&nbsp;Random&nbsp;encryption&nbsp;key&nbsp;feature&nbsp;by&nbsp;Andrew&nbsp;Moulden&nbsp;-&nbsp;freeware</span></div></li>
<li><div class="src-line"><a name="a90"></a><span class="src-str">{</span></div></li>
<li><div class="src-line"><a name="a91"></a><span class="src-str">&nbsp;&nbsp;coded=&quot;hide@address.com&quot;</span></div></li>
<li><div class="src-line"><a name="a92"></a><span class="src-str">&nbsp;&nbsp;key=&quot;m6r07uadK3ATgynxZfIPb9qvkH4jDRUwSM1cleGBWszpYOELJtCiNXF52QVo8h&quot;</span></div></li>
<li><div class="src-line"><a name="a93"></a><span class="src-str">&nbsp;&nbsp;shift=coded.length</span></div></li>
<li><div class="src-line"><a name="a94"></a><span class="src-str">&nbsp;&nbsp;link=&quot;&quot;</span></div></li>
<li><div class="src-line"><a name="a95"></a><span class="src-str">&nbsp;&nbsp;for&nbsp;(i=0;&nbsp;i&lt;coded.length;&nbsp;i++)&nbsp;{</span></div></li>
<li><div class="src-line"><a name="a96"></a><span class="src-str">&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(key.indexOf(coded.charAt(i))==-1){</span></div></li>
<li><div class="src-line"><a name="a97"></a><span class="src-str">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ltr=coded.charAt(i)</span></div></li>
<li><div class="src-line"><a name="a98"></a><span class="src-str">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;link+=(ltr)</span></div></li>
<li><div class="src-line"><a name="a99"></a><span class="src-str">&nbsp;&nbsp;&nbsp;&nbsp;}</span></div></li>
<li><div class="src-line"><a name="a100"></a><span class="src-str">&nbsp;&nbsp;&nbsp;&nbsp;else&nbsp;{</span></div></li>
<li><div class="src-line"><a name="a101"></a><span class="src-str">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ltr&nbsp;=&nbsp;(key.indexOf(coded.charAt(i))-shift+key.length)&nbsp;%&nbsp;key.length</span></div></li>
<li><div class="src-line"><a name="a102"></a><span class="src-str">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;link+=(key.charAt(ltr))</span></div></li>
<li><div class="src-line"><a name="a103"></a><span class="src-str">&nbsp;&nbsp;&nbsp;&nbsp;}</span></div></li>
<li><div class="src-line"><a name="a104"></a><span class="src-str">&nbsp;&nbsp;}</span></div></li>
<li><div class="src-line"><a name="a105"></a><span class="src-str">&nbsp;&nbsp;document.write(&quot;&lt;a&nbsp;href=\'mailto:&quot;+link+&quot;\'&gt;Mathieu&nbsp;Peltier&lt;/a&gt;&quot;);</span></div></li>
<li><div class="src-line"><a name="a106"></a><span class="src-str">}'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a107"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a108"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a109"></a><span class="src-doc">/**&nbsp;Set&nbsp;this&nbsp;to&nbsp;true&nbsp;if&nbsp;you&nbsp;want&nbsp;to&nbsp;use&nbsp;JavaScript&nbsp;email&nbsp;obfuscator&nbsp;(see&nbsp;above).&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a110"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'SWAM_WEBMASTER_MAILTO_JAVASCRIPT'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'true'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a111"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a112"></a><span class="src-comm">//&nbsp;Logging&nbsp;settings</span></div></li>
<li><div class="src-line"><a name="a113"></a><span class="src-comm">//&nbsp;------------------------</span></div></li>
<li><div class="src-line"><a name="a114"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a115"></a><span class="src-doc">/**</span></div></li>
<li><div class="src-line"><a name="a116"></a><span class="src-doc">&nbsp;*&nbsp;File&nbsp;where&nbsp;to&nbsp;store&nbsp;logs.</span></div></li>
<li><div class="src-line"><a name="a117"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a118"></a><span class="src-doc">&nbsp;*&nbsp;Warning:&nbsp;a&nbsp;rule&nbsp;is&nbsp;set&nbsp;in&nbsp;.htaccess&nbsp;to&nbsp;prevent&nbsp;to&nbsp;load&nbsp;the&nbsp;log&nbsp;file</span></div></li>
<li><div class="src-line"><a name="a119"></a><span class="src-doc">&nbsp;*&nbsp;from&nbsp;the&nbsp;Web&nbsp;server&nbsp;if&nbsp;the&nbsp;file&nbsp;is&nbsp;accessible&nbsp;-&nbsp;this&nbsp;is&nbsp;not&nbsp;the</span></div></li>
<li><div class="src-line"><a name="a120"></a><span class="src-doc">&nbsp;*&nbsp;recommanded&nbsp;configuration.&nbsp;If&nbsp;you&nbsp;change&nbsp;the&nbsp;file&nbsp;name,&nbsp;make&nbsp;sure&nbsp;to</span></div></li>
<li><div class="src-line"><a name="a121"></a><span class="src-doc">&nbsp;*&nbsp;edit&nbsp;.htaccess&nbsp;file&nbsp;too.</span></div></li>
<li><div class="src-line"><a name="a122"></a><span class="src-doc">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a123"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'SWAM_LOG_FILE'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'/home/mpeltier/local/swam/swam.log'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a124"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a125"></a><span class="src-doc">/**</span></div></li>
<li><div class="src-line"><a name="a126"></a><span class="src-doc">&nbsp;*&nbsp;Log&nbsp;levels&nbsp;defined&nbsp;as&nbsp;follows:</span></div></li>
<li><div class="src-line"><a name="a127"></a><span class="src-doc">&nbsp;*&nbsp;&lt;ul&gt;</span></div></li>
<li><div class="src-line"><a name="a128"></a><span class="src-doc">&nbsp;*&nbsp;&lt;li&gt;0&nbsp;=&nbsp;PEAR_LOG_EMERG&nbsp;(System&nbsp;is&nbsp;unusable)&lt;/li&gt;</span></div></li>
<li><div class="src-line"><a name="a129"></a><span class="src-doc">&nbsp;*&nbsp;&lt;li&gt;1&nbsp;=&nbsp;PEAR_LOG_ALERT&nbsp;(Immediate&nbsp;action&nbsp;required)&lt;/li&gt;</span></div></li>
<li><div class="src-line"><a name="a130"></a><span class="src-doc">&nbsp;*&nbsp;&lt;li&gt;2&nbsp;=&nbsp;PEAR_LOG_CRIT&nbsp;(Critical&nbsp;conditions)&lt;/li&gt;</span></div></li>
<li><div class="src-line"><a name="a131"></a><span class="src-doc">&nbsp;*&nbsp;&lt;li&gt;3&nbsp;=&nbsp;PEAR_LOG_ERR&nbsp;(Error&nbsp;conditions)&lt;/li&gt;</span></div></li>
<li><div class="src-line"><a name="a132"></a><span class="src-doc">&nbsp;*&nbsp;&lt;li&gt;4&nbsp;=&nbsp;PEAR_LOG_WARNING&nbsp;(Warning&nbsp;conditions)&lt;/li&gt;</span></div></li>
<li><div class="src-line"><a name="a133"></a><span class="src-doc">&nbsp;*&nbsp;&lt;li&gt;5&nbsp;=&nbsp;PEAR_LOG_NOTICE&nbsp;(Normal&nbsp;but&nbsp;significant)&lt;/li&gt;</span></div></li>
<li><div class="src-line"><a name="a134"></a><span class="src-doc">&nbsp;*&nbsp;&lt;li&gt;6&nbsp;=&nbsp;PEAR_LOG_INFO&nbsp;(Informational)&lt;/li&gt;</span></div></li>
<li><div class="src-line"><a name="a135"></a><span class="src-doc">&nbsp;*&nbsp;&lt;li&gt;7&nbsp;=&nbsp;PEAR_LOG_DEBUG&nbsp;(Debug-level&nbsp;messages)&lt;/li&gt;</span></div></li>
<li><div class="src-line"><a name="a136"></a><span class="src-doc">&nbsp;*&nbsp;&lt;/ul&gt;</span></div></li>
<li><div class="src-line"><a name="a137"></a><span class="src-doc">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a138"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'SWAM_LOG_LEVEL'</span><span class="src-sym">,&nbsp;</span><span class="src-num">6</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a139"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a140"></a><span class="src-doc">/**</span></div></li>
<li><div class="src-line"><a name="a141"></a><span class="src-doc">&nbsp;*&nbsp;Error&nbsp;reporting&nbsp;configuration&nbsp;(make&nbsp;sure&nbsp;to&nbsp;display&nbsp;errors&nbsp;only&nbsp;in</span></div></li>
<li><div class="src-line"><a name="a142"></a><span class="src-doc">&nbsp;*&nbsp;debug&nbsp;mode).</span></div></li>
<li><div class="src-line"><a name="a143"></a><span class="src-doc">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a144"></a><a href="http://www.php.net/error_reporting">error_reporting</a><span class="src-sym">(</span><span class="src-id">E_ALL&nbsp;</span>|&nbsp;<span class="src-id">E_STRICT</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a145"></a><a href="http://www.php.net/ini_set">ini_set</a><span class="src-sym">(</span><span class="src-str">'display_errors'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'on'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a146"></a><a href="http://www.php.net/ini_set">ini_set</a><span class="src-sym">(</span><span class="src-str">'log_errors'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'on'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a147"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a148"></a><span class="src-comm">//&nbsp;Locale&nbsp;settings</span></div></li>
<li><div class="src-line"><a name="a149"></a><span class="src-comm">//&nbsp;------------------------</span></div></li>
<li><div class="src-line"><a name="a150"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a151"></a><span class="src-doc">/**</span></div></li>
<li><div class="src-line"><a name="a152"></a><span class="src-doc">&nbsp;*&nbsp;SWAM&nbsp;locale&nbsp;(supported&nbsp;locales&nbsp;are&nbsp;currently&nbsp;en_EN,&nbsp;pt_BR&nbsp;and</span></div></li>
<li><div class="src-line"><a name="a153"></a><span class="src-doc">&nbsp;*&nbsp;fr_FR).</span></div></li>
<li><div class="src-line"><a name="a154"></a><span class="src-doc">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a155"></a><span class="src-comm">#define('SWAM_LOCALE',&nbsp;'fr_FR');</span></div></li>
<li><div class="src-line"><a name="a156"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'SWAM_LOCALE'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'en_EN'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a157"></a><span class="src-comm">#define('SWAM_LOCALE',&nbsp;'pt_BR');</span></div></li>
<li><div class="src-line"><a name="a158"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a159"></a><span class="src-comm">//&nbsp;Registration&nbsp;settings</span></div></li>
<li><div class="src-line"><a name="a160"></a><span class="src-comm">//&nbsp;------------------------</span></div></li>
<li><div class="src-line"><a name="a161"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a162"></a><span class="src-doc">/**&nbsp;Allow&nbsp;new&nbsp;registration?&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a163"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'SWAM_ALLOW_NEW_REGISTRATION'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'true'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a164"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a165"></a><span class="src-doc">/**</span></div></li>
<li><div class="src-line"><a name="a166"></a><span class="src-doc">&nbsp;*&nbsp;Session&nbsp;timeout&nbsp;in&nbsp;seconds&nbsp;(must&nbsp;not&nbsp;be&nbsp;greater&nbsp;than</span></div></li>
<li><div class="src-line"><a name="a167"></a><span class="src-doc">&nbsp;*&nbsp;session.gc_maxlifetime&nbsp;in&nbsp;php.ini).</span></div></li>
<li><div class="src-line"><a name="a168"></a><span class="src-doc">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a169"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'SWAM_SESSION_TIMEOUT'</span><span class="src-sym">,&nbsp;</span><span class="src-num">900</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a170"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a171"></a><span class="src-comm">//&nbsp;Other&nbsp;settings</span></div></li>
<li><div class="src-line"><a name="a172"></a><span class="src-comm">//&nbsp;------------------------</span></div></li>
<li><div class="src-line"><a name="a173"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a174"></a><span class="src-doc">/**&nbsp;Set&nbsp;this&nbsp;to&nbsp;true&nbsp;to&nbsp;generate&nbsp;indented&nbsp;HTML.&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a175"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">'SWAM_IDENT_HTML'</span><span class="src-sym">,&nbsp;</span><span class="src-id">true</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a176"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a177"></a><span class="src-php">?&gt;</span></div></li>
</ol></div>
</div>
	<p class="notes" id="credit">
		Documentation generated on Thu, 20 Aug 2009 01:04:08 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</body>
</html>
Return current item: Simple Web Account Manager