Menu

[2eb2a2]: / docs_delete_confirm.php  Maximize  Restore  History

Download this file

42 lines (34 with data), 1.2 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
<?php session_start(); ?>
<html>
<head>
<title>deltasql - Delete Document</title>
<link rel="stylesheet" type="text/css" href="deltasql.css">
</head>
<body>
<?php
include("head.inc.php");
include("conf/config.inc.php");
include("utils/utils.inc.php");
$rights = $_SESSION["rights"];
$user = $_SESSION["username"];
$userid = $_SESSION["userid"];
if ($rights<1) die("<b>Not enough rights to delete a document.</b>");
$deleteid = $_GET['id'];
if ($deleteid=="") exit;
$version = $_GET['version'];
mysql_connect($dbserver, $username, $password);
@mysql_select_db($database) or die("Unable to select database");
$query3="select name, size from tbscriptdocument where id=$deleteid";
$result3=mysql_query($query3);
$my_filename=mysql_result($result3, 0, "name");
$my_size=mysql_result($result3, 0, "size");
mysql_close();
echo "<h2>Please Confirm Document Deletion (name: <b>$my_filename</b> size: <b>$my_size</b>):</h2>";
echo "<p>Are you sure that you want to delete this document? If not, please press the <b>Back</b> button on your browser</p>";
echo "<ul>";
echo "<li><b><a href=\"docs_delete.php?id=$deleteid&version=$version\">Yes, delete it</a></b></li>";
echo "</ul>";
include("bottom.inc.php");
?>
</body>
</html>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.