Un ch'ti problème de lien :-)



  • N'as-tu pas plutôt un compte bidon déjà tout prêt ?



  • Va sur la section connexion et tape :

    ID : 49
    pseudo = test
    mot de passe = test

    voilà :)



  • Pourrais-tu poster le code de ta page ?



  • Voilà la partie concernée :)

    <center><h4>La Coupe du Monde de rugby</h4></center>
    
    &nbsp;&nbsp Tous les r?ultats de la Coupe du monde de rugby sont &nbsp;&nbsp&nbsp;&nbsp ici ! Vous trouverez ?alement le classement par poule.
    <br />
    <br />
    <center><a href="index.php?tp=user&st=actus1">Poule A</a> |
    <a href="index.php?tp=user&st=actus2">Poule B</a> | 
    <a href="index.php?tp=user&st=actus3">Poule C</a> |
    <a href="index.php?tp=user&st=actus4">Poule D</a></center>
    <br />
    <br />
    <center><strong> R?ultats de la poule A </strong></center>
    
    <table>
    <tr>
    <td class="titre" background="design/navi.gif" height="18" ><center> Equipe A </center></td>
    &nbsp;&nbsp;&nbsp;
    <td class="titre" background="design/navi.gif" height="18" ><center> Scores </center></td>
    &nbsp;&nbsp;&nbsp;
    <td class="titre" background="design/navi.gif" height="18" ><center> Equipe B </center></td>
    </tr>
    <tr>
    <br />
    <td>&nbsp;&nbsp;&nbsp;Angleterre</td><td>&nbsp;&nbsp;&nbsp;&nbsp;28-10&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;&nbsp;&nbsp;Etats-Unis</td>
    </tr>
    <tr>
    <td>&nbsp;&nbsp;&nbsp;Afrique du Sud</td><td>&nbsp;&nbsp;&nbsp;&nbsp;59-7&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;&nbsp;&nbsp;Samoa</td>
    </tr>
    <tr>
    <td>&nbsp;&nbsp;&nbsp;Etats-Unis</td><td>&nbsp;&nbsp;&nbsp;&nbsp;15-25&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;&nbsp;&nbsp;Tonga</td>
    </tr>
    <tr>
    <td>&nbsp;&nbsp;&nbsp;Angleterre</td><td>&nbsp;&nbsp;&nbsp;&nbsp;..-..&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;&nbsp;&nbsp;Afrique du Sud</td>
    </tr>
    <tr>
    <td>&nbsp;&nbsp;&nbsp;Samoa</td><td>&nbsp;&nbsp;&nbsp;&nbsp;..-..&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;&nbsp;&nbsp;Tonga</td>
    </tr>
    <tr>
    <td>&nbsp;&nbsp;&nbsp;Afrique du Sud</td><td>&nbsp;&nbsp;&nbsp;&nbsp;..-..&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;&nbsp;&nbsp;Tonga</td>
    </tr>
    <tr>
    <td>&nbsp;&nbsp;&nbsp;Afrique du Sud</td><td>&nbsp;&nbsp;&nbsp;&nbsp;..-..&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;&nbsp;&nbsp;Tonga</td>
    </tr>
    <tr>
    <td>&nbsp;&nbsp;&nbsp;Angleterre</td><td>&nbsp;&nbsp;&nbsp;&nbsp;..-..&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;&nbsp;&nbsp;Samoa</td>
    </tr>
    <tr>
    <td>&nbsp;&nbsp;&nbsp;Angleterre</td><td>&nbsp;&nbsp;&nbsp;&nbsp;..-..&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;&nbsp;&nbsp;Tonga</td>
    </tr>
    <tr>
    <td>&nbsp;&nbsp;&nbsp;Afrique du Sud</td><td>&nbsp;&nbsp;&nbsp;&nbsp;..-..&nbsp;&nbsp;&nbsp;&nbsp;</td><td>&nbsp;&nbsp;&nbsp;Etats-Unis</td>
    </tr>
    <tr>
    </tr>
    </table>
    


  • Topic déplacé (il concerne un support sur le webmastering, pas un problème freeheberg).

    Je pense que Onepiecefan parlait du code source PHP de la page index.php :wink:



  • @arcanis:

    Topic déplacé (il concerne un support sur le webmastering, pas un problème freeheberg).

    Je pense que Onepiecefan parlait du code source PHP de la page index.php :wink:

    Oui !



  • Si j'ai compris, je crois que vous voulez ça :-)

    http://www.gagnedufric.info/ptc/index.p … &st=actus1

    (si je me suis trompé, ne rigolez pas ! lol)



  • Il nous faudrait le code source de ta page index.php, car la portion que t'as mis ne suffit pas !



  • Vous n'auriez pas un exemple à me montrer… je suis un peu perdu..

    C'est quelque chose de la forme : home/root/www/ptc/ etc... ?



  • Met ici le contenu du fichier:
    /www/index.php
    à partir du compte ftp.



  • Voici le contenu du fichier :

    session_start();
    if($_GET['refer']) { setcookie ("refer",  $refer); }
    
    include('dbconnect.php');
    
     if($action=='Connexion au Compte' || $action=='Suppression du Compte' || $action=='Nouveau Mot de Passe')
     {
    $username=$_POST['username'];
    $password=$_POST['password'];
    $sql=mysql_query("SELECT * FROM users WHERE username='$username' AND fpassword='$password'")or die(mysql_error());
    if(mysql_num_rows($sql))
    {
    //extract(mysql_fetch_array(mysql_query("SELECT * FROM users WHERE username='$username' AND fpassword='$password'")));
    //session_start();
    session_register("login");
    $_SESSION['login'] = $username;
    $login=$username;
    }
    }
    ?>
    
    <?php
    $sq=mysql_query('SELECT * FROM setupinfo');
    $ar=mysql_fetch_array($sq); 
    extract($ar);
    ?>
    
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html><head><title><?php echo"Gagne du Fric avec tes clics !"?></title>
    
    <style>
    .bord1 {  background-repeat: no-repeat; border-color: black #000000 black black; border-style: solid; border-top-width: 0px; border-right-width: 1px; border-bottom-width: 0px; border-left-width: 0px}
    .bord2 {  background-repeat: repeat-x}
    .bord3 {
    	background-repeat: repeat-y;
    	border: thin solid #336699;
    }
      <?php	$c_result = mysql_query("select name, comments, value from design where name='body_style'");
    $c_row = mysql_fetch_row($c_result);
    ?>
    body{<?php echo $c_row[2]?>}
      <?php	$c_result = mysql_query("select name, comments, value from design where name='h2_style'");
    $c_row = mysql_fetch_row($c_result);
    ?>
    h2 {<?php echo $c_row[2]?>}
    td {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px}
    a {  font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #996600; text-decoration: none}
    a:hover {  font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #990000; text-decoration: underline}
    
    </style>
    
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">A {
    	FONT-WEIGHT: bold; COLOR: #000000; TEXT-DECORATION: none
    }
    A:hover {
    	FONT-WEIGHT: bold;
    	TEXT-DECORATION: underline;
    	COLOR: #FF0000;
    }
    TD {
    	FONT-SIZE: 7.5pt; FONT-FAMILY: Verdana,Geneva,Arial,Helvetica,sans-serif
    }
    TD.titre {
    	FONT-SIZE: 7.5pt; FONT-FAMILY: Verdana,Geneva,Arial,Helvetica,sans-serif; FONT-WEIGHT: bold;
    }
    </style></head><body>
    <div align="center">
      <table bgcolor="#000000" border="0" cellpadding="0" cellspacing="1" width="760">
        <tbody><tr> 
          <td><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="760">
              <tbody><tr> 
                <td class="titre" align="right" background="design/bg_navi.gif" height="15"></td>
              </tr>
              <tr> 
                <td background="design/bg_navi.gif" height="100"><table border="0" cellpadding="0" cellspacing="0" width="760">
                    <tbody><tr>
                      <td align="center" width="260"><font color="#ffffff" size="6"><strong> <a href="index.php"><img src="design/header.gif"alt="Gagne du Fric" align="absbottom" border="0" width="760" ></a></strong></font></td>
                      <td width="500"> </td>
                    </tr>
                  </tbody></table></td>
              </tr>
              <tr> 
                <td align="center" background="design/bg_bnavi.gif" height="18">                  </td>
              </tr>
              <tr> 
                <td bgcolor="#c4e1ff"><br>
                  <br>
                  <table border="0" cellpadding="0" cellspacing="0" width="760">
                    <tbody><tr valign="top"> 
                      <td align="center" width="175"> 
                        <table bgcolor="#000000" border="0" cellpadding="0" cellspacing="1" width="160">
                          <tbody><tr>
                            <td><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="160">
                                <tbody><tr>
                                  <td class="titre" align="center" background="design/navi.gif" height="18" > Espace Membres </td>
                                </tr>
                                <tr> 
                                  <td align="center"><table border="0" cellpadding="0" cellspacing="4" width="160">
                                      <tbody><tr>
                                        <td align="center"><a href="index.php">Accueil</a><br>
                                          <a href="index.php?tp=signup">Inscription</a> <br><a href="index.php?tp=member">Connexion</a><br>
                                          <a href="index.php?tp=goldmember">Devenir VIP</a></td>
                                      </tr>
                                    </tbody></table></td>
                                </tr>
                              </tbody></table></td>
                          </tr>
                        </tbody></table>
                        <br>
                        <table bgcolor="#000000" border="0" cellpadding="0" cellspacing="1" width="160">
                          <tbody><tr> 
                            <td><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="160">
                                <tbody><tr> 
                                  <td class="titre" align="center" background="design/navi.gif" height="17"> Espace Annonceurs </td>
                                </tr>
                                <tr> 
                                  <td align="center"><table border="0" cellpadding="0" cellspacing="4" width="160">
                                      <tbody><tr> 
                                        <td align="center"><a href="index.php?tp=advertise">Annoncer</a><br><a href="index.php?tp=advertise">Connexion</a></td>
                                      </tr>
                                    </tbody></table></td>
                                </tr>
                              </tbody></table></td>
                          </tr>
                        </tbody></table>
                        <br>
                        <table bgcolor="#000000" border="0" cellpadding="0" cellspacing="1" width="160">
                          <tbody><tr> 
                            <td><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="160">
                                <tbody><tr> 
                                  <td class="titre" align="center" background="design/navi.gif" height="17"> Support </td>
                                </tr>
                                <tr> 
                                  <td align="center"><table border="0" cellpadding="0" cellspacing="4" width="160">
                                      <tbody><tr> 
                                        <td align="center"><a href="index.php?tp=terms">Règlement</a><br>
                                          <a href="index.php?tp=faq">FAQ</a> <br><a href="index.php?tp=contacts">Nous Contacter</a><br>
                                          </td>
                                      </tr>
                                    </tbody></table></td>
                                </tr>
                              </tbody></table></td>
                          </tr>
                        </tbody></table>
                        <br>
                         // 
                        <br>
                        <br>
                        <br>
                      </td>
    // TEXTE EN DESSOUS BANNIERE CENTRALE
                      <td align="center" width="585">
    <table bgcolor="#000000" border="0" cellpadding="0" cellspacing="1" width="550">
                          <tbody><tr>
                            <td><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="550">
                                <tbody><tr>
                                  <td class="titre" align="center" background="design/bg_input.gif" height="17" > Gagne du Fric </td>
                                </tr>
                                <tr> 
                                  <td><table border="0" cellpadding="0" cellspacing="5" width="550">
                                      <tbody><tr>
                                         <td>
    
     <?php
    	  $sql=mysql_query("SELECT * FROM banners");
      $rows=mysql_num_rows($sql);
      $r=rand(0,$rows);
      @mysql_data_seek($sql,$r);
       @$arr=mysql_fetch_array($sql);
     @extract($arr);
      echo"";
      $shows=$fshows+1;
      mysql_query("UPDATE banners SET fshows=$shows WHERE fnum=$fnum");
    	  ?>
    
    <?php	$c_result = mysql_query("select name, comments, value from design where name='pagebg'");
    $c_row = mysql_fetch_row($c_result);
    ?>
    
        <td height="100%" valign="top" background="images/fon.gif" bgcolor="<?php echo $c_row[2]?>"> 
          <p align="center"> 
    
            <?php
    	switch($tp)
    	{
    	case('faq'):
    	include('faq.php');
    	break;
    	case('member'):
    	include('member.php');
    	break;
    	case('signup'):
    	include('signup.php');
    	break;
    	case('specialorder'):
    	include('specialsorder.php');
    	break;
    	case('terms'):
    	include('terms.php');
    	break;
    	case('advertise'):
    	include('advertise.php');
    	break;
        case('member'):
    	include('member.php');
    	break;
    	case('user'):
    	include('user.php');
    	break;
    	case('goldmember'):
    	include('goldmember.php');
    	break;
    	case('contacts'):
    	include('contacts.php');
    	break;
                        case('register'):
    	include('register.php');
    	break;
    case('adstats'):
    	include('adstats.php');
    	break;
    case('ntpemorder'):
    	include('ntpemorder.php');
    	break;
    	case('tpemorder'):
    	include('tpemorder.php');
    	break;
    	case('visitorder'):
    	include('visitorder.php');
    	break;
    	case('suorder'):
    	include('suorder.php');
    	break;
    		case('banorder'):
    	include('banorder.php');
    	break;
    
        case(''):
    	include('home.php');
    	break;
    	}
    	?>
            <?php
    if($act=='logout')
    {
    @session_unregister('login'); @session_destroy(); echo"<b>Vous vous êtes bien déconnecté ! A bientôt sur Gagne du Fric !</b>";
    }
    ?>
    
    <?php
    	  $sql=mysql_query("SELECT * FROM banners");
      $rows=mysql_num_rows($sql);
      $r=rand(0,$rows);
      @mysql_data_seek($sql,$r);
       @$arr=mysql_fetch_array($sql);
     @extract($arr);
      echo"";
      $shows=$fshows+1;
      mysql_query("UPDATE banners SET fshows=$shows WHERE fnum=$fnum");
    	  ?>
    


  • Personne n'a d'idée ? :-)


Log in to reply