function auth(){ if (!isset($_SERVER['PHP_AUTH_USER'])) { header('WWW-Authenticate: Basic realm=" OK Kāpa biedru kluba iekšējā diskusija"'); header('HTTP/1.0 401 Unauthorized'); echo 'Tu nevari piekljuut lapas administraacijas sadaljai, neievadot lietotaaja vaardu un paroli'; exit; } elseif( $_SERVER['PHP_AUTH_USER'] != 'biedrs' || $_SERVER['PHP_AUTH_PW'] != 'eglepriede' ) { echo "
Tu ievadiiji nepareizu paroli vai lietotaaja vaardu!!!
"; exit; } else {} } auth(); session_start(); include("admin/includes/db_config.php"); include("admin/includes/mysql.lib.php"); $obj=new connect; ?>