tag so that To use this module, simply place this file in the cookbook/ directory and add the following line into config.php: include_once('cookbook/includeSite.php'); */ $DefaultWidth = '600'; // pixels or % $DefaultHeight = '400'; // pixels or % $DefaultAlign = 'default'; // default, left, right, center $DefaultScroll = 'default'; // default, yes, no $DefaultBorder = 'default'; // pixels function includeSite($str) { global $DefaultWidth, $DefaultHeight, $DefaultAlign; global $DefaultScroll, $DefaultBorder; // parse the [[Double Bracket]] syntax $pieces = explode(" ", $str); // seperate the pieces in to $key and $value pairs foreach($pieces as $piece) { list($key,$value) = explode("=", $piece); $vars["$key"] = $value; } // initialize the "; $Output .= "\n\n\n\n"; return $Output; } Markup('includeSite', 'directives', "/\\(:includeSite\\s+(http:[^$UrlExcludeChars]*?)\\s*:\\)/e", "includeSite('$1')"); ?>