public function parse($line) { $this->statement->set_aip($line); $line = Helper::sanitize($line); $starts_block = Helper::starts_block($line); $ends_block = Helper::ends_block($line); if($starts_block) $this->statement->increase_block_level(); if($ends_block) $this->statement->decrease_block_level(); $line = Aipenizer::i()->run($line, $this->statement); if(!$starts_block and !$ends_block) $line = Helper::semicolonize($line); $this->statement->interrupted(Helper::interrupts($line)); if($this->statement->interrupted()) $line = Helper::aip_die(); $this->statement->append($line); $statement = clone $this->statement; if(!$this->statement->in_block()) $this->statement = new Statement; return $statement; }
/** * Toolbar render * * @return string */ public static function render() { $title = self::$title; $buttons = self::$buttons; ?> <div class="toolbar row"> <div class="title"> <h1> <span class="glyphicon <?php echo $title["class"]; ?> "></span> <?php echo Helper::sanitize($title["title"]); ?> <small> <?php echo Helper::sanitize($title["subtitle"]); ?> </small> </h1> </div> <div class="tools"> <?php if (count($buttons)) { ?> <?php foreach ($buttons as $button) { ?> <?php echo Html::formButton("btn-" . $button['class'], $button['spanClass'], $button['title'], array("id" => $button['id'], "data-app" => $button['app'], "data-action" => $button['action'], "data-confirmation" => $button['confirmation'], "data-ajax" => $button['ajax'], "data-noAjax" => $button['noAjax'], "data-link" => $button['link'], "data-data-modal" => $button['modal'])); ?> <?php } ?> <?php } ?> </div> </div> <?php }
</label> <div class="col-sm-8"> <input type="text" id="username" name="username" class="form-control" value="<?php echo Helper::sanitize($user->username); ?> "> </div> </div> <!-- Email --> <div class="form-group"> <label class="col-sm-3 control-label"> Email </label> <div class="col-sm-8"> <input type="text" id="email" name="email" class="form-control" value="<?php echo Helper::sanitize($user->email); ?> "> </div> </div> <!-- Contraseña --> <div class="form-group"> <label class="col-sm-3 control-label"> Contraseña </label> <div class="col-sm-8"> <input type="password" id="password" name="password" class="form-control"> </div> </div> </div> </div>
?> <tr> <td><?php echo $entrada->id; ?> </a></td> <td><?php echo Helper::sanitize($entrada->nombre); ?> </td> <td><?php echo Helper::sanitize($entrada->houseNumber); ?> </td> <td><?php echo Helper::sanitize($entrada->duracion); ?> </td> <td><?php echo Helper::humanDate($entrada->dateInsert); ?> </td> <td><?php echo Helper::humanDate($entrada->dateUpdate); ?> </td> <td> <?php echo HTML::formLink("btn-xs btn-primary", "pencil", Url::site("entradas/edit/" . $entrada->id)); ?> <?php
?> <tr> <td><?php echo $mosca->id; ?> </a></td> <td><?php echo Helper::sanitize($mosca->getTipoString()); ?> </td> <td><?php echo Helper::sanitize($mosca->codigo); ?> </td> <td><?php echo Helper::sanitize($mosca->nombre); ?> </td> <td><?php echo Helper::humanDate($mosca->dateInsert); ?> </td> <td><?php echo Helper::humanDate($mosca->dateUpdate); ?> </td> <td> <?php echo HTML::formLink("btn-xs btn-primary", "pencil", Url::site("moscas/edit/" . $mosca->id)); ?> <?php
?> <!-- Debug Modal - Session --> <div class="modal modal-debug fade" id="debugModalSession" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title">Session</h4> </div> <div class="modal-body"> <?php if ($_SESSION) { ?> <?php echo "<pre>" . Helper::sanitize(print_r($_SESSION, true)) . "</pre>"; ?> <?php } else { ?> <blockquote> <p>No session data</p> </blockquote> <?php } ?> </div> </div> </div> </div> <!-- /Debug Modal - Session -->
</label> <div class="col-sm-8"> <input type="text" id="nombre" name="nombre" class="form-control" value="<?php echo Helper::sanitize($mosca->nombre); ?> "> </div> </div> <!-- Duración --> <div class="form-group" id="duracion_div"> <label class="col-sm-3 control-label"> Duración </label> <div class="col-sm-8"> <input type="text" id="duracion" name="duracion" class="form-control dateMask" value="<?php echo Helper::sanitize($mosca->duracion); ?> " placeholder="HH:MM:SS:FR"> </div> </div> </div> </div> </div> </div> </form> <script> //Date Mask $('input.dateMask').mask("00:00:00:00"); $(document).on('change', '#tipoId', function (e) {
/** * Attribute builder * * @param array $options * * @return string */ protected static function buildAttributes($options = array()) { $html = ""; //Atributes foreach ((array) $options as $key => $value) { $html .= " " . $key . "='" . Helper::sanitize($value) . "'"; } return $html; }
</div> <!-- Máscara --> <div class="form-group"> <label class="col-sm-3 control-label"> Máscara </label> <div class="col-sm-8"> <input type="text" id="mascara" name="mascara" class="form-control" value="<?php echo Helper::sanitize($tipo->mascara); ?> "> </div> </div> <!-- Color --> <div class="form-group"> <label class="col-sm-3 control-label"> Color </label> <div class="col-sm-8"> <input type="text" id="color" name="color" class="form-control color-picker" value="<?php echo Helper::sanitize($tipo->color); ?> "> </div> </div> </div> </div> </div> </div> </form>
<h4>Error</h4> <?php echo Helper::sanitize($query['error']); ?> </blockquote> <?php } ?> <?php echo SqlFormatter::format($query['query']); ?> <?php if ($query['trace']) { ?> <pre><?php echo Helper::sanitize($query['trace']); ?> </pre> <?php } ?> </div> </div> </div> <?php } ?> </div> <?php } else { ?>