Fork me on GitHub

Rapport de message :*
 

Problème page blanche sur page session_confirm.php

Titre du sujet : Problème page blanche sur page session_confirm.php
par temeo sur 18/08/2009 01:15:37

Bonjour
j'ai un gros soucis avec mon site xoops. Depuis lundi, quand je suis connecté a mon site, j'arrive sur une page blanche qui pointe sur session_confirm.php. Bizarrement, cela n'arrive pas quand je ne suis pas connecté (par ex, j'arrive sur cette page blanche quand j'essais de consulter une page de mon forum en étant connecté alors que cela fonctionne en simple visiteur)
Tout fonctionnait bien jusqu'a présent, je n'ai rien modifié.

Pourriez vous m'aider, je suis complètement perdu là et mon site est complètement bloqué

Voila ce qu'il y a dans ce fichier php :


<?php

include "mainfile.php";

// security check
if( ! isset( $_SESSION['AUTOLOGIN_REQUEST_URI'] ) ) exit ;

// get URI
$url = $_SESSION['AUTOLOGIN_REQUEST_URI'] ;
unset( $_SESSION['AUTOLOGIN_REQUEST_URI'] ) ;
if( preg_match('/javascript:/si', $url) ) exit ; // black list of url
$url4disp = preg_replace("/&/i", '&', htmlspecialchars($url, ENT_QUOTES));


if( isset( $_SESSION['AUTOLOGIN_POST'] ) ) {

// posting confirmation

$old_post = $_SESSION['AUTOLOGIN_POST'] ;
unset( $_SESSION['AUTOLOGIN_POST'] ) ;

$hidden_str = '' ;
foreach( $old_post as $k => $v ) {
$hidden_str .= "\t".' <input type="hidden" name="'.htmlspecialchars($k,ENT_QUOTES).'" value="'.htmlspecialchars($v,ENT_QUOTES).'" />'."\n" ;
}

echo '
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset='._CHARSET.'" />
<title>'.$xoopsConfig['sitename'].'</title>
</head>
<body>
<div style="text-align:center; background-color: #EBEBEB; border-top: 1px solid #FFFFFF; border-left: 1px solid #FFFFFF; border-right: 1px solid #AAAAAA; border-bottom: 1px solid #AAAAAA; font-weight : bold;">
<h4>'._RETRYPOST.'</h4>
<form action="'.$url4disp.'" method="POST">
'.$hidden_str.'
<input type="submit" name="timeout_repost" value="'._SUBMIT.'" />
</form>
</div>
</body>
</html>
' ;
exit ;

} else {

// just redirecting

$time = 1 ;
// $message = empty( $message ) ? _TAKINGBACK : $message ;
$message = _TAKINGBACK ;

echo '
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset='._CHARSET.'" />
<meta http-equiv="Refresh" content="'.$time.'; url='.$url4disp.'" />
<title>'.$xoopsConfig['sitename'].'</title>
</head>
<body>
<div style="text-align:center; background-color: #EBEBEB; border-top: 1px solid #FFFFFF; border-left: 1px solid #FFFFFF; border-right: 1px solid #AAAAAA; border-bottom: 1px solid #AAAAAA; font-weight : bold;">
<h4>'.$message.'</h4>
<p>'.sprintf(_IFNOTRELOAD, $url4disp).'</p>
</div>
</body>
</html>
' ;
exit ;

}

?>
Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

40 Personne(s) en ligne (27 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 40 | Plus ...