Bonsoir,

J' ai 2 page en PHP ( affiliate.php et check1.php ) et je dois les convertir en ASP, existe t'il des utilitaires qui font sa ?

Pouvez vous m aider svp ?

merci à vous

affiliate.php

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
 
<?php  
 
if($_GET['ref']) 
{		
  if($cookieExpiration != 0)
    $cookieLifetime = time() + $cookieExpiration*86400;
  else
    $cookieLifetime =  time() + 3650*86400;
 
  SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
  SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
  SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
  SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
  SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
 
  session_start();
  $_SESSION['ref'] = $_GET['ref'];
 
  include "affconfig.php";   
 
  mysql_connect($server, $db_user, $db_pass) 
    or die ("Database CONNECT Error (line 17)"); 
 
  mysql_db_query($database, "INSERT INTO clickthroughs VALUES ('".$_GET['ref']."', '$clientdate', '$clienttime', '$clientbrowser', '$clientip', '$clienturl', '')"); 
}
?>
check1.php

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
 
<?php
$payment = "5.00";
 
// Do not edit anything below this line
include "affconfig.php"; 
 
$ref = $HTTP_COOKIE_VARS["ref"];
if ($ref == '')	
{
    if($debugMessage)
        echo "<br><font color=#ff0000>PostAffiliate Debug Msg: No referrer found in cookie, trying to use sessions.</font><br>";
 
    $ref = $_SESSION["ref"];
 
    if($ref == '' && $debugMessage)
        echo "<br><font color=#ff0000>PostAffiliate Debug Msg: No referrer found in session.</font><br>";
 
}
 
if ($ref != '')
{
    echo "<br><font color=#ff0000>PostAffiliate Debug Msg: Referrer '$ref' found, registering sale.</font><br>";
 
	mysql_connect($server, $db_user, $db_pass) 
        or die ("Database CONNECT Error (line 32)"); 
 
	mysql_db_query($database, "INSERT INTO sales VALUES ('$ref', '$clientdate', '$clienttime', '$clientbrowser', '$clientip', '$payment')") 
        or die("Database INSERT Error (line 34)"); 
}	
?>