Kaynağa Gözat

more conforming to 79-character limit and using tabs

tags/v0.99.beta17
Ben Wiley Sittler bsittler 17 yıl önce
ebeveyn
işleme
c8b3044c43
1 değiştirilmiş dosya ile 7 ekleme ve 2 silme
  1. +7
    -2
      caca-php/examples/www/render.php

+ 7
- 2
caca-php/examples/www/render.php Dosyayı Görüntüle

@@ -39,7 +39,11 @@ if (isset($_GET["png"])) {
}
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"
"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");?>

<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>
</html>



Yükleniyor…
İptal
Kaydet