-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserlist.php
More file actions
41 lines (38 loc) · 1.75 KB
/
userlist.php
File metadata and controls
41 lines (38 loc) · 1.75 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
<?php
set_include_path('./library' . PATH_SEPARATOR . get_include_path());
$userList = array('users' => array(
array(
'name' => 'Joey Joe Joe Junior Shabadoo',
'userId' => 'jjjjs',
'job' => "A random guy at Moe's Tavern",
'age' => 42
),
array(
'name' => 'Mike Rowe',
'userId' => 'mrowe',
'job' => 'All Of Them',
'age' => 48
),
array(
'name' => 'Vincent Price',
'userId' => 'vprice',
'job' => 'Creepy Guy',
'age' => 82
),
array(
'name' => 'Morgan Freeman',
'userId' => 'mfreeman',
'job' => 'God, President, Personal Driver, Inmate',
'age' => 78
)
)
);
if (isset($_GET['debug']) && $_GET['debug'] == 1) {
require_once 'FirePHPCore/fb.php';
FB::log('There are a total of ' . count($userList['users']) . ' users');
FB::info('Info message!');
FB::warn('Warn message');
FB::error('Error message');
}
header('Content-Type: application/json');
echo json_encode($userList);