Revision 1470
Added by Dietmar over 13 years ago
intro.php | ||
---|---|---|
20 | 20 |
require('../../config.php'); |
21 | 21 |
require_once(WB_PATH.'/framework/class.admin.php'); |
22 | 22 |
$admin = new admin('Pages', 'pages_intro'); |
23 |
|
|
24 |
// Get page content |
|
25 |
$filename = WB_PATH.PAGES_DIRECTORY.'/intro'.PAGE_EXTENSION; |
|
26 |
if(file_exists($filename)) { |
|
27 |
$handle = fopen($filename, "r"); |
|
28 |
$content = fread($handle, filesize($filename)); |
|
29 |
fclose($handle); |
|
30 |
} else { |
|
31 |
$content = ''; |
|
23 |
$content = ''; |
|
24 |
if(file_exists($filename) && filesize($filename) > 0) { |
|
25 |
$content = file_get_contents( $filename ) ; |
|
32 | 26 |
} |
33 | 27 |
|
28 |
|
|
34 | 29 |
if(!isset($_GET['wysiwyg']) OR $_GET['wysiwyg'] != 'no') { |
35 | 30 |
if (!defined('WYSIWYG_EDITOR') OR WYSIWYG_EDITOR=="none" OR !file_exists(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php')) { |
36 | 31 |
function show_wysiwyg_editor($name,$id,$content,$width,$height) { |
... | ... | |
45 | 40 |
|
46 | 41 |
|
47 | 42 |
<form action="intro2.php" method="post"> |
48 |
|
|
43 |
<?php print $admin->getFTAN(); ?> |
|
49 | 44 |
<input type="hidden" name="page_id" value="{PAGE_ID}" /> |
50 | 45 |
|
51 | 46 |
<?php |
Also available in: Unified diff
languages Typo fix (Tks to pcwacht)
update intro, fixed saving
fixed install/save.php (Tks to pcwacht)