function CreateControls($xmlfile)
 {
     LumineLog::setLevel(3);
     LumineLog::setOutput('browser');
     $this->conf = new LumineConfiguration($xmlfile);
 }
 /></td>
		</tr>
		<tr>
			<td align="right">&nbsp;</td>
			<td><input name="acao" type="submit" id="acao" value="Iniciar" />
				<input name="create-classes" type="hidden" id="create-classes" value="1" />
				<input name="create-maps" type="hidden" id="create-maps" value="1" />
				<input name="escape" type="hidden" id="escape" value="1" />
				<input name="empty-as-null" type="hidden" id="empty-as-null" value="1" /></td>
		</tr>
	</table>
</form>
	<?php 
if (@$_POST['acao'] == 'Iniciar') {
    echo '<div class="result">';
    LumineLog::setLevel(4);
    LumineLog::setOutput();
    if ($_POST['use-cache'] != '') {
        $_POST['use-cache'] = $_POST['class-path'] . '/' . $_POST['use-cache'];
    } else {
        unset($_POST['use-cache']);
    }
    $obj = new LumineReverse($_POST);
    $obj->doReverse();
    echo '</div>';
}
?>

</body>
</html>
Exemplo n.º 3
0
 /**
  * Sets the log level
  * 
  * @param number $level The level o log
  * @param mixed $output Where to put the output
  * @author Hugo Ferreira da Silva
  * @access public
  */
 function setLevel($level, $output = false)
 {
     $GLOBALS['__LumineLog']['log-level'] = $level;
     if ($output !== false) {
         LumineLog::setOutput($output);
     }
 }