[ Index ] |
PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09) |
[Summary view] [Print] [Text view]
1 <?php 2 /************************************************************************************* 3 Copyright notice 4 5 (c) 2002-2009 Oliver Georgi (oliver@phpwcms.de) // All rights reserved. 6 7 This script is part of PHPWCMS. The PHPWCMS web content management system is 8 free software; you can redistribute it and/or modify it under the terms of 9 the GNU General Public License as published by the Free Software Foundation; 10 either version 2 of the License, or (at your option) any later version. 11 12 The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html 13 A copy is found in the textfile GPL.txt and important notices to the license 14 from the author is found in LICENSE.txt distributed with these scripts. 15 16 This script is distributed in the hope that it will be useful, but WITHOUT ANY 17 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 18 PARTICULAR PURPOSE. See the GNU General Public License for more details. 19 20 This copyright notice MUST APPEAR in all copies of the script! 21 *************************************************************************************/ 22 23 // ---------------------------------------------------------------- 24 // obligate check for phpwcms constants 25 if (!defined('PHPWCMS_ROOT')) { 26 die("You Cannot Access This Script Directly, Have a Nice Day."); 27 } 28 // ---------------------------------------------------------------- 29 30 31 /* 32 * module Calendar 33 * =============== 34 * 35 * some defaults for modules: $phpwcms['modules'][$module] 36 * store all related in here and holds some default values 37 * ['path'], ['type'], ['name'] 38 * language values are store in $BL['modules'][$module] 39 * as defined in lang/en.lang.php 40 * but maybe to keep default language file more lightweight 41 * you can use own language definitions starting within this file 42 * 43 */ 44 45 // first check if neccessary db exists 46 if(isset($phpwcms['modules'][$module]['path']) && file_exists($phpwcms['modules'][$module]['path'].'setup/setup.php')) { 47 48 include_once($phpwcms['modules'][$module]['path'].'setup/setup.php'); 49 50 } elseif(isset($phpwcms['modules'][$module]['path'])) { 51 52 // module default stuff 53 54 // load special backend CSS 55 $BE['HEADER']['module_calendar.css'] = ' <link href="'.$phpwcms['modules'][$module]['dir'].'template/css/backend.calendar.css" rel="stylesheet" type="text/css">'; 56 57 58 // put translation back to have easier access to it - use it as relation 59 $BLM = & $BL['modules'][$module]; 60 define('MODULE_HREF', 'phpwcms.php?do=modules&module='.$module); 61 $glossary = array(); 62 63 64 if(isset($_GET['edit'])) { 65 66 // handle posts and read data 67 include_once($phpwcms['modules'][$module]['path'].'inc/processing.inc.php'); 68 69 // edit form 70 include_once($phpwcms['modules'][$module]['path'].'backend.editform.php'); 71 72 } elseif(isset($_GET['verify'])) { 73 74 // active/inactive 75 $sql = 'UPDATE '.DB_PREPEND.'phpwcms_calendar SET '; 76 $sql .= "calendar_status=".(intval($_GET['verify']) ? 1 : 0)." "; 77 $sql .= "WHERE calendar_id=".intval($_GET['editid']); 78 @_dbQuery($sql, 'UPDATE'); 79 headerRedirect(decode_entities(MODULE_HREF)); 80 81 } elseif(isset($_GET['delete'])) { 82 83 // delete 84 $sql = 'UPDATE '.DB_PREPEND.'phpwcms_calendar SET '; 85 $sql .= "calendar_status=9 WHERE calendar_id=".intval($_GET['delete']); 86 @_dbQuery($sql, 'UPDATE'); 87 headerRedirect(decode_entities(MODULE_HREF)); 88 89 } else { 90 91 // listing 92 include_once($phpwcms['modules'][$module]['path'].'backend.listing.php'); 93 94 } 95 96 } 97 98 99 100 101 102 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Dec 30 05:55:15 2009 | Cross-referenced by PHPXref 0.7 |