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; } }
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; }
function readSDB($filename) { return SDB::read($filename); }
public static function get($entry) { return SDB::getValue(SDB::read(REGISTRY, ";;"), $value); }