BoonEx Home Trac
 
 

root/trunk/affiliates.php

Revision 7336, 2.2 kB (checked in by sas, 2 months ago)

--

Line 
1 <?
2
3 /***************************************************************************
4 *                            Dolphin Smart Community Builder
5 *                              -----------------
6 *     begin                : Mon Mar 23 2006
7 *     copyright            : (C) 2006 BoonEx Group
8 *     website              : http://www.boonex.com/
9 * This file is part of Dolphin - Smart Community Builder
10 *
11 * Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
12 * http://creativecommons.org/licenses/by/3.0/
13 *
14 * Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
15 * without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 * See the Creative Commons Attribution 3.0 License for more details.
17 * You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
18 * see license.txt file; if not, write to marketing@boonex.com
19 ***************************************************************************/
20
21 require_once( 'inc/header.inc.php' );
22 require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
23 require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
24
25 // --------------- page variables and login
26
27 if (getParam("enable_aff") != 'on')
28 {
29     $sCode = MsgBox( _t( '_affiliate_system_was_disabled' ) );
30     $_page['name_index'] = 0;
31     $_page_cont[0]['page_main_code'] = $sCode;
32     PageCode();
33     exit();
34 }
35
36 $_page['name_index']    = 27;
37 $_page['css_name']        = 'affiliates.css';
38
39 if ( !( $logged['admin'] = member_auth( 1, false ) ) )
40 {
41     if ( !( $logged['member'] = member_auth( 0, false ) ) )
42     {
43         if ( !( $logged['aff'] = member_auth( 2, false ) ) )
44         {
45             $logged['moderator'] = member_auth( 3, false );
46         }
47     }
48 }
49
50
51 $_page['header'] = _t("_AFFILIATES_H");
52 $_page['header_text'] = _t("_AFFILIATES_H1");
53
54 // --------------- page components
55
56 $_ni = $_page['name_index'];
57 $_page_cont[$_ni]['page_main_code'] = PageCompPageMainCode();
58
59 // --------------- [END] page components
60
61 PageCode();
62
63 // --------------- page components functions
64
65 /**
66  * page code function
67  */
68 function PageCompPageMainCode()
69 {
70
71     $ret .= _t("_AFFILIATES", $site['url']);
72
73
74     return $ret;
75 }
76
77 ?>
78
Note: See TracBrowser for help on using the browser.