1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
../..
<p>
Travaux au forfait<p>
<p>
Interventions dans toute l'Europe<p>
<p>
Frais de déplacement aux frais réels sur justificatifs<p>
</td>
</tr>
</table>
</font>
<p>
<?php
$db_serveur = "mysql.monsite.com";
$db_user = "root";
$db_pwd = "12345";
$conn = @mysql_connect($db_serveur, $db_user, $db_pwd);
if (!$conn)
{
echo "%PDT-F-SQLCONNECT, Connect error " . mysql_errno() . " " . mysql_error();
exit;
}
$db_base = "mybase";
$rs = @mysql_select_db($db_base, $conn);
if (!$rs)
{
echo "<p>%PDT-F-SQLSELECT, Select error " . mysql_errno() . " " . mysql_error();
exit;
}
$sql = "select autorisation from utilisateurs where email = '$email'";
$rs = mysql_query($sql, $conn);
if (!$rs)
{
echo "%PDT-F-SQLQUERY, Query error " . mysql_errno() . " " . mysql_error();
exit;
}
$data = mysql_fetch_array($rs);
if (!$data)
{
echo "%PDT-F-SQLFETCH, Fetch error " . mysql_errno() . " " . mysql_error();
exit;
}
$autorisation = $data['autorisation']; // 1=en cours de création de page, 2=attente de paiement, 3=payée
if ($autorisation == "2")
{
?>
</body>
</html>
<?php
exit;
}
else
{
?>
<font face="Verdana" size="2">
Pour <b>modifier</b> votre page,
<br>
cliquez sur la flèche <b>"reculer d'une page"</b> de votre navigateur.
<p>
Pour <b>valider</b> et régler votre commande,
<br>
cliquez sur le bouton ci-dessous.
<p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input name="custom" type="hidden" value="abradacabra">
<input type="hidden" name="hosted_button_id" value="patincouffin">
<input type="image" src="btn_xpressCheckout.gif" name="submit" alt="PayPal">
<img alt="" border="0" src="https://www.paypalobjects.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
</form>
</body>
</font>
</html>
<?php
}
exit;
?> |
Partager