/* ******************************************************************** ** ** Copyright (C) 1995-2000 Michael Oertel ** ** Copyright (C) 2000- PHPOpenChat Development Team ** ** http://www.ortelius.de/phpopenchat/ ** ** ** ** This program is free software. You can redistribute it and/or modify ** ** it under the terms of the PHPOpenChat License Version 1.0 ** ** ** ** 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. ** ** ** ** You should have received a copy of the PHPOpenChat License ** ** along with this program. ** ** ******************************************************************** */ include("defaults_inc.php"); /* * Open a database connection * The following include returns a database handle */ include ("connect_db_inc.php"); $db_handle=connect_db($DATABASEHOST,$DATABASEUSER,$DATABASEPASSWD); if(!$db_handle){ exit;//the error message is printed in connect_db_inc.php } if(!$pruef){ $Passwort2=$Passwort; }else{ //Check for access permissions of this page if($nick && !check_permissions($nick,$pruef)){ //the user has no access permission for this page header("Status: 204");//browser don't refresh his content mysql_close($db_handle); exit; } } function login (){ global $nick,$FILE_EXTENSION,$INSTALL_DIR,$NICK_NAME,$PASSWORD,$USERPROFILE; echo '
|
|