comparison index.php @ 69:50102ad65609

Use long tags for compatibility.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 17 Feb 2014 20:40:12 +0200
parents 58e1d6507e26
children 4123ddac74e6
comparison
equal deleted inserted replaced
68:8a1af7e3d1f1 69:50102ad65609
1 <? 1 <?php
2 // Settings 2 // Settings
3 $dataFile = "results.txt"; 3 $dataFile = "results.txt";
4 $cacheFile = "cache.php"; 4 $cacheFile = "cache.php";
5 $imagePath = "img/"; 5 $imagePath = "img/";
6 6
305 $progCopyright ="&copy; 2006-2011 Jeskko &amp; Ggr Pupunen"; 305 $progCopyright ="&copy; 2006-2011 Jeskko &amp; Ggr Pupunen";
306 306
307 ?> 307 ?>
308 <html> 308 <html>
309 <head> 309 <head>
310 <title><? echo $progName." - ".$dbModes[$mode][0]." view (".$dbNames[$dbModes[$mode][1]][$active].")"; ?></title> 310 <title><?php echo $progName." - ".$dbModes[$mode][0]." view (".$dbNames[$dbModes[$mode][1]][$active].")"; ?></title>
311 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 311 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
312 <link href="alch.css" title="compact" rel="stylesheet" type="text/css"> 312 <link href="alch.css" title="compact" rel="stylesheet" type="text/css">
313 </head> 313 </head>
314 <script type="text/javascript"> 314 <script type="text/javascript">
315 <!-- 315 <!--
327 } 327 }
328 --> 328 -->
329 </script> 329 </script>
330 <body> 330 <body>
331 <div id="info"> 331 <div id="info">
332 <? 332 <?php
333 333
334 334
335 // Check if we have a non-stale cache of the matrix data 335 // Check if we have a non-stale cache of the matrix data
336 if (!file_exists($cacheFile) || filemtime($dataFile) > filemtime($cacheFile)) 336 if (!file_exists($cacheFile) || filemtime($dataFile) > filemtime($cacheFile))
337 { 337 {
496 <tr><td class="nomark">-</td><th class="noframe">Marked to no potion by another no match.</th></tr> 496 <tr><td class="nomark">-</td><th class="noframe">Marked to no potion by another no match.</th></tr>
497 <tr><td class="noclose">-</td><th class="noframe">2 materials match, marked as no potion by another no match.</th></tr> 497 <tr><td class="noclose">-</td><th class="noframe">2 materials match, marked as no potion by another no match.</th></tr>
498 <tr><td class="close">?</td><th class="noframe">2 materials match</th></tr> 498 <tr><td class="close">?</td><th class="noframe">2 materials match</th></tr>
499 <tr><td class="accepted">!</td><th class="noframe">Accepted potion</th></tr> 499 <tr><td class="accepted">!</td><th class="noframe">Accepted potion</th></tr>
500 <tr><td class="pair">&nbsp</td><th class="noframe">Known to be possible potion by other attempts</th></tr> 500 <tr><td class="pair">&nbsp</td><th class="noframe">Known to be possible potion by other attempts</th></tr>
501 <tr><td colspan="2"><? echo $progName." ".$progCopyright; ?></td></tr> 501 <tr><td colspan="2"><?php echo $progName." ".$progCopyright; ?></td></tr>
502 </table> 502 </table>
503 <? 503 <?php
504 } 504 }
505 505
506 $tock = array_sum(explode(" ",microtime())); 506 $tock = array_sum(explode(" ",microtime()));
507 echo "Page took " . round(($tock - $tick),2) . " seconds to process.<br />"; 507 echo "Page took " . round(($tock - $tick),2) . " seconds to process.<br />";
508 ?> 508 ?>