Browse Source

* Add an input box in sample web page figlet.php

tags/v0.99.beta17
Nicolas Vion nico 16 years ago
parent
commit
c93f953445
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      caca-php/examples/www/figlet.php

+ 2
- 1
caca-php/examples/www/figlet.php View File

@@ -9,6 +9,7 @@ header('Content-Type: text/html; charset=UTF-8');
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
<form method="get" action=""><input name="str"/><input type="submit" value="OK"/></form>
<?php
/*
* figlet.php sample program for libcaca php binding
@@ -59,7 +60,7 @@ $dir = opendir($path);
while (($it = readdir($dir)) != false) {
if (is_file($path.$it) and ereg("\.[tf]lf$", $it)) {
echo "<b>font : $it</b>\n";
show_figlet("Libcaca", $path.$it);
show_figlet(isset($_GET["str"]) ? $_GET["str"] : "Libcaca", $path.$it);
}
}
?>


Loading…
Cancel
Save