| 1 | 1514 | Luisehahne | <?php
 | 
      
        | 2 |  |  | /**
 | 
      
        | 3 |  |  |  *
 | 
      
        | 4 |  |  |  * @category        frontend
 | 
      
        | 5 |  |  |  * @package         account
 | 
      
        | 6 | 1773 | Luisehahne |  * @author          Ryan Djurovich, WebsiteBaker Project
 | 
      
        | 7 |  |  |  * @copyright       2009-2012, WebsiteBaker Org. e.V.
 | 
      
        | 8 | 1514 | Luisehahne |  * @link			http://www.websitebaker2.org/
 | 
      
        | 9 |  |  |  * @license         http://www.gnu.org/licenses/gpl.html
 | 
      
        | 10 |  |  |  * @platform        WebsiteBaker 2.8.x
 | 
      
        | 11 |  |  |  * @requirements    PHP 5.2.2 and higher
 | 
      
        | 12 |  |  |  * @version         $Id$
 | 
      
        | 13 |  |  |  * @filesource		$HeadURL$
 | 
      
        | 14 |  |  |  * @lastmodified    $Date$
 | 
      
        | 15 |  |  |  *
 | 
      
        | 16 |  |  |  */
 | 
      
        | 17 |  |  | 
 | 
      
        | 18 |  |  | require_once('../config.php');
 | 
      
        | 19 | 1673 | Luisehahne | ini_set('display_errors','0');
 | 
      
        | 20 | 1514 | Luisehahne | 
 | 
      
        | 21 | 1773 | Luisehahne | require_once(WB_PATH.'/framework/class.admin.php');
 | 
      
        | 22 |  |  | 
 | 
      
        | 23 |  |  | // Create new frontend object
 | 
      
        | 24 |  |  | $wb = new admin();
 | 
      
        | 25 |  |  | 
 | 
      
        | 26 |  |  | //require_once(dirname(__FILE__).'/MySignUp.php');
 | 
      
        | 27 |  |  | //print '<pre style="text-align: left;"><strong>function '.__FUNCTION__.'( '.$page_id.' );</strong>  basename: '.basename(__FILE__).'  line: '.__LINE__.' -> <br />';
 | 
      
        | 28 |  |  | //print_r( dirname(__FILE__) ); print '</pre>';
 | 
      
        | 29 |  |  | 
 | 
      
        | 30 |  |  | //
 | 
      
        | 31 |  |  | if( ( (intval(FRONTEND_SIGNUP)==0) &&
 | 
      
        | 32 |  |  |     (  0 == (isset($_SESSION['USER_ID']) ? intval($_SESSION['USER_ID']) : 0) )))
 | 
      
        | 33 | 1514 | Luisehahne | {
 | 
      
        | 34 | 1773 | Luisehahne | 	$wb->send_header(WB_URL.'/index.php');
 | 
      
        | 35 |  |  | //	if(INTRO_PAGE) {
 | 
      
        | 36 |  |  | //	} else {
 | 
      
        | 37 |  |  | //		header('Location: '.WB_URL.'/index.php');
 | 
      
        | 38 |  |  | //		exit(0);
 | 
      
        | 39 |  |  | //	}
 | 
      
        | 40 | 1514 | Luisehahne | }
 | 
      
        | 41 |  |  | 
 | 
      
        | 42 | 1773 | Luisehahne | // form faked? Check the honeypot-fields.
 | 
      
        | 43 |  |  | if(ENABLED_ASP && isset($_POST['username']) && (
 | 
      
        | 44 |  |  | 	(!isset($_POST['submitted_when']) OR !isset($_SESSION['submitted_when']) ) OR
 | 
      
        | 45 |  |  | //		($_POST['submitted_when'] != $_SESSION['submitted_when']) OR
 | 
      
        | 46 |  |  | 			(!isset($_POST['email-address']) OR $_POST['email-address']) OR
 | 
      
        | 47 |  |  | 				(!isset($_POST['name']) OR $_POST['name']) OR
 | 
      
        | 48 |  |  | 					(!isset($_POST['full_name']) OR $_POST['full_name'])
 | 
      
        | 49 |  |  | 	))
 | 
      
        | 50 |  |  | {
 | 
      
        | 51 |  |  | 	$wb->send_header(WB_URL.'/index.php');
 | 
      
        | 52 | 1514 | Luisehahne | }
 | 
      
        | 53 |  |  | 
 | 
      
        | 54 |  |  | // Load the language file
 | 
      
        | 55 | 1773 | Luisehahne | //if(!file_exists(WB_PATH.'/languages/'.LANGUAGE.'.php')) {
 | 
      
        | 56 |  |  | //	exit('Error loading language file '.LANGUAGE.', please check configuration');
 | 
      
        | 57 |  |  | //} else {
 | 
      
        | 58 |  |  | //	require_once(WB_PATH.'/languages/'.LANGUAGE.'.php');
 | 
      
        | 59 |  |  | //	$load_language = false;
 | 
      
        | 60 |  |  | //}
 | 
      
        | 61 | 1514 | Luisehahne | 
 | 
      
        | 62 | 1773 | Luisehahne | $lang = WB_PATH . '/languages/' . LANGUAGE . '.php';
 | 
      
        | 63 |  |  | require_once(!file_exists($lang) ? WB_PATH . '/languages/EN.php' : $lang );
 | 
      
        | 64 |  |  | 
 | 
      
        | 65 | 1673 | Luisehahne | $_SESSION['display_form'] = true;
 | 
      
        | 66 | 1514 | Luisehahne | 
 | 
      
        | 67 | 1773 | Luisehahne | $page_id = isset($_SESSION['PAGE_ID']) ? intval($_SESSION['PAGE_ID']) : 0;
 | 
      
        | 68 |  |  | 
 | 
      
        | 69 | 1514 | Luisehahne | $page_description = '';
 | 
      
        | 70 |  |  | $page_keywords = '';
 | 
      
        | 71 |  |  | define('PAGE_ID', $page_id);
 | 
      
        | 72 |  |  | define('ROOT_PARENT', 0);
 | 
      
        | 73 |  |  | define('PARENT', 0);
 | 
      
        | 74 |  |  | define('LEVEL', 0);
 | 
      
        | 75 |  |  | define('PAGE_TITLE', $TEXT['SIGNUP']);
 | 
      
        | 76 |  |  | define('MENU_TITLE', $TEXT['SIGNUP']);
 | 
      
        | 77 |  |  | define('MODULE', '');
 | 
      
        | 78 |  |  | define('VISIBILITY', 'public');
 | 
      
        | 79 |  |  | 
 | 
      
        | 80 | 1673 | Luisehahne | define('PAGE_CONTENT', WB_PATH.'/account/signup_form.php');
 | 
      
        | 81 | 1773 | Luisehahne | 
 | 
      
        | 82 | 1514 | Luisehahne | // Set auto authentication to false
 | 
      
        | 83 |  |  | $auto_auth = false;
 | 
      
        | 84 |  |  | 
 | 
      
        | 85 |  |  | // Include the index (wrapper) file
 | 
      
        | 86 |  |  | require(WB_PATH.'/index.php');
 |