-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
28 lines (26 loc) · 742 Bytes
/
Copy pathindex.php
File metadata and controls
28 lines (26 loc) · 742 Bytes
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
<?php
include "config.php";
include "class.jdap.php";
//Is this safe?
foreach($_POST as $key=>$value) {
$jdapData[$key] = $value;
}
$jdap = new jdap($jdapData, $jdapMsg);
$result = $jdap->doRun();
//output voor debug
if ($result["error"] == 0 && !isset($_POST["Username"])) {
echo "<p>".$result["count"] . " attributes held for this entry:<p>";
for ($j = 0; $j < $result["count"]; $j++){
echo $result[$j] . " : ";
for ($i = 0; $i < $result["$result[$j]"]["count"]; $i++){
echo $result["$result[$j]"][$i]."<br />";
}
}
echo "<p>";
}
elseif (!isset($_POST["Username"])) {
echo "Some shit :(<p>";
}
error_log($result["usermsg"] ." : ".$result["error"]);
echo json_encode( $result );
?>