start('packetRun'); $sPacket = false; $sPage = false; $handler = false; $packetTable = Array(CMSG_INIT_PAGE => "CmsgInitPage"); if(@$packetTable[$sRequest->getString('opcode')]) { $handler = $packetTable[$sRequest->getString('opcode')]; }else { $handler = $packetTable[CMSG_INIT_PAGE]; } if($handler) { $sPacket = new $handler(); }else { die("INVALID_OPCODE"); } $sTimer->stop('packetRun'); $sTimer->start('templateRun'); $sTemplate->run(); $sTimer->stop('templateRun'); $sTimer->start('serialization'); $sSession->serialize(); $sTimer->stop('serialization'); ?>