-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpick_friend_bomb.php
53 lines (38 loc) · 1.28 KB
/
pick_friend_bomb.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
<?php
include_once '../client/facebook.php';
// some basic library functions
include_once 'lib.php';
// this defines some of your basic setup
include_once 'config.php';
global $DB;
require_once 'header.php';
$type= get_team($user);
$in = $_REQUEST['i'];
if(isset($in)) {
$facebook->redirect("$facebook_canvas_url/install.php?i=$in");
}
//print_r($user);
$user_in_db = is_user_in_db($user);
if($user_in_db ==0) {
$facebook->redirect("$facebook_canvas_url/install.php");
}
$coin_total = get_coin_total($user);
$buried_coin_total = get_coin_total_buried($user);
$level = get_level($user);
print dashboard();
?>
<center>
<h1 style='font-size:200%'>Throw some bombs! (5 left)</h1>
<fb:photo pid='<?php echo $bomb_100; ?>' uid="<?php echo $image_uid; ?>" />
</center>
<h2 style="text-align:center; font-size:150%">Type a friends name to throw a bomb and steal some gold!</h2><br>
<center>
<form action="throw_action.php">
<fb:friend-selector/>
<br>
<input style="width:80px; height:60px; font-size: 140%; margin-top:20px" class="inputsubmit" type="submit" value="Throw!" name="submit"/>
</form>
<br><br>
</center>
<h3 style="text-align:center; padding-top: 5px; padding-bottom: 10px"><a href="index.php">Go back to sea</a> -adventure, danger and treasure await</h3>
<?php require_once 'footer.php'; ?>