78 global $auto_form_defaults;
79 $auto_form_defaults[
"default_layout"] =
"table";
91 include
$page->server_path;
95 echo $e->getMessage();
121 preg_match_all(
"/\{var:(.*?)\}/", $template, $vars, PREG_SET_ORDER);
123 foreach($vars as $var)
127 $template = str_replace($expr, $
$name, $template);
130 $charset = strtolower(ini_get(
"default_charset"));
131 $template = str_replace(
"{default_charset}",
$charset, $template);
133 preg_match_all(
"/\{config:(.*?)\}/", $template, $vars, PREG_SET_ORDER);
135 foreach($vars as $var)
139 $template = str_replace($expr,
$config[
$name], $template);
144 $help =
"<a href='#' onclick='popup(\"/action/admin/help?src={$component->name}&page={$page->identifier}\", \"help\", 940, 500, \"toolbar=0,location=0,scrollbars=1,resizable=1\"); return false;'> Help </a>";
146 $template = str_replace(
"{help}",
$help, $template);
148 if (
$config[
'prettyURLs'] ===
false)
150 $template = preg_replace(
"/(href|src|action)=(['\"])\\/?([\\w\\d_]+?)\\?/i",
"$1=$2/page.php?identifier=$3&", $template);
151 $template = preg_replace(
"/(href|src|action)=(['\"])\\/?([\\w\\d_]+?)[\"']/i",
"$1=$2/page.php?identifier=$3$2", $template);
152 $template = preg_replace(
"/go\\(([\"'])\\/?([\\w\\d_]+?)\\?/",
"go($1/page.php?identifier=$2&", $template);
153 $template = preg_replace(
"/go\\(([\"'])\\/?([\\w\\d_]+?)[\"']/",
"go($1/page.php?identifier=$2$1", $template);
formatMenu($admin_menu, $icons)
static fireEvent($event, $parameter=null, $mustBeConsumed=false)
Fire an event to all subscribers as detailed in their manifests.
static getStyles()
Returns the HTML link tags for CSS files specified by the registered components in their manifest fil...
static resolveResource($resource, $component="")
Resolves the path to a web resource based on the PHP include path.
static getScripts()
Returns the HTML scripts tags for Javascript files specified by the registered components in their ma...
static getAdminIcons()
Builds the admin icon map.
static getAdminMenu()
Builds the administration menu, combining menu items supplied by the registered components in their m...
$method
Pull out a simple reference to the request method.
if(array_key_exists("HTTP_IF_MODIFIED_SINCE", $_SERVER)) $content