Changeset 1164 for www


Ignore:
Timestamp:
Sep 30, 2006, 11:28:57 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Minor tuning of the live test.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • www/toilet.html

    r1163 r1164  
    4848   $submit = $_POST['submit'];
    4949   $font = $_POST['font'];
    50    $fontlist = array('emboss', 'emboss2', 'smbraille'); ?>
     50   $fontlist = array('emboss', 'emboss2', 'smbraille');
     51   $path = "/tmp/trunk-toilet"; ?>
    5152
    52 <form method="POST" action="toilet.html">
     53<form method="post" action="toilet.html">
    5354  <p>
    5455    <select name="font">
     
    6667  <blockquote>
    6768    <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);
    6970         foreach($result as $line)
    70              echo "<br />".htmlspecialchars($line);
     71             echo "<br />".htmlspecialchars($line)."\n";
    7172      ?>
    7273    </pre></p>
Note: See TracChangeset for help on using the changeset viewer.