-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlists.inc.php
More file actions
53 lines (45 loc) · 1.69 KB
/
Copy pathlists.inc.php
File metadata and controls
53 lines (45 loc) · 1.69 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
50
51
52
53
<?php
$isChecklist = (isset($_REQUEST['type']) && ($_REQUEST['type'] === 'C' || $_REQUEST['type'] === 'c'));
if ($isChecklist) {
$type = 'c';
$check = 'check';
} else {
$type = 'l';
$check = '';
}
$values = array(
'listId' => (isset($_REQUEST['listId'])) ? (int) $_REQUEST['listId'] : 0
,'itemId' => (empty($_REQUEST['itemId'])) ? '' : $_REQUEST['itemId']
,'instanceId' => (isset($_REQUEST['instanceId']) && is_numeric($_REQUEST['instanceId'])) ? $_REQUEST['instanceId'] : ''
,'categoryId' => (isset($_REQUEST['categoryId'])) ? (int)$_REQUEST['categoryId'] : 0
,'catcodeId' => (isset($_REQUEST['catcodeId'])) ? (string)$_REQUEST['catcodeId'] : false
,'scored' => (isset($_REQUEST['scored'])) ? $_REQUEST['scored'] : 'n'
,'prioritise' => (isset($_REQUEST['prioritise'])) ? $_REQUEST['prioritise'] : 'n'
);
#debug
// #if(isset($_REQUEST['listId'])) unset($_REQUEST['listId']);
// echo "<pre>_GET ";
// var_dump($_GET);
// echo "_REQUEST ";
// var_dump($_REQUEST);
// echo "values ";
// var_dump($values);
// die;
# workaround for office network
#if(isset($_GET['listId'])) $values['listId'] = $_GET['listId'];
$urlSuffix = "type=$type";
if (isset($_REQUEST['instanceId'])) {
$urlSuffix .= '&instanceId=' . $_REQUEST['instanceId'];
}
if (isset($_REQUEST['instanceId']) && is_numeric($_REQUEST['instanceId'])) {
$isInst = true;
} else {
$isInst = false;
}
if (isset($_REQUEST['display']) && $_REQUEST['display'] === 'true') {
$display = true;
} else {
$display = false;
}
#echo $_REQUEST['listId']; var_dump($values);die;
// php closing tag has been omitted deliberately, to avoid unwanted blank lines being sent to the browser