Просмотр файла src/eng.saveNewUser.php

Размер файла: 2.02Kb
<?php
/*
* Harris WapChat
*
* http://www.successkid.com
*
* Harris WapChat is a wap chat application for personal and corporate used.
* Visit {@link http://www.successkid.com} for more info.
* Copyright (C) 2005 Harris Yusuf Arifin
* 
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* 
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
* 
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*
* @author		Harris Yusuf Arifin <[email protected]>
* @copyright	Copyright 2005, Harris Yusuf Arifin
*
* Please support this software by send DONATION to E-GOLD account :
* E-gold Number : 827550
* E-gold Name 	 : earthweb egold
*/



session_start();
	if ($sesPathLang == "") {
		$sesPathLang = "en";
	} 
	
	include("constant.php");
	include(FILE_OPEN_DATABASE);
	include(FILE_FUNCTIONS);
	include(FILE_DISPLAY_MODUL);
	include($sysFileDir."langtxt/lang-".$sesPathLang.".php");

	if ( (empty($us)) || (empty($pa)))
{
	include($sysFileDir.$sesPathBrowser."/saveNewUserEmpty.php");
} 
elseif ((cekChar($us) == "0")) {
	include($sysFileDir.$sesPathBrowser."/saveNewUserEmpty.php");
} 
elseif ($reg_email == 1) {
	if (!preg_match( 
  	'/^[-!#$%&\'*+\\.\/0-9=?A-Z^_`{|}~]+'.  
  	'@'.                                   
  	'([-0-9A-Z]+\.)+' .                    
  	'([0-9A-Z]){2,4}$/i', 
  	$em)) {
  
	include($sysFileDir.$sesPathBrowser."/saveNewUserEmail.php");
	}
} else {
	$goSave = addUser($us,$pa,$em,$sesUserAdminCob,$sesCobID);
	include($sysFileDir.$sesPathBrowser."/saveNewUser.php");
}

include(FILE_CLOSE_DATABASE);
?>