1 | <?php
|
---|
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 / login
|
---|
26 |
|
---|
27 | $_page['name_index'] = 41;
|
---|
28 | $_page['css_name'] = 'result.css';
|
---|
29 |
|
---|
30 | $logged['member'] = member_auth( 0, false );
|
---|
31 |
|
---|
32 | switch ( $_REQUEST['result'] )
|
---|
33 | {
|
---|
34 | case '1000':
|
---|
35 | $header = _t("_RESULT0_H");
|
---|
36 | $result_text = _t("_RESULT0_H");
|
---|
37 | $desc = _t("_RESULT1000");
|
---|
38 | break;
|
---|
39 | case '0':
|
---|
40 | $header = _t("_RESULT0_H");
|
---|
41 | $result_text = _t("_RESULT0_H");
|
---|
42 | $desc = _t("_RESULT0","<a href=\"cart.php?" . time() . "\">");
|
---|
43 | break;
|
---|
44 | case '-1':
|
---|
45 | $header = _t("_RESULT-1_H");
|
---|
46 | $result_text = _t("_RESULT-1_A");
|
---|
47 | $desc = _t("_RESULT-1_D");
|
---|
48 | break;
|
---|
49 | case '1':
|
---|
50 | $header = _t("_RESULT1_H");
|
---|
51 | $result_text = _t("_RESULT1_THANK", $site['title']);
|
---|
52 | $desc = _t("_RESULT1_DESC");
|
---|
53 | break;
|
---|
54 | case '2':
|
---|
55 | $header = _t("_RESULT1_H");;
|
---|
56 | $result_text = _t("_RESULT1_THANK", $site['title']);
|
---|
57 | $desc = _t("_RESULT2DESC", $site['title']);
|
---|
58 | break;
|
---|
59 | default:
|
---|
60 | exit;
|
---|
61 | break;
|
---|
62 | }
|
---|
63 |
|
---|
64 |
|
---|
65 | if ( $_POST['result'] == 2 || $_POST['result'] == 3 )
|
---|
66 | {
|
---|
67 | $i = 0;
|
---|
68 | while ( $_COOKIE["cartentries$_COOKIE[memberID]"][$i] )
|
---|
69 | setcookie( "cartentries$_COOKIE[memberID]" . "[$i]", $_COOKIE[cartentries][$i++], time() - 24*3600, "/" );
|
---|
70 | }
|
---|
71 |
|
---|
72 | $_page['header'] = $header;
|
---|
73 | $_page['header_text'] = $header;
|
---|
74 |
|
---|
75 | // --------------- page components
|
---|
76 |
|
---|
77 | $_ni = $_page['name_index'];
|
---|
78 | $_page_cont[$_ni]['page_main_code'] = PageCompPageMainCode();
|
---|
79 |
|
---|
80 | // --------------- [END] page components
|
---|
81 |
|
---|
82 | PageCode();
|
---|
83 |
|
---|
84 | // --------------- page components functions
|
---|
85 |
|
---|
86 | /**
|
---|
87 | * page code function
|
---|
88 | */
|
---|
89 | function PageCompPageMainCode()
|
---|
90 | {
|
---|
91 | global $result_text;
|
---|
92 | global $desc;
|
---|
93 |
|
---|
94 | ob_start();
|
---|
95 |
|
---|
96 | ?>
|
---|
97 | <div class="result_text"><?= $result_text ?></div>
|
---|
98 | <div class="result_desc"><?= $desc ?></div>
|
---|
99 | <?
|
---|
100 |
|
---|
101 | $ret = ob_get_contents();
|
---|
102 | ob_end_clean();
|
---|
103 |
|
---|
104 | return $ret;
|
---|
105 | }
|
---|
106 |
|
---|
107 | ?>
|
---|