X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Ftransports.phh;fp=web%2FObj%2Ftransports.phh;h=2d9714ef8f386631e28d1dd272a518c4e9a2ddf9;hb=d841ff52fc567de174bad9323d6bce06825f3762;hp=e0b11eedf2398e30bc6184a26755690e1427ff35;hpb=c41ecb2b361ebb9aea6e457ec79258119900ba86;p=brisk.git diff --git a/web/Obj/transports.phh b/web/Obj/transports.phh index e0b11ee..2d9714e 100644 --- a/web/Obj/transports.phh +++ b/web/Obj/transports.phh @@ -90,6 +90,7 @@ class Transport_xhr { static function fini($init_string, $base, $blockerr) { + return (sprintf('@BEGIN@ %s window.onbeforeunload = null; window.onunload = null; document.location.assign("%sindex.php"); @END@', ($blockerr ? 'xstm.stop(); ' : ''), $base)); return (""); } @@ -187,5 +188,14 @@ class Transport { return new Transport_iframe(); } } + static function gettype($transp) + { + if ($transp == 'xhr' || $transp == 'htmlfile') { + return "Transport_".$transp; + } + else { + return 'Transport_iframe'; + } + } } ?> \ No newline at end of file