Initial Commit of AgileBill Open Source
This commit is contained in:
2651
modules/account_admin/account_admin.inc.php
Normal file
2651
modules/account_admin/account_admin.inc.php
Normal file
File diff suppressed because it is too large
Load Diff
180
modules/account_admin/account_admin_construct.xml
Normal file
180
modules/account_admin/account_admin_construct.xml
Normal file
@@ -0,0 +1,180 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<construct>
|
||||
<!-- define the module name -->
|
||||
<module>account_admin</module>
|
||||
<!-- define the module table name -->
|
||||
<table>account</table>
|
||||
<!-- define the module dependancy(s) -->
|
||||
<dependancy>account</dependancy>
|
||||
<!-- define the DB cache in seconds -->
|
||||
<cache>0</cache>
|
||||
<!-- define the default order_by field for SQL queries -->
|
||||
<order_by>last_name</order_by>
|
||||
<!-- define the methods -->
|
||||
<limit>30</limit>
|
||||
<!-- define the fields -->
|
||||
<field>
|
||||
<id>
|
||||
<type>I8</type>
|
||||
<unique>1</unique>
|
||||
</id>
|
||||
<site_id>
|
||||
<type>I4</type>
|
||||
</site_id>
|
||||
<date_orig>
|
||||
<type>I8</type>
|
||||
<convert>date-time</convert>
|
||||
</date_orig>
|
||||
<date_last>
|
||||
<type>I8</type>
|
||||
<convert>date-now</convert>
|
||||
</date_last>
|
||||
<date_expire>
|
||||
<type>I8</type>
|
||||
<convert>date</convert>
|
||||
</date_expire>
|
||||
<parent_id>
|
||||
<type>I4</type>
|
||||
</parent_id>
|
||||
<language_id>
|
||||
<type>C(32)</type>
|
||||
</language_id>
|
||||
<country_id>
|
||||
<type>I4</type>
|
||||
</country_id>
|
||||
<affiliate_id>
|
||||
<type>I4</type>
|
||||
</affiliate_id>
|
||||
<campaign_id>
|
||||
<type>I4</type>
|
||||
</campaign_id>
|
||||
<reseller_id>
|
||||
<type>I4</type>
|
||||
</reseller_id>
|
||||
<currency_id>
|
||||
<type>I4</type>
|
||||
</currency_id>
|
||||
<theme_id>
|
||||
<type>C(32)</type>
|
||||
</theme_id>
|
||||
<username>
|
||||
<type>C(128)</type>
|
||||
<min_len>4</min_len>
|
||||
<max_len>128</max_len>
|
||||
<validate>any</validate>
|
||||
<unique>1</unique>
|
||||
</username>
|
||||
<password>
|
||||
<type>C(128)</type>
|
||||
<min_len>4</min_len>
|
||||
<max_len>128</max_len>
|
||||
<validate>password</validate>
|
||||
<convert>md5</convert>
|
||||
</password>
|
||||
<inherit_group>
|
||||
<type>L</type>
|
||||
</inherit_group>
|
||||
<misc>
|
||||
<type>C2(128)</type>
|
||||
</misc>
|
||||
<status>
|
||||
<type>I4</type>
|
||||
<default>0</default>
|
||||
</status>
|
||||
<first_name>
|
||||
<type>C(128)</type>
|
||||
<min_len>1</min_len>
|
||||
<max_len>128</max_len>
|
||||
<validate>any</validate>
|
||||
</first_name>
|
||||
<middle_name>
|
||||
<type>C(128)</type>
|
||||
</middle_name>
|
||||
<last_name>
|
||||
<type>C(128)</type>
|
||||
<min_len>1</min_len>
|
||||
<max_len>128</max_len>
|
||||
<validate>any</validate>
|
||||
</last_name>
|
||||
<title>
|
||||
<type>C(128)</type>
|
||||
</title>
|
||||
<email>
|
||||
<type>C(255)</type>
|
||||
<min_len>4</min_len>
|
||||
<max_len>128</max_len>
|
||||
<validate>email</validate>
|
||||
<unique>1</unique>
|
||||
</email>
|
||||
<company>
|
||||
<type>C(255)</type>
|
||||
</company>
|
||||
<address1>
|
||||
<type>C(128)</type>
|
||||
<min_len>3</min_len>
|
||||
<max_len>128</max_len>
|
||||
<validate>any</validate>
|
||||
</address1>
|
||||
<address2>
|
||||
<type>C(128)</type>
|
||||
<max_len>128</max_len>
|
||||
</address2>
|
||||
<city>
|
||||
<type>C(32)</type>
|
||||
<min_len>2</min_len>
|
||||
<max_len>32</max_len>
|
||||
<validate>any</validate>
|
||||
</city>
|
||||
<state>
|
||||
<type>C(32)</type>
|
||||
<min_len>2</min_len>
|
||||
<max_len>32</max_len>
|
||||
<validate>any</validate>
|
||||
</state>
|
||||
<zip>
|
||||
<type>C(16)</type>
|
||||
<min_len>4</min_len>
|
||||
<max_len>16</max_len>
|
||||
<validate>any</validate>
|
||||
</zip>
|
||||
<email_type>
|
||||
<type>L</type>
|
||||
</email_type>
|
||||
<invoice_delivery>
|
||||
<type>I4</type>
|
||||
</invoice_delivery>
|
||||
<invoice_show_itemized>
|
||||
<type>L</type>
|
||||
<default>1</default>
|
||||
</invoice_show_itemized>
|
||||
<invoice_grace>
|
||||
<type>I4</type>
|
||||
</invoice_grace>
|
||||
<invoice_advance_gen>
|
||||
<type>I4</type>
|
||||
</invoice_advance_gen>
|
||||
<tax_id>
|
||||
<type>C(64)</type>
|
||||
</tax_id>
|
||||
<max_child>
|
||||
<type>I4</type>
|
||||
</max_child>
|
||||
</field>
|
||||
<method>
|
||||
<delete>id</delete>
|
||||
<add>id,date_orig,date_last,date_expire,parent_id,language_id,country_id,affiliate_id,campaign_id,reseller_id,currency_id,theme_id,username,password,inherit_group,misc,status,first_name,middle_name,last_name,title,email,email_type,company,address1,address2,city,state,zip,invoice_delivery,invoice_show_itemized,invoice_grace,invoice_advance_gen,tax_id,max_child</add>
|
||||
<update>id,date_orig,date_last,date_expire,parent_id,language_id,country_id,affiliate_id,campaign_id,reseller_id,currency_id,theme_id,username,password,inherit_group,misc,status,first_name,middle_name,last_name,title,email,email_type,company,address1,address2,city,state,zip,invoice_delivery,invoice_show_itemized,invoice_grace,invoice_advance_gen,tax_id,max_child</update>
|
||||
<view>id,date_orig,date_last,date_expire,parent_id,language_id,country_id,affiliate_id,campaign_id,reseller_id,currency_id,theme_id,username,password,inherit_group,misc,status,first_name,middle_name,last_name,title,email,email_type,company,address1,address2,city,state,zip,invoice_delivery,invoice_show_itemized,invoice_grace,invoice_advance_gen,tax_id,max_child</view>
|
||||
<search>id,date_orig,date_last,date_expire,parent_id,language_id,country_id,affiliate_id,campaign_id,reseller_id,currency_id,theme_id,username,password,misc,status,first_name,middle_name,last_name,title,email,email_type,company,address1,address2,city,state,zip,invoice_delivery,invoice_show_itemized,invoice_grace,invoice_advance_gen,tax_id,max_child</search>
|
||||
<search_export>id,date_orig,date_last,date_expire,parent_id,language_id,country_id,affiliate_id,campaign_id,reseller_id,currency_id,theme_id,username,password,inherit_group,misc,status,first_name,middle_name,last_name,title,email,email_type,company,address1,address2,city,state,zip,tax_id,max_child</search_export>
|
||||
<export_excel>language_id,country_id,affiliate_id,campaign_id,currency_id,username,password,misc,status,first_name,middle_name,last_name,title,email,company,address1,address2,city,state,zip,tax_id</export_excel>
|
||||
<export_xml>language_id,country_id,affiliate_id,campaign_id,currency_id,username,password,misc,status,first_name,middle_name,last_name,title,email,company,address1,address2,city,state,zip,tax_id</export_xml>
|
||||
<export_csv>language_id,country_id,affiliate_id,campaign_id,currency_id,username,password,misc,status,first_name,middle_name,last_name,title,email,company,address1,address2,city,state,zip,tax_id</export_csv>
|
||||
<export_tab>language_id,country_id,affiliate_id,campaign_id,currency_id,username,password,misc,status,first_name,middle_name,last_name,title,email,company,address1,address2,city,state,zip,tax_id</export_tab>
|
||||
</method>
|
||||
<trigger>
|
||||
<update>
|
||||
<success>account_admin:update_account_groups</success>
|
||||
</update>
|
||||
</trigger>
|
||||
</construct>
|
77
modules/account_admin/account_admin_install.xml
Normal file
77
modules/account_admin/account_admin_install.xml
Normal file
@@ -0,0 +1,77 @@
|
||||
<install>
|
||||
<module_properties>
|
||||
<name>account_admin</name>
|
||||
<parent>account_admin</parent>
|
||||
<notes><![CDATA[Account Administration Module]]></notes>
|
||||
<menu_display>1</menu_display>
|
||||
</module_properties>
|
||||
<sql_inserts>
|
||||
<module_method>
|
||||
<add>
|
||||
<name>add</name>
|
||||
<menu_display>1</menu_display>
|
||||
</add>
|
||||
<update>
|
||||
<name>update</name>
|
||||
</update>
|
||||
<delete>
|
||||
<name>delete</name>
|
||||
</delete>
|
||||
<view>
|
||||
<name>view</name>
|
||||
<page><![CDATA[core:search&module=%%&_escape=1&_next_page_one=view]]></page>
|
||||
<menu_display>1</menu_display>
|
||||
</view>
|
||||
<search>
|
||||
<name>search</name>
|
||||
<page><![CDATA[%%:search_form]]></page>
|
||||
<menu_display>1</menu_display>
|
||||
</search>
|
||||
<search_form>
|
||||
<name>search_form</name>
|
||||
</search_form>
|
||||
<search_show>
|
||||
<name>search_show</name>
|
||||
</search_show>
|
||||
<search_export>
|
||||
<name>search_export</name>
|
||||
</search_export>
|
||||
<update_account_groups>
|
||||
<name>update_account_groups</name>
|
||||
<notes><![CDATA[This method is triggered to add the account to the specified groups when added]]></notes>
|
||||
</update_account_groups>
|
||||
<send_verify_email>
|
||||
<name>send_verify_email</name>
|
||||
<notes><![CDATA[Sends the user the change password instructions]]></notes>
|
||||
</send_verify_email>
|
||||
<send_password_email>
|
||||
<name>send_password_email</name>
|
||||
<notes><![CDATA[Sends the user the change password instructions]]></notes>
|
||||
</send_password_email>
|
||||
<mail_multi>
|
||||
<name>mail_multi</name>
|
||||
</mail_multi>
|
||||
<mail_one>
|
||||
<name>mail_one</name>
|
||||
</mail_one>
|
||||
<autoselect>
|
||||
<name>autoselect</name>
|
||||
</autoselect>
|
||||
<login>
|
||||
<name>login</name>
|
||||
<notes><![CDATA[Login as another user with equal or lesser group access]]></notes>
|
||||
</login>
|
||||
<merge>
|
||||
<name>merge</name>
|
||||
</merge>
|
||||
|
||||
<group_search>
|
||||
<name>group_search</name>
|
||||
</group_search>
|
||||
<product_search>
|
||||
<name>product_search</name>
|
||||
</product_search>
|
||||
|
||||
</module_method>
|
||||
</sql_inserts>
|
||||
</install>
|
Reference in New Issue
Block a user