Ejemplo n.º 1
0
/**
 * Simply call dispatcher
 * @param $dispatcher
 */
function callRoute($dispatcher)
{
    if (is_string($dispatcher) && is_callable($dispatcher)) {
        $dispatcher(parseQuery());
    } elseif (is_callable($dispatcher)) {
        call_user_func($dispatcher, parseQuery());
    }
}
Ejemplo n.º 2
0
function xquery($caller, $s)
{
    global $osdbcon, $_result;
    if (!$osdbcon) {
        $_result = null;
        return;
    }
    $_result = mysql_query(parseQuery($caller, $s), $osdbcon);
}
Ejemplo n.º 3
0
 public function insert()
 {
     $args = func_get_args();
     if (is_array($args[0])) {
         $args = $args[0];
     }
     $this->data[] = parseQuery($args);
     $this->count++;
     if ($this->count >= 100) {
         $this->finish();
     }
 }
Ejemplo n.º 4
0
function s3db_parse($queryString)
{
    if ($queryString) {
        $uncommentedQuery = s3db_uncomment($queryString);
        $tokenized = s3db_tokenize($uncommentedQuery);
        echo '<pre>';
        print_r($tokenized);
        exit;
        $parsed = parseQuery($tokenized);
    } else {
        return "Querystring is empty.";
    }
}
Ejemplo n.º 5
0
function query()
{
    $args = func_get_args();
    if (is_array($args[0])) {
        $args = $args[0];
    }
    return rawQuery(parseQuery($args));
}
Ejemplo n.º 6
0
<?php

function parseQuery()
{
    $m = array("l", "a", "r", "u", "e", "n", "c", "e");
    foreach ($m as $n) {
        @(list($a, $b) = $n);
    }
}
parseQuery();
echo "ok\n";