Code PHP:
<head> <?php require_once('./forum/global.php'); ?> </head>
<?php
if(isset($_COOKIE['userid']) && !empty($_COOKIE['userid'])) {
echo "bonjour";
}
else {
//formulaire
}
?>
<!-- login form -->
<form action="forum/login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
<script type="text/javascript" src="forum/clientscript/vbulletin_md5.js?v=368"></script>
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td class="smallfont"><label for="navbar_username">Identifiant</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="Identifiant" onfocus="if (this.value == 'Identifiant') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />Se souvenir de moi ?</label></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password">Mot de passe</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
<td><input type="submit" class="button" value="S'identifier" tabindex="104" title="Insérez votre identifiant et mot de passe dans les cases correspondantes pour vous connecter, ou cliquez sur le bouton « S'inscrire » pour créer un profil personnel." accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->
<?php
echo $_POST['username'];
?>
Voilà mon code, et malgré l'include, il y a une erreur
:"Fatal error: main() [function.require]: Failed opening required '/homepages/7/d232553328/htdocs/includes/init.php' (include_path='.:/usr/lib/php') in /homepages/7/d232553328/htdocs/forum/global.php on line 20"
Dur dur de résoudre ce problème