-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdelete.php
34 lines (28 loc) · 1.21 KB
/
delete.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
<?php
/**
*
* @module Code2
* @version 2.2.18
* @authors Ryan Djurovich, minor changes by Chio Maisriml, websitbaker.at, Search-Enhancement by thorn, Mode-Select by Aldus, FTAN Support, syntax highlighting and current maintenance by Martin Hecht (mrbaseman)
* @copyright (c) 2009 - 2020, Website Baker Org. e.V.
* @link https://github.com/WebsiteBaker-modules/code2
* @license GNU General Public License
* @platform 2.8.x
* @requirements PHP 5.2.x and higher
*
**/
/* -------------------------------------------------------- */
// Must include code to stop this file being accessed directly
if(!defined('WB_PATH')) {
// Stop this file being access directly
if(!headers_sent()) header("Location: ../index.php",TRUE,301);
die('<head><title>Access denied</title></head><body><h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2></body></html>');
}
/* -------------------------------------------------------- */
/**
* Delete record from the database
*
*/
$database->query(
"DELETE FROM `".TABLE_PREFIX."mod_code2`"
. " WHERE `section_id`= '".$section_id."'");