-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathclick.php
50 lines (33 loc) · 982 Bytes
/
click.php
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
<?php
//inbound clicks
//lee lorenzen =
//gunter = 3
//david happy hour = 4
//cashcliques = 5
include_once '../client/facebook.php';
//require_once("config_click.php");
//require_once("lib.php");
//require_once("adodb/adodb-exceptions.inc.php");
//require_once("adodb/adodb.inc.php");
//$connect= "mysql://CHANGEME:[email protected]/piratewars?persist";
//$DB = NewADOConnection($connect);
//id 1 is pirates
global $DB;
$from_id = $_REQUEST['y'];
$facebook_id = $_REQUEST['z'];
if($facebook_id == NULL) {
$facebook_id = 0;
}
if($from_id == NULL) {
$from_id = 0;
}
//if(isset($from_id)) {
// $DB->Execute("insert into clicks (from_id, facebook_id, created_at) VALUES (?, ?, now())", array($from_id, $facebook_id));
//}
header('Location: http://www.facebook.com/apps/application.php?id=2342084241');
if($from_id == 0) {
header('Location: CHANGEME');
}
//if from_id is 0, then go to apps.facebook.com/pirates
//piratewarsonline.com/click.php?o=999&z=234234
?>