Comment faire ???? identification sur url redirectionné
3 messages • Page 1 sur 1
Consultez la formation URL Rewriting et sites dynamiques de WebRankInfo / Ranking Metrics
Comment faire ???? identification sur url redirectionné
Voila j'ai un petit problème.
j'ai acheter un nom de domaine que j'ai redirectionné, mais voila GROS PROBLEME PAS MOYEN DE SE LOGGUER AU SITE en passant pas la redirection ?????
-sur l'URL reel --> identification -->OK
-sur URL redirectionné ci --->identification-->IMPOSSIBLE
Comment Regler se problème Merci
je vous donne Mon script qui permet l'identifications :
///**********debut**************
<?
unset($login,$pwrd,$id);
session_start();
session_register("login","pwrd","id");
if($logout==1){
session_destroy();
header("Location: ".$PHP_SELF);
}
require('error_inc.php');
require('config_inc.php');
function auth($log,$pass){
global $t_user;
$query = "select id from ".$t_user." where email=\"".$log."\" and pass=\"".$pass."\" ";
$result = MYSQL_QUERY($query);
if(mysql_num_rows($result)>0){
$id=mysql_result($result,0,"id");
@mysql_free_result($result);
return $id;
}else{
@mysql_free_result($result);
return 0;
}
}
if(auth($login,$pwrd)!=0){
header("Location: user_menu.php?PHPSESSID=".$PHPSESSID);
}
if($REQUEST_METHOD=="POST"){
if(isset($lo)){
$log=htmlspecialchars($log);
$passwrd=htmlspecialchars($passwrd);
$au=auth($log,$passwrd);
if($au>0){
$login=$log;
$pwrd=$passwrd;
$id=$au;
header("Location: user_menu.php?PHPSESSID=".$PHPSESSID);
}else{
require('header_inc.php');
print "<p>".$err[1]."</p>";
}
}
}else{
require('header_inc.php');
}
?>
<form name="form1" method="post" action="" >
<table border="0" cellspacing="2" cellpadding="0" align="center">
<tr align="center">
<td height="20" align=right><b>Log In</b></td>
<td height="20"> </td>
</tr>
<tr>
<td align="right">Your Email:</td>
<td align="left" height="20">
<input type="text" name="log" size="15">
</td>
</tr>
<tr>
<td align="right">Password:</td>
<td align="left" height="20">
<input type="password" name="passwrd" size="15">
</td>
</tr>
<tr>
<td align="right" valign="top"> </td>
<td align="left" height="20">
<input type="submit" name="lo" value="Log In">
<br>
<a href="forgot.php"><font color=blue size=1>Forgot your password?</font></a>
</td>
</tr>
</table>
</form>
<?
require('footer_inc.php');
?>
///***********fin************
Qui pourrais me dire comment reussir a me loguer via ma redirection
Bidou
j'ai acheter un nom de domaine que j'ai redirectionné, mais voila GROS PROBLEME PAS MOYEN DE SE LOGGUER AU SITE en passant pas la redirection ?????
-sur l'URL reel --> identification -->OK
-sur URL redirectionné ci --->identification-->IMPOSSIBLE
Comment Regler se problème Merci
je vous donne Mon script qui permet l'identifications :
///**********debut**************
<?
unset($login,$pwrd,$id);
session_start();
session_register("login","pwrd","id");
if($logout==1){
session_destroy();
header("Location: ".$PHP_SELF);
}
require('error_inc.php');
require('config_inc.php');
function auth($log,$pass){
global $t_user;
$query = "select id from ".$t_user." where email=\"".$log."\" and pass=\"".$pass."\" ";
$result = MYSQL_QUERY($query);
if(mysql_num_rows($result)>0){
$id=mysql_result($result,0,"id");
@mysql_free_result($result);
return $id;
}else{
@mysql_free_result($result);
return 0;
}
}
if(auth($login,$pwrd)!=0){
header("Location: user_menu.php?PHPSESSID=".$PHPSESSID);
}
if($REQUEST_METHOD=="POST"){
if(isset($lo)){
$log=htmlspecialchars($log);
$passwrd=htmlspecialchars($passwrd);
$au=auth($log,$passwrd);
if($au>0){
$login=$log;
$pwrd=$passwrd;
$id=$au;
header("Location: user_menu.php?PHPSESSID=".$PHPSESSID);
}else{
require('header_inc.php');
print "<p>".$err[1]."</p>";
}
}
}else{
require('header_inc.php');
}
?>
<form name="form1" method="post" action="" >
<table border="0" cellspacing="2" cellpadding="0" align="center">
<tr align="center">
<td height="20" align=right><b>Log In</b></td>
<td height="20"> </td>
</tr>
<tr>
<td align="right">Your Email:</td>
<td align="left" height="20">
<input type="text" name="log" size="15">
</td>
</tr>
<tr>
<td align="right">Password:</td>
<td align="left" height="20">
<input type="password" name="passwrd" size="15">
</td>
</tr>
<tr>
<td align="right" valign="top"> </td>
<td align="left" height="20">
<input type="submit" name="lo" value="Log In">
<br>
<a href="forgot.php"><font color=blue size=1>Forgot your password?</font></a>
</td>
</tr>
</table>
</form>
<?
require('footer_inc.php');
?>
///***********fin************
Qui pourrais me dire comment reussir a me loguer via ma redirection
Bidou
heu ??
heu ?? dans mon fichier .htaccess
j'avoue que coté .htaccess j'ai pas tros pigé encore tous ceux que je peux te dire c'est que dans mon fichier .htaccess , j'ai que cette ligne:
php_flag register_globals on
Merci de ton aide commencer à desesperer
Bidou
j'avoue que coté .htaccess j'ai pas tros pigé encore tous ceux que je peux te dire c'est que dans mon fichier .htaccess , j'ai que cette ligne:
php_flag register_globals on
Merci de ton aide commencer à desesperer
Bidou
3 messages • Page 1 sur 1
Formation recommandée sur ce thème :
Formation URL Rewriting et sites dynamiques : apprenez comment mettre en place la réécriture d'URL, comment optimiser vos URL et profiter de vos pages dynamiques pour booster votre référencement. Formation animée par Olivier Duffez et Fabien Facériès, experts en référencement naturel.
Tous les détails sur le site Ranking Metrics : programme, prix, dates et lieux, inscription en ligne.
Lectures recommandées sur ce thème :
- GenHit redirectionne en 301...
- Identification et iframe
- Identification sur la home
- Identification visiteur par adresse IP
- Identification d'une signature de navigateur
- Identification de la langue du bot
- PHP - identification d'url
- Cookies pour identification automatque
- Lerepertoire uniquement sur identification
- Identification des pages modifiées
- Identification sur phpbb
- Identification des robots
- Identification des clics frauduleux incroyable !
- Identification sans rechargement de toute la page (ajax?)
- identification des mots clés dans le titre
Qui est en ligne
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 0 invités



le forum