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 and login
|
---|
26 |
|
---|
27 | $_page['name_index'] = 34;
|
---|
28 | $_page['css_name'] = 'unregister.css';
|
---|
29 |
|
---|
30 | $logged['member'] = member_auth(0);
|
---|
31 |
|
---|
32 | $_page['header'] = _t("_Delete account");
|
---|
33 | $_page['header_text'] = _t("_Delete account");
|
---|
34 |
|
---|
35 | // --------------- page components
|
---|
36 |
|
---|
37 | $_ni = $_page['name_index'];
|
---|
38 | $_page_cont[$_ni]['page_main_code'] = PageCompPageMainCode();
|
---|
39 |
|
---|
40 |
|
---|
41 | // --------------- [END] page components
|
---|
42 |
|
---|
43 | PageCode();
|
---|
44 |
|
---|
45 | // --------------- page components functions
|
---|
46 |
|
---|
47 | /**
|
---|
48 | * page code function
|
---|
49 | */
|
---|
50 | function PageCompPageMainCode() {
|
---|
51 | global $site;
|
---|
52 |
|
---|
53 | $sSiteUrl = BX_DOL_URL_ROOT;
|
---|
54 |
|
---|
55 | if ( $_POST['DELETE'] ) {
|
---|
56 | profile_delete($_COOKIE['memberID']);
|
---|
57 |
|
---|
58 | bx_logout();
|
---|
59 |
|
---|
60 | return "<center>"._t("_DELETE_SUCCESS")."<br />
|
---|
61 | <a href=\"{$sSiteUrl}\">{$site['title']}</a></center>";
|
---|
62 | }
|
---|
63 |
|
---|
64 | ob_start();
|
---|
65 |
|
---|
66 | echo spacer(1,5);
|
---|
67 |
|
---|
68 | ?>
|
---|
69 |
|
---|
70 | <table width="100%" cellpadding="4" cellspacing="4">
|
---|
71 | <td align="center" class="text2">
|
---|
72 | <form action="<? echo $_SERVER['PHP_SELF']; ?>" method="post">
|
---|
73 | <input type="hidden" name="DELETE" value="1">
|
---|
74 | <center>
|
---|
75 | <?= _t("_DELETE_TEXT"); ?><br /><br />
|
---|
76 | <div class="button_wrapper">
|
---|
77 | <input class="form_input_submit" type="submit" value="<?= _t("_Delete account"); ?>">
|
---|
78 | <div class="button_wrapper_close"></div>
|
---|
79 | </div>
|
---|
80 | <br />
|
---|
81 | <br />
|
---|
82 | </center>
|
---|
83 | </form>
|
---|
84 | </td>
|
---|
85 | </table>
|
---|
86 |
|
---|
87 | <?php
|
---|
88 |
|
---|
89 | $ret = ob_get_clean();
|
---|
90 |
|
---|
91 | return $ret;
|
---|
92 | }
|
---|
93 |
|
---|
94 | ?> |
---|