Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP: fix some tag soup issues #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions rules/generate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,10 @@ def write_tex(file, fin)

PHP_HEADER = <<EOH
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>


<meta http-equiv="Content-Type" content="text/html;charset=utf-8"><title>Capture the Flag with Stuff</title>
<?php
$TEMPLATE_HEADERS=<<<HEAD
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">

<link rel="stylesheet" type="text/css" href="basic.css">
<style type="text/css">
Expand Down Expand Up @@ -339,9 +339,9 @@ def write_tex(file, fin)
{
color: red;
}
</style></head><body>
</style>
HEAD;

<?php
require("../web_kgb_2000/includes/lib.php");
require("../web_kgb_2000/includes/template.php");
require("../web_kgb_2000/includes/template_diet.php");
Expand Down Expand Up @@ -387,9 +387,6 @@ def write_tex(file, fin)
template_pagebottom();

?>


</body></html>
EOH

# Only used for testing; the PHP header is normally used.
Expand Down