Revision: 10375
http://sourceforge.net/p/phpwiki/code/10375
Author: vargenau
Date: 2021-07-28 13:30:02 +0000 (Wed, 28 Jul 2021)
Log Message:
-----------
Add DOCTYPE, add <title>, add language in <html>
Modified Paths:
--------------
trunk/ImageTile.php
Modified: trunk/ImageTile.php
===================================================================
--- trunk/ImageTile.php 2021-07-28 13:29:15 UTC (rev 10374)
+++ trunk/ImageTile.php 2021-07-28 13:30:02 UTC (rev 10375)
@@ -47,7 +47,15 @@
@$fp = fopen($file, 'w+');
if (!$fp) {
header("Content-type: text/html");
- echo "<html><head></head><body>ERROR : unable to open $file in write mode</body></html>";
+ echo "<!DOCTYPE html>\n";
+ echo "<html xml:lang=\"en\" lang=\"en\">\n";
+ echo "<head>\n";
+ echo "<title>ERROR: unable to open $file in write mode</title>\n";
+ echo "</head>\n";
+ echo "<body>\n";
+ echo "<p>ERROR: unable to open $file in write mode</p>\n";
+ echo "</body>\n";
+ echo "</html>";
}
fwrite($fp, $source);
$remove = 1;
@@ -58,7 +66,15 @@
if (!$fp) {
header("Content-type: text/html");
- echo "<html><head></head><body>Not an image</body></html>";
+ echo "<!DOCTYPE html>\n";
+ echo "<html xml:lang=\"en\" lang=\"en\">\n";
+ echo "<head>\n";
+ echo "<title>Not an image</title>\n";
+ echo "</head>\n";
+ echo "<body>\n";
+ echo "<p>Not an image</p>\n";
+ echo "</body>\n";
+ echo "</html>";
exit();
} else {
@@ -126,7 +142,15 @@
default:
//we are not stupid...
header("Content-type: text/html");
- echo "<html><head></head><body>Not an image</body></html>";
+ echo "<!DOCTYPE html>\n";
+ echo "<html xml:lang=\"en\" lang=\"en\">\n";
+ echo "<head>\n";
+ echo "<title>Not an image</title>\n";
+ echo "</head>\n";
+ echo "<body>\n";
+ echo "<p>Not an image</p>\n";
+ echo "</body>\n";
+ echo "</html>";
exit();
break;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|