- Timestamp:
- Sep 30, 2006, 11:28:57 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/toilet.html
r1163 r1164 48 48 $submit = $_POST['submit']; 49 49 $font = $_POST['font']; 50 $fontlist = array('emboss', 'emboss2', 'smbraille'); ?> 50 $fontlist = array('emboss', 'emboss2', 'smbraille'); 51 $path = "/tmp/trunk-toilet"; ?> 51 52 52 <form method=" POST" action="toilet.html">53 <form method="post" action="toilet.html"> 53 54 <p> 54 55 <select name="font"> … … 66 67 <blockquote> 67 68 <p><pre> 68 <? exec( '/tmp/trunk-toilet/src/toilet -d /tmp/trunk-toilet/fonts -f "'.$fontlist[$font].'" "'.escapeshellcmd($text).'" | sed "s/\x1b[^m]*m//g"', &$result);69 <? exec($path.'/src/toilet -d '.$path.'/fonts -f "'.$fontlist[$font].'" "'.escapeshellcmd($text).'" | sed "s/\x1b[^m]*m//g"', &$result); 69 70 foreach($result as $line) 70 echo "<br />".htmlspecialchars($line) ;71 echo "<br />".htmlspecialchars($line)."\n"; 71 72 ?> 72 73 </pre></p>
Note: See TracChangeset
for help on using the changeset viewer.