Project

General

Profile

1
<?php
2
/*
3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
4
 *
5
 * This program is free software: you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License as published by
7
 * the Free Software Foundation, either version 3 of the License, or
8
 * (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
 */
18

    
19
/**
20
 * cmdDelete.php
21
 *
22
 * @category     Addons
23
 * @package      Addons_wrapper
24
 * @copyright    Manuela v.d.Decken <manuela@isteam.de>
25
 * @author       Manuela v.d.Decken <manuela@isteam.de>
26
 * @license      http://www.gnu.org/licenses/gpl.html   GPL License
27
 * @version      3.0.1
28
 * @lastmodified $Date: 2017-07-02 17:14:29 +0200 (Sun, 02 Jul 2017) $
29
 * @since        File available since 2015-12-17
30
 * @description  xyz
31
 */
32
/* -------------------------------------------------------- */
33
// Must include code to stop this file being accessed directly
34
if (!defined('WB_PATH')) { throw new Exception('Cannot access the addon \"'.basename(__DIR__).'\" directly'); }
35
/* -------------------------------------------------------- */
36

    
37
// Delete page from mod_wrapper
38
    $sql = 'DELETE FROM `'.TABLE_PREFIX.'mod_wrapper` '
39
         . 'WHERE `section_id`='.$database->escapeString($section_id);
40
    $database->query($sql);
41

    
42
// end of file
43

    
(1-1/7)