Revision 583
Added by doc almost 17 years ago
css.functions.php | ||
---|---|---|
2 | 2 |
|
3 | 3 |
// $Id$ |
4 | 4 |
|
5 |
###################################################################################################################### |
|
6 |
# |
|
7 |
# PURPOSE OF THIS FILE: |
|
8 |
# This file contains functions to edit the module CSS files (frontend.css and backend.css) |
|
9 |
# |
|
10 |
# INVOKED BY: |
|
11 |
# This file is invoked when a user clicks on the edit CSS button in the modify.php file |
|
12 |
# |
|
13 |
###################################################################################################################### |
|
5 |
/* |
|
14 | 6 |
|
15 |
/** |
|
16 |
Module developed for the Open Source Content Management System Website Baker (http://websitebaker.org) |
|
17 |
Copyright (C) year, Authors name |
|
18 |
Contact me: author(at)domain.xxx, http://authorwebsite.xxx |
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2008, Ryan Djurovich |
|
19 | 9 |
|
20 |
This module is free software. You can redistribute it and/or modify it |
|
21 |
under the terms of the GNU General Public License - version 2 or later, |
|
22 |
as published by the Free Software Foundation: http://www.gnu.org/licenses/gpl.html. |
|
10 |
Website Baker is free software; you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation; either version 2 of the License, or |
|
13 |
(at your option) any later version. |
|
23 | 14 |
|
24 |
This module is distributed in the hope that it will be useful, |
|
25 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
26 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
27 |
GNU General Public License for more details. |
|
28 |
**/ |
|
15 |
Website Baker is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
29 | 19 |
|
30 |
// prevent this file from being accesses directly |
|
31 |
if(defined('WB_PATH') == false) { |
|
32 |
exit("Cannot access this file directly"); |
|
33 |
} |
|
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Website Baker; if not, write to the Free Software |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
34 | 23 |
|
35 |
/** |
|
36 |
DEFINE LANGUAGE DEPENDING OUTPUTS FOR THE EDIT CSS PART |
|
37 | 24 |
*/ |
25 |
|
|
26 |
// DEFINE LANGUAGE DEPENDING OUTPUTS FOR THE EDIT CSS PART |
|
38 | 27 |
$lang_dir = WB_PATH .'/modules/' .basename(dirname(__FILE__)) .'/languages/'; |
39 | 28 |
if(file_exists($lang_dir .LANGUAGE .'.php')) { |
40 | 29 |
// try to include custom language file if exists |
Also available in: Unified diff
Fixed bug with the edit module CSS file implementation (IE7, Opera)