-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprocess.php
More file actions
48 lines (41 loc) · 1.13 KB
/
Copy pathprocess.php
File metadata and controls
48 lines (41 loc) · 1.13 KB
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
<?php
session_start();
//require 'src/db.php';
require 'src/facebook.php';
require 'src/fbconfig.php';
$facebook=$_SESSION['facebook'];
$userdata=$_SESSION['userdata'];
$userphotos=$_SESSION['userphotos'];
$logoutUrl=$_SESSION['logout'];
$access_token_title='fb_'.$facebook_appid.'_access_token';
$access_token=$facebook[$access_token_title];
//print_r($_SESSION['userdata']);
$photoData=$userphotos['data'];
//for($i=0;i<sizeof($photoData);$i++){
//print_r($photoData[$i]);
//echo "-------------------------------------<br/><br/><br/>";
//}
$arr=$photoData[1];
//print_r($arr['source']);
?>
<img src="<?php echo $arr['source'];?>" />
<table height="auto" align="center" cellpadding="2" cellspacing="2">
<thead>
<tr>
<th colspan="2"></th>
</tr>
</thead>
<tbody>
<form method="post" action="validateTags.php">
<tr>
<td colspan="2" align="center">Identify the faces in the image(Enter names separated by comma):</td>
</tr>
<tr>
<td colspan="2" align="center"><textarea cols="40" rows="5" name="tags"></textarea></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="submit" value="authenticate"/></td>
</tr>
</form>
</tbody>
</table>