<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Define statement in hooks.php]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6407</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6407&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Define statement in hooks.php.]]></description>
		<lastBuildDate>Fri, 12 Aug 2016 16:05:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Define statement in hooks.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=26005#p26005</link>
			<description><![CDATA[<p>Pick something say from 100 to 250 - check what the standard existing plugins use and choose something different f you do not want the system to pick one out of it&#039;s convenience in case of a clash with existing ones.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 12 Aug 2016 16:05:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=26005#p26005</guid>
		</item>
		<item>
			<title><![CDATA[Re: Define statement in hooks.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25998#p25998</link>
			<description><![CDATA[<p>So if I understand correctly, the first digit (150 in this case) I can pick anything, as long as it&#039;s not used elsewhere)?&nbsp; Or do I need to pick one of the existing values in those fields and work backwards to a specific value?&nbsp; The wiki examples use 101, 102 and 103 and just says the exact values are not very important, which makes me think I can pick anything.&nbsp; Thank you!</p>]]></description>
			<author><![CDATA[null@example.com (gstolz)]]></author>
			<pubDate>Thu, 11 Aug 2016 20:06:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25998#p25998</guid>
		</item>
		<item>
			<title><![CDATA[Re: Define statement in hooks.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25989#p25989</link>
			<description><![CDATA[<p>The &quot;&lt;&lt;&quot; is the binary bit left shift operator. The index 150 decimal is 96 hex which when shifted left by 8 bits (those in the first 8 bit range are reserved for system application security roles) will be 9600 hex which is 38400 dec. It is this number that you will see in the <strong>security_roles</strong> table&#039;s <strong>sections</strong> and <strong>areas</strong> fields for the various <strong>role</strong>s.</p><p>In case the said index has already been assigned, then the system automatically assigns the next available one.</p><p>Read the <a href="https://frontaccounting.com/fawiki/index.php?n=Devel.AccessControl">Wiki</a> for more info. Read <a href="https://frontaccounting.com/punbb/viewtopic.php?id=1333">this post</a> for insights. </p><div class="quotebox"><blockquote><p>add_access_extensions() have to be called inside extension files to have security areas maintained by core source code. This way module access areas does not interfere with core nor any other module security areas.</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 10 Aug 2016 13:39:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25989#p25989</guid>
		</item>
		<item>
			<title><![CDATA[Define statement in hooks.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25986#p25986</link>
			<description><![CDATA[<p>I&#039;m playing with building a new module.&nbsp; In looking at other ones to figure out the structure, I see there&#039;s a define statement at the beginning of all of the hooks.php file:</p><div class="codebox"><pre><code>define (&#039;SS_DASHBOARD&#039;, 150&lt;&lt;8);</code></pre></div><p>The variable name makes sense, but what are the other 2 numbers (150 and 8 in this case)?&nbsp; As in if I&#039;m creating a new module, what should I use?</p><p>Thanks!</p>]]></description>
			<author><![CDATA[null@example.com (gstolz)]]></author>
			<pubDate>Tue, 09 Aug 2016 23:11:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25986#p25986</guid>
		</item>
	</channel>
</rss>
