-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelete_reviewer.php
More file actions
executable file
·51 lines (36 loc) · 1.31 KB
/
delete_reviewer.php
File metadata and controls
executable file
·51 lines (36 loc) · 1.31 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
<?php
/********************************************************
*
* phpAbstracts
* http://www.phpabstracts.com
*
* For copyright and license information, see readme.txt
*
*********************************************************/
include('header.php');
if ($admin) {
//Database Connection Variables
include('db.php');
//Connect to database
mysql_connect($host,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$review_id = $_GET['x'];
$abstract_id = $_GET['y'];
$query = "DELETE FROM reviews WHERE review_id = $review_id";
mysql_query($query) or die(mysql_error());
mysql_close();
//Print confirmation
$goback_abstract = "<form method='post' action='detail.php' name='goback_abstract_form' id='goback_abstract_form'>" .
"<input type='hidden' id='abstract_id' name='abstract_id' value='" . $abstract_id . "' />" .
"<a href='list.php'>Return " . $home_title . "</a> | " .
"<a href='#' onclick='javascript:document.goback_abstract_form.submit();'>Return to abstract</a>" .
"</form>";
echo "<br /><br /><br />" .
"<div class='statusbox'>" .
"<p>This assignment has been successfully removed.</p>" .
$goback_abstract .
"</div>".
"<br /><br /><br />";
}
include('footer.php');
?>