Menu

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

Download this file

37 lines (30 with data), 922 Bytes

 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
<?php session_start(); ?>
<html>
<head>
<title>deltasql - Delete Project Branch</title>
<link rel="stylesheet" type="text/css" href="deltasql.css">
<link rel="shortcut icon" href="pictures/favicon.ico" />
</head>
<body>
<?php
include_once('utils/compatibility.inc.php');
setCompatibility(0);
include("conf/config.inc.php");
include("utils/utils.inc.php");
$rights = $_SESSION["rights"];
$user = $_SESSION["username"];
$userid = $_SESSION["userid"];
if ($rights<3) die("<b>Not enough rights to delete a project branch.</b>");
$branchid = $_GET['id'];
if ($branchid=="") exit;
mysql_connect($dbserver, $username, $password);
@mysql_select_db($database) or die("Unable to select database");
$query2="DELETE FROM tbscriptbranch where branch_id=$branchid;";
mysql_query($query2);
$query="DELETE FROM tbbranch where id=$branchid;";
mysql_query($query);
mysql_close();
js_redirect("list_branches.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.