瀏覽代碼

more conforming to 79-character limit and using tabs

tags/v0.99.beta17
Ben Wiley Sittler bsittler 16 年之前
父節點
當前提交
c8b3044c43
共有 1 個檔案被更改,包括 7 行新增2 行删除
  1. +7
    -2
      caca-php/examples/www/render.php

+ 7
- 2
caca-php/examples/www/render.php 查看文件

@@ -39,7 +39,11 @@ if (isset($_GET["png"])) {
} }
else { else {


$render_php = isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] : 'render.php'; $render_php = isset($_SERVER['SCRIPT_NAME'])
?
$_SERVER['SCRIPT_NAME']
:
'render.php';


?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -56,7 +60,8 @@ $render_php = isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] : 'render
<?echo caca_export_string(pig(), "html3");?> <?echo caca_export_string(pig(), "html3");?>


<h1>Generated image:</h1> <h1>Generated image:</h1>
<a href="<?= htmlspecialchars($render_php) ?>?png=1"><img alt="[PNG]" src="<?= htmlspecialchars($render_php) ?>?png=1" border="0" /></a> <a href="<?= htmlspecialchars($render_php) ?>?png=1"><img alt="[PNG]"
src="<?= htmlspecialchars($render_php) ?>?png=1" border="0" /></a>
</body> </body>
</html> </html>




||||||
x
 
000:0
Loading…
取消
儲存