summaryrefslogtreecommitdiff
path: root/includes/bit_setup_inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/bit_setup_inc.php')
-rwxr-xr-xincludes/bit_setup_inc.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/includes/bit_setup_inc.php b/includes/bit_setup_inc.php
new file mode 100755
index 0000000..f7aa0fe
--- /dev/null
+++ b/includes/bit_setup_inc.php
@@ -0,0 +1,27 @@
+<?php
+/**
+ * @author lsces <lester@lsces.uk>
+ * @version $Revision$
+ * @package Contact
+ * @subpackage functions
+ */
+global $gBitSystem, $gBitSmarty;
+$pRegisterHash = [
+ 'package_name' => 'contact',
+ 'package_path' => dirname( dirname( __FILE__ ) ) . '/',
+ 'homeable' => false,
+];
+define( 'CONTACT_PKG_NAME', $pRegisterHash['package_name'] );
+define( 'CONTACT_PKG_URL', BIT_ROOT_URL . basename( $pRegisterHash['package_path'] ) . '/' );
+define( 'CONTACT_PKG_PATH', BIT_ROOT_PATH . basename( $pRegisterHash['package_path'] ) . '/' );
+define( 'CONTACT_PKG_INCLUDE_PATH', BIT_ROOT_PATH . basename( $pRegisterHash['package_path'] ) . '/includes/');
+$gBitSystem->registerPackage( $pRegisterHash );
+
+if( $gBitSystem->isPackageActive( 'contact' ) ) {
+ $menuHash = [
+ 'package_name' => CONTACT_PKG_NAME,
+ 'index_url' => CONTACT_PKG_URL . 'index.php',
+ 'menu_template' => 'bitpackage:contact/menu_contact.tpl',
+ ];
+ $gBitSystem->registerAppMenu( $menuHash );
+}