// And continue with next entry
continue;
- } else {
+ } elseif (substr($cmd, 0 , 3) == 'ext') {
+ // Get the extension command
+ $extCmd = explode(',', $cmd);
+ $extCmd = $extCmd[1];
+
// Construct call-back function name
- $functionName = 'getExtension' . ucfirst(strtolower($cmd));
+ $functionName = 'getExtension' . ucfirst(strtolower($extCmd));
// Construct call of the function
$replacer = "\" . call_user_func_array('" . $functionName . "', array('" . $matches[3][$key] . "', true)) . \"";
+ } else {
+ // Unknown command detected
+ debug_report_bug('Unknown command ' . $cmd . ' detected.');
}
// Replace it and insert parameter for GET request
-<script src="{%url=js.php?js=cookies_disabled%}{%version=sql_patches%}" type="text/javascript"></script>
+<script src="{%url=js.php?js=cookies_disabled%}{%ext,version=sql_patches%}" type="text/javascript"></script>
<form accept-charset="utf-8" id="form" action="{%url=modules.php?module=order&order=$content%}" method="post" target="_parent" onsubmit="return Submit()">
{--MEMBER_ORDER_PLEASE_WAIT_1--}<span id="counter" style="font-weight:bold">10</span>{--MEMBER_ORDER_PLEASE_WAIT_2--}<br />
<input type="submit" class="member_submit" id="ok" name="ok" value="{--MEMBER_DO_ORDER--}" />
-<script type="text/javascript" src="{%url=js.php?js=order_send%}{%version=order%}"></script>
+<script type="text/javascript" src="{%url=js.php?js=order_send%}{%ext,version=order%}"></script>
</form>
</div>
</div>
-<script src="{%url=js.php?js=surfbar_member_book%}{%version=surfbar%}" type="text/javascript"></script>
+<script src="{%url=js.php?js=surfbar_member_book%}{%ext,version=surfbar%}" type="text/javascript"></script>
</form>
<span align="center" class="member_note" style="padding:5px">
</div>
</div>
-<script src="{%url=js.php?js=surfbar_member_book%}{%version=surfbar%}" type="text/javascript"></script>
+<script src="{%url=js.php?js=surfbar_member_book%}{%ext,version=surfbar%}" type="text/javascript"></script>
</form>
</div>
</div>
-<script src="{%url=js.php?js=surfbar_member_edit%}{%version=surfbar%}&views_max=$content[views_max]&limited=$content[limited]"
+<script src="{%url=js.php?js=surfbar_member_edit%}{%ext,version=surfbar%}&views_max=$content[views_max]&limited=$content[limited]"
type="text/javascript"></script>
</form>
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="language" content="de" />
-<script src="{%url=js.php?js=jquery%}{%version=sql_patches%}" type="text/javascript"></script>
+<script src="{%url=js.php?js=jquery%}{%ext,version=sql_patches%}" type="text/javascript"></script>
</div>
</div>
-<script src="{%url=js.php?js=surfbar_stopped?}{%version=surfbar%}&restart={?surfbar_restart_?me?}&autostart=$content[autostart]"
+<script src="{%url=js.php?js=surfbar_stopped?}{%ext,version=surfbar%}&restart={?surfbar_restart_?me?}&autostart=$content[autostart]"
type="text/javascript"></script>
<script type="text/javascript">/* <![CDATA[ */
au_ip='$content[REMOTE_ADDR]';
/* ]]> */</script>
-<script src="{%url=js.php?js=uberwach%}{%version=uberwach%}" type="text/javascript"></script>
+<script src="{%url=js.php?js=uberwach%}{%ext,version=uberwach%}" type="text/javascript"></script>
<noscript><a href="http://www.uberwach.de/" rel="external" target="_blank" title="Aktion: Überwach!">?mg src="http://www.uberwach.de/wanze.gif" alt="Aktion UBERWACH!" width="80" height="15" border="0" /></a></noscript>
<!-- ende uberwach code -->