/* -*- C -*- */ /* ******************************************************************** ** ** 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 default values */ include ('defaults_inc.php'); //Check for access permissions of this page if(!check_permissions($nick,$pruef)){ //the user has no access permission for this page print ' ';//to prevent an error screen of an empty page exit; } /* * 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 } /** * Check, if the nick a moderator */ $result=mysql_query("SELECT count(*) AS count FROM vip WHERE Moderator='$nick' AND Channel='$channel'",$db_handle); if(mysql_result($result,0,"count") < 1){ echo ' '; exit; } @mysql_free_result($result); include ('write_line_inc.php'); ?>