-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_index.php
More file actions
49 lines (48 loc) · 1.14 KB
/
debug_index.php
File metadata and controls
49 lines (48 loc) · 1.14 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
48
49
<?php
ini_set('display_errors', "1");
include("includes.php");
?>
<?php
echo "<hr>";
$qsts = getQuestions();
var_dump($qsts);
echo "<hr>QUESTIONS<hr>";
foreach($qsts as $q){
var_dump($q);echo "<br/><br/>";
}
echo "<hr>EACH QUESTIONS<hr>";
foreach($qsts as $q){
var_dump($q["id"]);echo "<br/>";
}
echo "<hr>QUESTION 76<hr>";
var_dump(getQuestion(76));
echo "<hr>CURRENT QUESTION<hr>";
var_dump(getCurrentQuestion());
echo "<hr>ITEMS<hr>";
$items = getItems(76);
var_dump($items);
echo "<hr>ITEM index 2<hr>";
$item = $items[2];
var_dump($item);
echo "<hr>ITEM MORE OF ITEMS<hr>";
$more = getItemMore($items);
var_dump($more);
echo "<hr>ITEM RATE<hr>";
$voteCount = getItemRate($item);
var_dump($voteCount);
echo "<hr>ITEM COMMENTS<hr>";
$voteCount = getItemComments($item);
var_dump($voteCount);
echo "<hr>SPECIFIC ITEM COMMENTS<hr>";
$item = getItem(79, 1367);
var_dump($item);
$comments = getItemComments($item);
if(count($comments) < 1) echo "Pas de coms";
else{
foreach($comments as $com){
if(is_object($com)) $com = (array)$com;
echo $com["content"]."<br/>";
}
}
echo "<br/>Media Id = ".getItemMediaId($item);
?>