Revision 434
Added by doc almost 18 years ago
class.frontend.php | ||
---|---|---|
68 | 68 |
// Get intro page content |
69 | 69 |
$filename = WB_PATH.PAGES_DIRECTORY.'/intro.php'; |
70 | 70 |
if(file_exists($filename)) { |
71 |
$handle = fopen($filename, "r"); |
|
72 |
$content = fread($handle, filesize($filename)); |
|
73 |
fclose($handle); |
|
71 |
$handle = @fopen($filename, "r");
|
|
72 |
$content = @fread($handle, filesize($filename));
|
|
73 |
@fclose($handle);
|
|
74 | 74 |
$this->preprocess($content); |
75 | 75 |
header("Location: pages/intro.php"); // send intro.php as header to allow parsing of php statements |
76 | 76 |
echo ($content); |
Also available in: Unified diff
Suppressed PHP warnings and errors when reading empty intro.php