No response
When using mysqli authentication on a webpage I get the following message:
Warning: Cannot modify header information - headers already sent by (output started at /home/folder/domains/domain.nl/public_html/cms60/start.php:1) in /home/folder/domains/domain.nl/public_html/cms60/webassist/mysqli/authentication.php on line 206
I have checked the start.php file a couple of times now for blank lines of code specifically on line 1 but found none...
On the very first line of start.php it calls in the mysqli connections include -> No blank lines there
On the second line it includes the authentication.php file -> No blank lines there
On the third line the authentication starts...
///
First 21 lines of start.php
<?php require_once('Connections/cms_i.php'); ?>
<?php require_once('webassist/mysqli/authentication.php'); ?>
<?php
if (($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)) {
$Authenticate = new WA_MySQLi_Auth($verbind_i);
$Authenticate->Action = "authenticate";
$Authenticate->Name = "loginCMS60";
$Authenticate->Table = "login";
$Authenticate->addFilter("Log_User", "=", "s", "".((isset($_POST["un"]))?$_POST["un"]:"") ."");
$Authenticate->addFilter("Log_Password", "=", "s", "".((isset($_POST["ww"]))?$_POST["www"]:"") ."");
$Authenticate->storeResult("Log_Id", "sessionId");
$Authenticate->storeResult("Log_User", "sessionUser");
$Authenticate->storeResult("Log_Password", "sessionPassword");
$Authenticate->AutoReturn = true;
$SuccessRedirect = "inside.php";
$FailedRedirect = "start.php?acces=no";
if (function_exists("rel2abs")) $SuccessRedirect = $SuccessRedirect?rel2abs($SuccessRedirect,dirname(__FILE__)):"";
if (function_exists("rel2abs")) $FailedRedirect = $FailedRedirect?rel2abs($FailedRedirect,dirname(__FILE__)):"";
$Authenticate->SuccessRedirect = $SuccessRedirect;
$Authenticate->FailRedirect = $FailedRedirect;
$Authenticate->execute();
}?>
I have also tried to change the order of the first three occurances on the page
Any suggestions on where els to look for the problem?
With Kind regards RV.