forked from nilsteampassnet/TeamPass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
find.load.php
44 lines (40 loc) · 864 Bytes
/
find.load.php
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
<?php
/**
* @file find.load.php
* @author Nils Laumaillé
* @version 2.1
* @copyright (c) 2009-2011 Nils Laumaillé
* @licensing GNU AFFERO GPL 3.0
* @link http://www.teampass.net
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
if (!isset($_SESSION['CPM'] ) || $_SESSION['CPM'] != 1)
die('Hacking attempt...');
?>
<script type="text/javascript">
/*
* Copying an item from find page
*/
function copy_item(item_id) {
LoadingPage();
//Send query
$.post(
"sources/items.queries.php",
{
type : "copy_item",
item_id : item_id
},
function(data){
//if OK
if (data[0].status == "ok") {
window.location.href = "index.php?page=find";
}
LoadingPage();
},
"json"
);
}
</script>