Move __halt_compiler(); to by dynamically written by pack.php

This commit is contained in:
Starbeamrainbowlabs 2019-03-02 16:47:22 +00:00
parent f63553fb92
commit 55989f11b6
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
2 changed files with 4 additions and 2 deletions

View File

@ -54,5 +54,3 @@ if(isset($actions->$action_name)) {
else {
exit(page_renderer::render_main("Error - $settings->sitename", "<p>No action called " . strtolower($_GET["action"]) ." has been registered. Perhaps you are missing a module?</p>"));
}
__halt_compiler();

View File

@ -126,7 +126,11 @@ else {
$output_stream = fopen("php://output", "w");
}
// Write the built code
fwrite($output_stream, $result);
// Write the delimiter
fwrite($output_stream, "__halt_compiler();");
// Write the extra data
stream_copy_to_stream($archive_stream, $output_stream);
?>