function W3CreateUI($uid) { global $w3UI; global $w3UICreatorMap; if (array_key_exists(w3PropType, $w3UI[$uid])) { if (array_key_exists($w3UI[$uid][w3PropType], $w3UICreatorMap)) { return $w3UICreatorMap[$w3UI[$uid][w3PropType]]($uid); } else { W3LogError("UI Type is not defined and cannot be created: " . $w3UI[$uid][w3PropType]); } } else { W3LogError("No UI type defined so cannot be created for uid: " . $uid); } return ""; }
<?php # # This is the main entry for all request # So any global variable, function or any include could be used here # require "W3Helper.php"; if (W3IsEmptyRequest()) { require "W3Main.html"; } else { if (!W3HandleRequest()) { $msg = "NOT handled request: " . $_SERVER["REQUEST_URI"]; W3LogError($msg); echo $msg; } }