-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreportbookmark-form.php
executable file
·71 lines (60 loc) · 1.73 KB
/
reportbookmark-form.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<!-- Page dependent settings such as settitle -->
<?php
require_once("deps/session.inc");
require_once("deps/presentation.inc");
require_once("deps/database.inc");
$title = settitle(__REPORT);
$thisPage = __REPORT;
?>
<head>
<!-- Global head attributes and scripts (JQuery, etc.) -->
<?php require_once('templates/head.inc') ?>
<!-- Page-specific head attributes -->
</head>
<body>
<!-- Below should remain as is on every page -->
<div id="title">
<?php require_once('templates/layout/title.php'); ?>
</div>
<div id="language">
<?php require_once('templates/layout/language.php'); ?>
</div>
<div id="navigation">
<?php require_once('templates/layout/navigation.php'); ?>
</div>
<!-- Above should remain as is on every page -->
<div id="content">
<?php
if (!(isset($_GET['bid'])))
{
if (!(isset($_POST['bid'])))
{
die("You didn't use a valid BID.");
}
$bid = $_POST['bid'];
}
else
{
$bid = $_GET['bid'];
}
$bk = fetchBookmark($bid);
?>
<h2><?=__REPORT?></h2>
<p><?=__SUREREPORT?></p>
<p><em><?=$bk->getTitle()?> (<?=$bk->getUrl()?>)</em></p>
<p><?=__SUREREPORT2?></p>
<form action="reportbookmark-exec.php" method="post">
<input type="hidden" name="bid" value="<?=$bid?>" />
<input type="submit" value="<?=__CONFIRM?>" />
<input type="button" value="<?=__GOBACK?>" onclick="parent.location = 'viewbookmark.php?bid=<?=$bid?>'" />
</form>
</div>
<!-- Below should remain as is on every page -->
<div id="footer">
<?php require_once('templates/layout/footer.php'); ?>
</div>
<!-- Above should remain as is on every page -->
</body>
</html>