blob: 76d14d6c078482d032805077a2e6a928c86caaf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
global $gBitSystem;
$registerHash = array(
'package_name' => 'newsletters',
'package_path' => dirname( __FILE__ ).'/',
'homeable' => TRUE,
);
$gBitSystem->registerPackage( $registerHash );
if( $gBitSystem->isPackageActive( NEWSLETTERS_PKG_NAME ) ) {
$menuHash = array(
'package_name' => NEWSLETTERS_PKG_NAME,
'index_url' => NEWSLETTERS_PKG_URL.'index.php',
'menu_template' => 'bitpackage:newsletters/menu_newsletters.tpl',
);
$gBitSystem->registerAppMenu( $menuHash );
if( isset( $_GET['ct'] ) && strlen( $_GET['ct'] ) == 32 ) {
require_once( NEWSLETTERS_PKG_PATH.'BitMailer.php' );
BitMailer::storeClickthrough( $_GET['ct'] );
}
}
?>
|