-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig_facebook.php
80 lines (48 loc) · 1.83 KB
/
config_facebook.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
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
79
80
<?php
//for dev tree
//$memcache = memcache_connect('localhost', 11211);
//PRODUCTION
$api_key = 'CHANGEME';
$secret = 'CHANGEME';
global $network_id;
$network_id = 0;
$db_ip='CHANGEME';
$facebook_canvas_url='CHANGEME';
$base_url = 'CHANGEME';
//$base_url = 'http://piratewars.dyndns.org/piratewars';
////////////////////////////////////////////////////////////////////////////////////////////
//memcache stuff and facebook header
$facebook = new Facebook($api_key, $secret);
//$user = $facebook->get_loggedin_user();
//print_r($user);
//echo $user;
//die("ok");
//$is_logged_out = !$user;
$i = $_REQUEST['i'];
//if($is_logged_out && !isset($i)) {
// require_once 'index_logged_out.php';
// exit;
//}
$facebook->require_frame();
$user = $facebook->require_login();
////////////////////////////////////////////////////////////////////////////////////////////
require_once 'cheater_ids.php';
///ISOLATED SERVER FOR CHEATERS
if(isset($cheaters[$user])) {
//if(in_array($user, $cheaters)) {
die("Your account has been banned from Pirates. This is because you broke the Facebook Terms of Service or the Pirate Rules. Common reasons for being banned are using automated bots to play the game or creating fake/multiple Facebook accounts. If you have any questions please message me. I apoligize for not messaging you individually. -Andy");
}
else {
$db_user = 'CHANGEME';
//$db_user = 'CHANGEME';
//$db_pass = 'CHANGEME';
$db_pass = 'CHANGEME';
// the name of the database that you create for footprints.
//$db_name = 'piratewarsdev';
$db_name = 'CHANGEME';
$memcache_temp = new Memcache(); //use temp for mile limits, gambing limits
$memcache_temp->addServer('10.12.198.194', 11219);
$memcache = new Memcache();
$memcache->addServer('10.12.198.194', 11211);
}
require_once 'image_ids.php';