Пример #1
0
function multiSite2_showSite()
{
    global $TEMPSDB;
    global $_GET;
    $site = multiSite2_getSite();
    $path = SDB::getValue(SDB::read($TEMPSDB), $site);
    $plugin = $_GET["plugin"];
    if (file_exists("plugins/" . $plugin . "/" . $path)) {
        return "plugins/" . $plugin . "/" . $path;
    } else {
        echo "Unknown site";
        return FALSE;
    }
}
Пример #2
0
function moreColumns_getColumns($tableName, $id)
{
    if (!file_exists("sdbs/{$tableName}/")) {
        return false;
    }
    $columns = scandir("sdbs/{$tableName}/");
    $return = array();
    foreach ($columns as $entry) {
        if ($entry != "." && $entry != ".." && $entry != ".DS_Store" && $entry != ".htaccess" && $entry != ".htdocs") {
            $value = SDB::getValue(SDB::read("{$tableName}/{$entry}"), $id);
            $columnName = str_replace(".sdb", "", $entry);
            $return[$columnName] = $value;
        }
    }
    return $return;
}
Пример #3
0
function readSDB($filename)
{
    return SDB::read($filename);
}
Пример #4
0
 public static function get($entry)
 {
     return SDB::getValue(SDB::read(REGISTRY, ";;"), $value);
 }