function get_se_wizard($div, $width, $height, $entryId) { $params = "''"; $url = "''"; $platformUser = "******"" . KalturaHelpers::getSessionUser()->userId . "\""; $kalturaSecret = KalturaHelpers::getPlatformKey("secret", ""); if ($kalturaSecret != null && strlen($kalturaSecret) > 0) { try { $kClient = new KalturaClient(KalturaHelpers::getServiceConfiguration()); $kalturaUser = KalturaHelpers::getPlatformKey("user", ""); $ksId = $kClient->session->start($kalturaSecret, $kalturaUser, KalturaSessionType::USER, null, 86400, "*"); $kClient->setKs($ksId); $url = KalturaHelpers::getSimpleEditorUrl(KalturaHelpers::getPlatformKey("editor", null)); $params = KalturaHelpers::flashVarsToString(KalturaHelpers::getSimpleEditorFlashVars($ksId, $entryId, "entry", "")); } catch (Exception $exp) { $flash_embed = $exp->getMessage(); } $flash_embed = ' <div id="' . $div . '" style="width:' . $width . 'px;height:' . $height . ';"> <script type="text/javascript"> var kso = new SWFObject("' . $url . '", "KalturaSW", "' . $width . '", "' . $height . '", "9", "#ffffff"); kso.addParam("flashVars", "' . $params . '"); kso.addParam("allowScriptAccess", "always"); kso.addParam("allowFullScreen", "TRUE"); kso.addParam("allowNetworking", "all"); if(kso.installedVer.major >= 9) { kso.write("' . $div . '"); } else { document.getElementById("' . $div . '").innerHTML = "Flash player version 9 and above is required. <a href=\\"http://get.adobe.com/flashplayer/\\">Upgrade your flash version</a>"; } </script> '; return $flash_embed; } }