Revision 558
Added by Matthias almost 18 years ago
| intro2.php | ||
|---|---|---|
| 25 | 25 |
|
| 26 | 26 |
// Get posted content |
| 27 | 27 |
if(!isset($_POST['content'])) {
|
| 28 |
header("Location: intro.php");
|
|
| 28 |
header("Location: intro".PAGE_EXTENSION."");
|
|
| 29 | 29 |
exit(0); |
| 30 | 30 |
} else {
|
| 31 | 31 |
$content = $_POST['content']; |
| ... | ... | |
| 42 | 42 |
require_once(WB_PATH.'/framework/functions.php'); |
| 43 | 43 |
|
| 44 | 44 |
// Write new content |
| 45 |
$filename = WB_PATH.PAGES_DIRECTORY.'/intro.php';
|
|
| 45 |
$filename = WB_PATH.PAGES_DIRECTORY.'/intro'.PAGE_EXTENSION;
|
|
| 46 | 46 |
$handle = fopen($filename, 'w'); |
| 47 | 47 |
if(is_writable($filename)) {
|
| 48 | 48 |
if(fwrite($handle, $content)) {
|
Also available in: Unified diff
Fixed hardcoded /pages issue in intro page feature