<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Modules Add-Ons]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=2060&amp;type=atom" />
	<updated>2011-07-06T23:09:17Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=2060</id>
		<entry>
			<title type="html"><![CDATA[Re: Modules Add-Ons]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9661#p9661" />
			<content type="html"><![CDATA[<p>I have seen that, but it still begs the question:</p><p>Is it safe to assume you verify the contributed extensions have unique numbers before posting them on the website?</p><p>If I create a new extension from an existing one and forget to change the number, we could have two with the same number.</p><p>tom</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2011-07-06T23:09:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9661#p9661</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modules Add-Ons]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9657#p9657" />
			<content type="html"><![CDATA[<p>Tom, there is no need for central synchronizing security code numbers. You can use arbitrary numbers yet not&nbsp; used in core FA code, e.g. 100, 102 etc. The numbers are reassigned later, and you should use only text identifiers in your code (the $security_area array keys).<br />Read comments at the top of access_leveles.inc file and all should be clear for you</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2011-07-06T16:29:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9657#p9657</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modules Add-Ons]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9641#p9641" />
			<content type="html"><![CDATA[<p>How can developers request values for modules they create?</p><p>Maybe set a range for local use and any others need to be allocated by the core development team?</p><p>tom</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2011-07-05T16:51:15Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9641#p9641</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modules Add-Ons]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9640#p9640" />
			<content type="html"><![CDATA[<p>No, the values have to be defferent (see related php code), but in fact they <strong>are</strong> rewritten during installation.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2011-07-05T14:39:33Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9640#p9640</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modules Add-Ons]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9629#p9629" />
			<content type="html"><![CDATA[<p>As I understand, the security section codes are rewritten during integration...<br />I haven&#039;t verfied this until now.</p><p>barney</p>]]></content>
			<author>
				<name><![CDATA[barneyfa]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=5856</uri>
			</author>
			<updated>2011-07-04T14:19:06Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9629#p9629</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modules Add-Ons]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9627#p9627" />
			<content type="html"><![CDATA[<p>So maybe they could all be the same value?<br />Seems odd to me...</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2011-07-04T12:44:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9627#p9627</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modules Add-Ons]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9624#p9624" />
			<content type="html"><![CDATA[<p>Sounds interesting ....</p><p>barney</p>]]></content>
			<author>
				<name><![CDATA[barneyfa]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=5856</uri>
			</author>
			<updated>2011-07-04T08:53:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9624#p9624</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modules Add-Ons]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9623#p9623" />
			<content type="html"><![CDATA[<p>If you read the documentation /doc/access_levels.txt part 5.:</p><div class="codebox"><pre><code>5. Example access control configuration file
--------------------------------------------

This is content of sample access control file for CRM extension module:

&lt;?php
/*
    Define security section codes
*/
define(&#039;SS_CRM_C&#039;,    101&lt;&lt;8);
define(&#039;SS_CRM&#039;,    102&lt;&lt;8);
define(&#039;SS_CRM_A&#039;,    103&lt;&lt;8);

/*
    Additional security sections for CRM module
*/
$security_sections[SS_CRM_C] = _(&quot;CRM configuration&quot;);
$security_sections[SS_CRM] = _(&quot;CRM transactions&quot;);
$security_sections[SS_CRM_A] = _(&quot;CRM analytics&quot;);
/*
    Additional security areas for CRM module
*/
$security_areas[&#039;SA_CRMSETUP&#039;] = array(SS_CRM_C|1, _(&quot;CRM module setup&quot;));
$security_areas[&#039;SA_CRMCONTACTENTRY&#039;] = array(SS_CRM|1, _(&quot;Customer contact entry&quot;));
$security_areas[&#039;SA_CRMANALYITCS&#039;] = array(SS_CRM|1, _(&quot;Pre-sale contact analytics&quot;));

?&gt;

The exact values used for security section codes are not very important, 
as they are rewritten by access control system during integration of
access extensions. Therefore numeric values of security sections/areas should 
never be used directly in the extensions source. Use string representations
instead when needed, or values retrieved from $security_areas array.</code></pre></div><div class="quotebox"><blockquote><p><strong>The exact values used for security section codes are not very important, <br />as they are rewritten by access control system during integration of<br />access extensions.</strong></p></blockquote></div><p>Though I never try to confirm this.</p>]]></content>
			<author>
				<name><![CDATA[captain_kuro]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=6107</uri>
			</author>
			<updated>2011-07-04T04:20:21Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9623#p9623</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modules Add-Ons]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9617#p9617" />
			<content type="html"><![CDATA[<p>&#039;define (&#039;SS_IMPORTCUSTOMERS&#039;, 105&lt;&lt;8);&#039;</p><p>I think a more important question is: Does the 105 have to be unique across all add-on modules?<br />Are we granted security permissions based upon that bit mask?</p><p>If two modules have the same SS_ value won&#039;t they be controlled together in the security settings?</p><p>Tom</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2011-07-03T12:12:20Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9617#p9617</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modules Add-Ons]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9134#p9134" />
			<content type="html"><![CDATA[<p>You&#039;re welcome</p><p>kuro</p>]]></content>
			<author>
				<name><![CDATA[captain_kuro]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=6107</uri>
			</author>
			<updated>2011-05-16T10:38:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9134#p9134</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modules Add-Ons]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9130#p9130" />
			<content type="html"><![CDATA[<p>Hi captain_kuro,</p><p>thanks a lot,</p><p>barney</p>]]></content>
			<author>
				<name><![CDATA[barneyfa]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=5856</uri>
			</author>
			<updated>2011-05-16T10:06:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9130#p9130</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modules Add-Ons]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9129#p9129" />
			<content type="html"><![CDATA[<p>Hi, I am new to FA and I am planning to use FA in our new project. So for the past few days I have been inspecting about extension in FA.<br />I have notice that some extensions use something like this in their hooks.php file:</p><div class="codebox"><pre><code>define(&#039;SS_ASSETREGISTER&#039;, 101&lt;&lt;8);</code></pre></div><p>What I realize is that every time there is that, there is this:</p><div class="codebox"><pre><code>function install_access()
{
    $security_sections[SS_ASSETREGISTER] = _(&quot;Asset Register&quot;);
    $security_areas[&#039;SA_ASSETTYPE&#039;] = array(SS_ASSETREGISTER|1, _(&quot;Asset Type Entries&quot;));
    $security_areas[&#039;SA_ASSETS&#039;] = array(SS_ASSETREGISTER|2, _(&quot;Assets Entries&quot;));
    $security_areas[&#039;SA_AMORTISATION&#039;] = array(SS_ASSETREGISTER|3, _(&quot;Amortisation Posting&quot;));
    return array($security_areas, $security_sections);
}</code></pre></div><p>(source taken from asset_register extension)</p><p>So I conclude that prefix SS_ means Security Section, the &quot;define&quot; statement above is used to define some kind of unique security level identifier, and that this defined constant will be used to define the security areas used by the extension.</p><p>Hope that helps.</p>]]></content>
			<author>
				<name><![CDATA[captain_kuro]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=6107</uri>
			</author>
			<updated>2011-05-16T09:58:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9129#p9129</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modules Add-Ons]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9007#p9007" />
			<content type="html"><![CDATA[<p>Hello again, I can only tell you the mathematical expression. somevalue&lt;&lt;8 means that the binary bits are shifted 8 times to the left <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Maybe someone out there have a better understandable explanation.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2011-05-04T07:02:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9007#p9007</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modules Add-Ons]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=9000#p9000" />
			<content type="html"><![CDATA[<p>So it works...<br />I added a hooks.php.</p><p>Could you tell me, what is the meaning of &#039;105&lt;&lt;8&#039; in &#039;define (&#039;SS_IMPORTCUSTOMERS&#039;, 105&lt;&lt;8);&#039; .<br />Or is some kind of description available?</p><p>Bernd</p>]]></content>
			<author>
				<name><![CDATA[barneyfa]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=5856</uri>
			</author>
			<updated>2011-05-03T15:31:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=9000#p9000</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modules Add-Ons]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=8998#p8998" />
			<content type="html"><![CDATA[<p>I guess it will show up in the Sales tab. Maybe you have to logout and login again. I am not sure.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2011-05-02T21:46:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=8998#p8998</id>
		</entry>
</feed>
