-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.php
More file actions
32 lines (28 loc) · 781 Bytes
/
Copy pathdatabase.php
File metadata and controls
32 lines (28 loc) · 781 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
29
30
<?php
require_once(__DIR__.DIRECTORY_SEPARATOR."includes.php");
$output = array();
$services = $_POST["clouds"];
$services = explode(",",$services);
$services = array_filter($services);
$action = $_POST["action"];
foreach ($services as $service) {
$class = "XUP\Uploader\\".$service;
$adapter = new $class();
$output[$service] = $action($adapter,$_POST);
}
exit(json_encode($output));
function select($adapter,$post) {
$qid = injection($post["qid"]);
$formid = injection($post["formid"]);
return $adapter->select($formid,$qid);
}
function insert($adapter,$post) {
$qid = injection($post["qid"]);
$key = $post["key"];
$formid = injection($post["formid"]);
return $adapter->insert($formid,$qid,$key);
// }
}
function deleteKey($adapter,$params){
return null;
}