Exemplo n.º 1
0
function min_version($min_version)
{
    // checks whether the API version in use is either the same or greater than $min_version
    $api_version = txtdbapi_version();
    $api_chunks = split(".", $api_version);
    $min_chunks = split(".", $min_version);
    if ($api_chunks[0] >= $min_chunks[0] and $api_chunks[1] >= $min_chunks[1] and $api_chunks[2] >= $min_chunks[2]) {
        return true;
    }
    return false;
}
Exemplo n.º 2
0
<?php

include "../txt-db-api.php";
include "protect.php";
echo "<font face='Verdana, Arial'>";
// magic quotes
echo "<b>magic_quotes_gpc:</b> " . get_magic_quotes_gpc() . "<br>";
// version
echo "<b>text-db-api version:</b> " . txtdbapi_version() . "<br>";
// table file
if (isset($_GET['table_file']) && $_GET['table_file']) {
    $table_file = $_GET['table_file'];
    $_SESSION['table_file'] = $table_file;
    $_SESSION['mode'] = 'edit_table';
} else {
    if (isset($_SESSION['table_file'])) {
        $table_file = $_SESSION['table_file'];
    } else {
        $table_file = "<none>";
    }
}
echo "<b>table_file:</b> " . $table_file . "<br>";
// mode
if (isset($_POST['mode'])) {
    $mode = $_POST['mode'];
    $_SESSION['mode'] = $mode;
} else {
    if (!isset($_SESSION['mode'])) {
        $mode = 'choose_table';
        $_SESSION['mode'] = $mode;
    } else {
Exemplo n.º 3
0
<?php

$api_vers = txtdbapi_version();
eval("dooutput(\"" . gettemplate("welcome") . "\");");
Exemplo n.º 4
0
 public function server_version()
 {
     return txtdbapi_version();
 }