Initial Commit of AgileBill Open Source
This commit is contained in:
16
modules/service/auth.inc.php
Normal file
16
modules/service/auth.inc.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
### public methods for this module:
|
||||
|
||||
$auth_methods = Array
|
||||
(
|
||||
Array ('module' => 'service', 'method' => 'user_search'),
|
||||
Array ('module' => 'service', 'method' => 'user_search_show'),
|
||||
Array ('module' => 'service', 'method' => 'user_view'),
|
||||
Array ('module' => 'service', 'method' => 'user_cancelservice'),
|
||||
Array ('module' => 'service', 'method' => 'user_changeschedule'),
|
||||
Array ('module' => 'service', 'method' => 'user_modify'),
|
||||
Array ('module' => 'service', 'method' => 'user_renew_domain'),
|
||||
Array ('module' => 'service', 'method' => 'user_reactivate')
|
||||
);
|
||||
?>
|
1892
modules/service/service.inc.php
Normal file
1892
modules/service/service.inc.php
Normal file
File diff suppressed because it is too large
Load Diff
214
modules/service/service_construct.xml
Normal file
214
modules/service/service_construct.xml
Normal file
@@ -0,0 +1,214 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<construct>
|
||||
<!-- define the module name -->
|
||||
<module>service</module>
|
||||
<!-- define the module table name -->
|
||||
<table>service</table>
|
||||
<!-- define the module dependancy(s) -->
|
||||
<dependancy/>
|
||||
<!-- define the DB cache in seconds -->
|
||||
<cache>0</cache>
|
||||
<!-- define the default order_by field for SQL queries -->
|
||||
<order_by>date_orig</order_by>
|
||||
<!-- define the methods -->
|
||||
<limit>30</limit>
|
||||
<!-- define database indexes -->
|
||||
<index>
|
||||
<date>site_id,date_orig</date>
|
||||
<parent>site_id,parent_id</parent>
|
||||
<invoice>site_id,invoice_id</invoice>
|
||||
<invoice_item>site_id,invoice_item_id</invoice_item>
|
||||
<account>site_id,account_id</account>
|
||||
<billing>site_id,account_billing_id</billing>
|
||||
<sku>site_id,sku</sku>
|
||||
<active>site_id,active</active>
|
||||
<type>site_id,type</type>
|
||||
<suspend>site_id,suspend_billing</suspend>
|
||||
<price>site_id,price</price>
|
||||
<price_type>site_id,price_type</price_type>
|
||||
<queue>site_id,queue</queue>
|
||||
<date_next>site_id,date_next_invoice</date_next>
|
||||
<recur_type>site_id,recur_type</recur_type>
|
||||
<server>site_id,host_server_id</server>
|
||||
<username>site_id,host_username</username>
|
||||
<domain>site_id,domain_name,domain_tld</domain>
|
||||
<domain_date_expire>site_id,domain_date_expire</domain_date_expire>
|
||||
</index>
|
||||
<!-- define the fields -->
|
||||
<field>
|
||||
<id>
|
||||
<type>I8</type>
|
||||
</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>
|
||||
<parent_id>
|
||||
<type>I8</type>
|
||||
</parent_id>
|
||||
<invoice_id>
|
||||
<type>I8</type>
|
||||
</invoice_id>
|
||||
<invoice_item_id>
|
||||
<type>I8</type>
|
||||
</invoice_item_id>
|
||||
<account_id>
|
||||
<type>I8</type>
|
||||
<asso_table>account</asso_table>
|
||||
<asso_field>first_name,last_name</asso_field>
|
||||
<validate>any</validate>
|
||||
</account_id>
|
||||
<account_billing_id>
|
||||
<type>I8</type>
|
||||
</account_billing_id>
|
||||
<product_id>
|
||||
<type>I8</type>
|
||||
</product_id>
|
||||
<sku>
|
||||
<type>C(32)</type>
|
||||
<validate>any</validate>
|
||||
</sku>
|
||||
<active>
|
||||
<type>L</type>
|
||||
</active>
|
||||
<bind>
|
||||
<type>L</type>
|
||||
</bind>
|
||||
<type>
|
||||
<type>C(16)</type>
|
||||
<validate>any</validate>
|
||||
</type>
|
||||
<suspend_billing>
|
||||
<type>L</type>
|
||||
</suspend_billing>
|
||||
<price>
|
||||
<type>F</type>
|
||||
</price>
|
||||
<price_type>
|
||||
<type>I4</type>
|
||||
<validate>any</validate>
|
||||
</price_type>
|
||||
<taxable>
|
||||
<type>L</type>
|
||||
</taxable>
|
||||
<queue>
|
||||
<type>C(16)</type>
|
||||
</queue>
|
||||
<date_last_invoice>
|
||||
<type>I8</type>
|
||||
<convert>date-time</convert>
|
||||
</date_last_invoice>
|
||||
<date_next_invoice>
|
||||
<type>I8</type>
|
||||
<convert>date-time</convert>
|
||||
</date_next_invoice>
|
||||
<recur_type>
|
||||
<type>I4</type>
|
||||
</recur_type>
|
||||
<recur_schedule>
|
||||
<type>I4</type>
|
||||
</recur_schedule>
|
||||
<recur_weekday>
|
||||
<type>I4</type>
|
||||
</recur_weekday>
|
||||
<recur_week>
|
||||
<type>I4</type>
|
||||
</recur_week>
|
||||
<recur_schedule_change>
|
||||
<type>L</type>
|
||||
</recur_schedule_change>
|
||||
<recur_cancel>
|
||||
<type>C(16)</type>
|
||||
</recur_cancel>
|
||||
<group_grant>
|
||||
<type>X2</type>
|
||||
<convert>array</convert>
|
||||
</group_grant>
|
||||
<group_type>
|
||||
<type>I4</type>
|
||||
</group_type>
|
||||
<group_days>
|
||||
<type>I4</type>
|
||||
</group_days>
|
||||
<host_server_id>
|
||||
<type>I4</type>
|
||||
</host_server_id>
|
||||
<host_provision_plugin_data>
|
||||
<type>X2</type>
|
||||
<convert>array</convert>
|
||||
</host_provision_plugin_data>
|
||||
<host_ip>
|
||||
<type>C(16)</type>
|
||||
</host_ip>
|
||||
<host_username>
|
||||
<type>C(128)</type>
|
||||
</host_username>
|
||||
<host_password>
|
||||
<type>C(128)</type>
|
||||
</host_password>
|
||||
<domain_name>
|
||||
<type>C(128)</type>
|
||||
</domain_name>
|
||||
<domain_tld>
|
||||
<type>C(16)</type>
|
||||
</domain_tld>
|
||||
<domain_term>
|
||||
<type>I4</type>
|
||||
</domain_term>
|
||||
<domain_type>
|
||||
<type>C(16)</type>
|
||||
</domain_type>
|
||||
<domain_date_expire>
|
||||
<type>I8</type>
|
||||
<convert>date</convert>
|
||||
</domain_date_expire>
|
||||
<domain_host_tld_id>
|
||||
<type>I4</type>
|
||||
</domain_host_tld_id>
|
||||
<domain_host_registrar_id>
|
||||
<type>I4</type>
|
||||
</domain_host_registrar_id>
|
||||
<prod_attr>
|
||||
<type>X2</type>
|
||||
</prod_attr>
|
||||
<prod_attr_cart>
|
||||
<type>X2</type>
|
||||
</prod_attr_cart>
|
||||
<prod_plugin_name>
|
||||
<type>C(128)</type>
|
||||
</prod_plugin_name>
|
||||
<prod_plugin_data>
|
||||
<type>X2</type>
|
||||
<convert>array</convert>
|
||||
</prod_plugin_data>
|
||||
<recur_modify>
|
||||
<type>L</type>
|
||||
</recur_modify>
|
||||
<invoice_advance_notified>
|
||||
<type>L</type>
|
||||
</invoice_advance_notified>
|
||||
</field>
|
||||
|
||||
<!-- define all the methods for this class, and the fields they have access to, if applicable. -->
|
||||
<method>
|
||||
<add>id,site_id,date_orig,date_last,parent_id,invoice_id,invoice_item_id,account_id,account_billing_id,product_id,sku,active,bind,type,price,price_type,taxable,queue,date_last_invoice,date_next_invoice,recur_type,recur_schedule,recur_weekday,recur_week,recur_schedule_change,recur_cancel,group_grant,group_type,group_days,host_server_id,host_provision_plugin_data,host_ip,host_username,host_password,domain_name,domain_tld,domain_term,domain_type,domain_date_expire,domain_host_tld_id,domain_host_registrar_id,suspend_billing,prod_plugin_name,prod_plugin_data,recur_modify</add>
|
||||
<update>id,site_id,date_orig,date_last,parent_id,invoice_id,invoice_item_id,account_id,account_billing_id,product_id,sku,active,bind,type,price,price_type,taxable,queue,date_last_invoice,date_next_invoice,recur_type,recur_schedule,recur_weekday,recur_week,recur_schedule_change,recur_cancel,group_grant,group_type,group_days,host_server_id,host_provision_plugin_data,host_ip,host_username,host_password,domain_name,domain_tld,domain_term,domain_type,domain_date_expire,domain_host_tld_id,domain_host_registrar_id,suspend_billing,prod_plugin_name,prod_plugin_data,recur_modify</update>
|
||||
<delete>id,site_id,date_orig,date_last,parent_id,invoice_id,invoice_item_id,account_id,account_billing_id,product_id,sku,active,bind,type,price,price_type,taxable,queue,date_last_invoice,date_next_invoice,recur_type,recur_schedule,recur_weekday,recur_week,recur_schedule_change,recur_cancel,group_grant,group_type,group_days,host_server_id,host_provision_plugin_data,host_ip,host_username,host_password,domain_name,domain_tld,domain_term,domain_type,domain_date_expire,domain_host_tld_id,domain_host_registrar_id,suspend_billing,prod_plugin_name,prod_plugin_data,recur_modify</delete>
|
||||
<view>id,site_id,date_orig,date_last,parent_id,invoice_id,invoice_item_id,account_id,account_billing_id,product_id,sku,active,bind,type,price,price_type,taxable,queue,date_last_invoice,date_next_invoice,recur_type,recur_schedule,recur_weekday,recur_week,recur_schedule_change,recur_cancel,group_grant,group_type,group_days,host_server_id,host_provision_plugin_data,host_ip,host_username,host_password,domain_name,domain_tld,domain_term,domain_type,domain_date_expire,domain_host_tld_id,domain_host_registrar_id,suspend_billing,prod_plugin_name,prod_plugin_data,recur_modify</view>
|
||||
<search>id,site_id,date_orig,date_last,parent_id,invoice_id,invoice_item_id,account_id,account_billing_id,product_id,sku,active,bind,type,price,price_type,taxable,queue,date_last_invoice,date_next_invoice,recur_type,recur_schedule,recur_weekday,recur_week,recur_schedule_change,recur_cancel,group_grant,group_type,group_days,host_server_id,host_provision_plugin_data,host_ip,host_username,host_password,domain_name,domain_tld,domain_term,domain_type,domain_date_expire,domain_host_tld_id,domain_host_registrar_id,suspend_billing,prod_plugin_name,prod_plugin_data,recur_modify</search>
|
||||
<search_export>id,date_orig,date_last,parent_id,invoice_id,invoice_item_id,account_id,account_billing_id,product_id,sku,active,bind,type,price,price_type,taxable,queue,date_last_invoice,date_next_invoice,recur_type,recur_schedule,recur_weekday,host_server_id,host_ip,host_username,host_password,domain_name,domain_tld,domain_term,domain_type,domain_date_expire,domain_host_tld_id,domain_host_registrar_id,suspend_billing</search_export>
|
||||
<export_excel>id,date_orig,date_last,parent_id,invoice_id,invoice_item_id,account_id,account_billing_id,product_id,sku,active,bind,type,price,price_type,taxable,queue,date_last_invoice,date_next_invoice,recur_type,recur_schedule,recur_weekday,host_server_id,host_ip,host_username,host_password,domain_name,domain_tld,domain_term,domain_type,domain_date_expire,domain_host_tld_id,domain_host_registrar_id,suspend_billing</export_excel>
|
||||
<export_csv>id,date_orig,date_last,parent_id,invoice_id,invoice_item_id,account_id,account_billing_id,product_id,sku,active,bind,type,price,price_type,taxable,queue,date_last_invoice,date_next_invoice,recur_type,recur_schedule,recur_weekday,host_server_id,host_ip,host_username,host_password,domain_name,domain_tld,domain_term,domain_type,domain_date_expire,domain_host_tld_id,domain_host_registrar_id,suspend_billing</export_csv>
|
||||
<export_tab>id,date_orig,date_last,parent_id,invoice_id,invoice_item_id,account_id,account_billing_id,product_id,sku,active,bind,type,price,price_type,taxable,queue,date_last_invoice,date_next_invoice,recur_type,recur_schedule,recur_weekday,host_server_id,host_ip,host_username,host_password,domain_name,domain_tld,domain_term,domain_type,domain_date_expire,domain_host_tld_id,domain_host_registrar_id,suspend_billing</export_tab>
|
||||
<export_xml>id,date_orig,date_last,parent_id,invoice_id,invoice_item_id,account_id,account_billing_id,product_id,sku,active,bind,type,price,price_type,taxable,queue,date_last_invoice,date_next_invoice,recur_type,recur_schedule,recur_weekday,host_server_id,host_ip,host_username,host_password,domain_name,domain_tld,domain_term,domain_type,domain_date_expire,domain_host_tld_id,domain_host_registrar_id,suspend_billing</export_xml>
|
||||
</method>
|
||||
<!-- define the method triggers -->
|
||||
<trigger>0</trigger>
|
||||
</construct>
|
60
modules/service/service_install.xml
Normal file
60
modules/service/service_install.xml
Normal file
@@ -0,0 +1,60 @@
|
||||
<install>
|
||||
<module_properties>
|
||||
<name>service</name>
|
||||
<parent>account_admin</parent>
|
||||
<notes><![CDATA[Manages the services for group access, hosting, and domains.]]></notes>
|
||||
<menu_display>1</menu_display>
|
||||
</module_properties>
|
||||
<sql_inserts>
|
||||
<module_method>
|
||||
<add>
|
||||
<name>add</name>
|
||||
<page><![CDATA[%%:add]]></page>
|
||||
<menu_display>1</menu_display>
|
||||
</add>
|
||||
<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>
|
||||
<update>
|
||||
<name>update</name>
|
||||
</update>
|
||||
<delete>
|
||||
<name>delete</name>
|
||||
</delete>
|
||||
<search_form>
|
||||
<name>search_form</name>
|
||||
</search_form>
|
||||
<search_show>
|
||||
<name>search_show</name>
|
||||
</search_show>
|
||||
<search_export>
|
||||
<name>search_export</name>
|
||||
</search_export>
|
||||
<queue>
|
||||
<name>queue</name>
|
||||
</queue>
|
||||
<admin_changeschedule>
|
||||
<name>admin_changeschedule</name>
|
||||
</admin_changeschedule>
|
||||
<cancelservice>
|
||||
<name>cancelservice</name>
|
||||
</cancelservice>
|
||||
<resend_hosting_email>
|
||||
<name>resend_hosting_email</name>
|
||||
</resend_hosting_email>
|
||||
<add_tpl>
|
||||
<name>add_tpl</name>
|
||||
</add_tpl>
|
||||
<modify>
|
||||
<name>modify</name>
|
||||
</modify>
|
||||
</module_method>
|
||||
</sql_inserts>
|
||||
</install>
|
Reference in New Issue
Block a user