当前位置: 首页>>代码示例>>PHP>>正文


PHP myContentStorage::getFSFlashRootPath方法代码示例

本文整理汇总了PHP中myContentStorage::getFSFlashRootPath方法的典型用法代码示例。如果您正苦于以下问题:PHP myContentStorage::getFSFlashRootPath方法的具体用法?PHP myContentStorage::getFSFlashRootPath怎么用?PHP myContentStorage::getFSFlashRootPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在myContentStorage的用法示例。


在下文中一共展示了myContentStorage::getFSFlashRootPath方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: execute

 /**
  * Will forward to the regular swf player according to the widget_id 
  */
 public function execute()
 {
     $ui_conf_id = $this->getRequestParameter("ui_conf_id");
     $uiConf = uiConfPeer::retrieveByPK($ui_conf_id);
     if (!$uiConf) {
         die;
     }
     $partner_id = $uiConf->getPartnerId();
     $subp_id = $uiConf->getSubpId();
     $host = myPartnerUtils::getHost($partner_id);
     $ui_conf_swf_url = $uiConf->getSwfUrl();
     if (!$ui_conf_swf_url) {
         $ui_conf_swf_url = "/swf/simpleeditor.swf";
     }
     if (kString::beginsWith($ui_conf_swf_url, "http")) {
         $swf_url = $ui_conf_swf_url;
         // absolute URL
     } else {
         $use_cdn = $uiConf->getUseCdn();
         $cdn_host = $use_cdn ? myPartnerUtils::getCdnHost($partner_id) : myPartnerUtils::getHost($partner_id);
         $swf_url = $cdn_host . myPartnerUtils::getUrlForPartner($partner_id, $subp_id) . $ui_conf_swf_url;
         // relative to the current host
     }
     // handle buggy case for backward compatiblity
     $partner_host = $host;
     if ($partner_host == "http://www.kaltura.com") {
         $partner_host = 1;
     }
     // otherwise the kse will build a flawed url with [[IMPORT]]
     $params = "contentUrl=" . urlencode($swf_url) . "&host=" . str_replace("http://", "", str_replace("https://", "", $partner_host)) . "&cdnHost=" . str_replace("http://", "", str_replace("https://", "", myPartnerUtils::getCdnHost($partner_id))) . "&uiConfId=" . $ui_conf_id . "&disableurlhashing=" . kConf::get('disable_url_hashing');
     $wrapper_swf = myContentStorage::getFSFlashRootPath() . "/flexwrapper/" . kConf::get('editors_flex_wrapper_version') . "/FlexWrapper.swf";
     $this->redirect($host . myPartnerUtils::getUrlForPartner($partner_id, $subp_id) . "{$wrapper_swf}?{$params}");
 }
开发者ID:DBezemer,项目名称:server,代码行数:36,代码来源:kseAction.class.php

示例2: execute

 /**
  * Will forward to the regular swf player according to the widget_id 
  */
 public function execute()
 {
     $ui_conf_id = $this->getRequestParameter("ui_conf_id");
     $uiConf = uiConfPeer::retrieveByPK($ui_conf_id);
     if (!$uiConf) {
         die;
     }
     $partner_id = $uiConf->getPartnerId();
     $subp_id = $uiConf->getSubpId();
     if (!$subp_id) {
         $subp_id = 0;
     }
     $host = myPartnerUtils::getHost($partner_id);
     $ui_conf_swf_url = $uiConf->getSwfUrl();
     if (!$ui_conf_swf_url) {
         $ui_conf_swf_url = "/swf/ContributionWizard.swf";
     }
     if (kString::beginsWith($ui_conf_swf_url, "http")) {
         $swf_url = $ui_conf_swf_url;
         // absolute URL
     } else {
         $use_cdn = $uiConf->getUseCdn();
         $cdn_host = $use_cdn ? myPartnerUtils::getCdnHost($partner_id) : myPartnerUtils::getHost($partner_id);
         $swf_url = $cdn_host . myPartnerUtils::getUrlForPartner($partner_id, $subp_id) . $ui_conf_swf_url;
         // relative to the current host
     }
     $params = "contentUrl=" . urlencode($swf_url) . "&host=" . str_replace("http://", "", str_replace("https://", "", $host)) . "&cdnHost=" . str_replace("http://", "", str_replace("https://", "", myPartnerUtils::getCdnHost($partner_id))) . "&uiConfId=" . $ui_conf_id;
     $wrapper_swf = myContentStorage::getFSFlashRootPath() . "/flexwrapper/" . kConf::get('kcw_flex_wrapper_version') . "/FlexWrapper.swf";
     $this->redirect($host . myPartnerUtils::getUrlForPartner($partner_id, $subp_id) . "{$wrapper_swf}?{$params}");
 }
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:33,代码来源:kcwAction.class.php

示例3: execute

 public function execute()
 {
     // Prevent the page fron being embeded in an iframe
     header('X-Frame-Options: DENY');
     // Check if user already logged in and redirect to kmc2
     if ($this->getRequest()->getCookie('kmcks')) {
         $this->redirect('kmc/kmc2');
     }
     if (infraRequestUtils::getProtocol() != infraRequestUtils::PROTOCOL_HTTPS && kConf::get('kmc_secured_login')) {
         $url = 'https://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
         header('Location:' . $url);
         die;
     }
     $this->www_host = kConf::get('www_host');
     $https_enabled = !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443 ? true : false;
     $this->securedLogin = kConf::get('kmc_secured_login') || $https_enabled ? true : false;
     $swfUrl = $this->securedLogin ? 'https://' : 'http://';
     $swfUrl .= $this->www_host . myContentStorage::getFSFlashRootPath();
     $swfUrl .= '/kmc/login/' . kConf::get('kmc_login_version') . '/login.swf';
     $this->swfUrl = $swfUrl;
     $this->partner_id = $this->getRequestParameter("partner_id");
     $this->logoUrl = null;
     if ($this->partner_id) {
         $partner = PartnerPeer::retrieveByPK($this->partner_id);
         if ($partner) {
             $this->logoUrl = kmcUtils::getWhitelabelData($partner, 'logo_url');
         }
     }
     $this->beta = $this->getRequestParameter("beta");
     //prevent script injections - allow only base64_encode chars , which is used when creating A new hash key
     $passHashparam = $this->getRequestParameter("setpasshashkey");
     if ($passHashparam && !preg_match(self::BASE64_ENCODE_CHARS_REGEX, $passHashparam)) {
         KExternalErrors::dieError(KExternalErrors::INVALID_HASH);
     }
     $this->setPassHashKey = $passHashparam;
     $this->hashKeyErrorCode = null;
     $this->displayErrorFromServer = false;
     if ($this->setPassHashKey) {
         try {
             $loginData = UserLoginDataPeer::isHashKeyValid($this->setPassHashKey);
             $partnerId = $loginData->getConfigPartnerId();
             $partner = PartnerPeer::retrieveByPK($partnerId);
             if ($partner && $partner->getPasswordStructureValidations()) {
                 $this->displayErrorFromServer = true;
             }
         } catch (kCoreException $e) {
             $this->hashKeyErrorCode = $e->getCode();
         }
     }
     sfView::SUCCESS;
 }
开发者ID:DBezemer,项目名称:server,代码行数:51,代码来源:kmcAction.class.php

示例4: execute

 public function execute()
 {
     sfView::SUCCESS;
     /** check parameters and verify user is logged-in **/
     $this->partner_id = $this->getP("pid");
     $this->subp_id = $this->getP("subpid", (int) $this->partner_id * 100);
     $this->uid = $this->getP("uid");
     $this->ks = $this->getP("kmcks");
     if (!$this->ks) {
         // if kmcks from cookie doesn't exist, try ks from REQUEST
         $this->ks = $this->getP('ks');
     }
     $this->screen_name = $this->getP("screen_name");
     $this->email = $this->getP("email");
     /** if no KS found, redirect to login page **/
     if (!$this->ks) {
         $this->redirect("kmc/kmc");
         die;
     }
     $ksObj = kSessionUtils::crackKs($this->ks);
     /** END - check parameters and verify user is logged-in **/
     /** Get array of allowed partners for the current user **/
     $this->allowedPartners = array();
     $currentUser = kuserPeer::getKuserByPartnerAndUid($this->partner_id, $ksObj->user, true);
     if ($currentUser) {
         $partners = myPartnerUtils::getPartnersArray($currentUser->getAllowedPartnerIds());
         foreach ($partners as $partner) {
             $this->allowedPartners[] = array('id' => $partner->getId(), 'name' => $partner->getName());
         }
         $this->full_name = $currentUser->getFullName();
     }
     /** load partner from DB, and set templatePartnerId **/
     $this->partner = $partner = null;
     $this->templatePartnerId = self::SYSTEM_DEFAULT_PARTNER;
     $this->ignoreSeoLinks = false;
     $this->ignoreEntrySeoLinks = false;
     $this->useEmbedCodeProtocolHttps = false;
     $this->v2Flavors = false;
     if ($this->partner_id !== NULL) {
         $this->partner = $partner = PartnerPeer::retrieveByPK($this->partner_id);
         kmcUtils::redirectPartnerToCorrectKmc($partner, $this->ks, $this->uid, $this->screen_name, $this->email, self::CURRENT_KMC_VERSION);
         $this->templatePartnerId = $this->partner ? $this->partner->getTemplatePartnerId() : self::SYSTEM_DEFAULT_PARTNER;
         $this->ignoreSeoLinks = $this->partner->getIgnoreSeoLinks();
         $this->ignoreEntrySeoLinks = PermissionPeer::isValidForPartner(PermissionName::FEATURE_IGNORE_ENTRY_SEO_LINKS, $this->partner_id);
         $this->useEmbedCodeProtocolHttps = PermissionPeer::isValidForPartner(PermissionName::FEATURE_EMBED_CODE_DEFAULT_PROTOCOL_HTTPS, $this->partner_id);
         $this->v2Flavors = PermissionPeer::isValidForPartner(PermissionName::FEATURE_V2_FLAVORS, $this->partner_id);
     }
     /** END - load partner from DB, and set templatePartnerId **/
     /** set default flags **/
     $this->payingPartner = 'false';
     $this->kdp508_players = array();
     $this->first_login = false;
     /** END - set default flags **/
     /** set values for template **/
     $this->service_url = myPartnerUtils::getHost($this->partner_id);
     $this->host = $this->stripProtocol($this->service_url);
     $this->embed_host = $this->host;
     if (kConf::hasParam('cdn_api_host') && kConf::hasParam('www_host') && $this->host == kConf::get('cdn_api_host')) {
         $this->host = kConf::get('www_host');
     }
     $this->cdn_url = myPartnerUtils::getCdnHost($this->partner_id);
     $this->cdn_host = $this->stripProtocol($this->cdn_url);
     $this->rtmp_host = myPartnerUtils::getRtmpUrl($this->partner_id);
     $this->flash_dir = $this->cdn_url . myContentStorage::getFSFlashRootPath();
     // Decide if to hide akamai delivery type
     $this->hideAkamaiHDNetwork = $partner->getDisableAkamaiHDNetwork();
     /** set payingPartner flag **/
     if ($partner && $partner->getPartnerPackage() != PartnerPackages::PARTNER_PACKAGE_FREE) {
         $this->payingPartner = 'true';
     }
     /** END - set payingPartner flag **/
     /** get partner languae **/
     $this->language = null;
     if ($partner->getKMCLanguage()) {
         $this->language = $partner->getKMCLanguage();
     }
     /** END - get partner languae **/
     /** set first_login flag **/
     $this->first_login = $partner->getIsFirstLogin();
     if ($this->first_login === true) {
         $partner->setIsFirstLogin(false);
         $partner->save();
     }
     /** END - set first_login flag **/
     /** get logout url **/
     $this->logoutUrl = null;
     if ($partner->getLogoutUrl()) {
         $this->logoutUrl = $partner->getLogoutUrl();
     }
     /** END - get logout url**/
     /** partner-specific: change KDP version for partners working with auto-moderaion **/
     // set content kdp version according to partner id
     $moderated_partners = array(31079, 28575, 32774);
     $this->content_kdp_version = 'v2.7.0';
     if (in_array($this->partner_id, $moderated_partners)) {
         $this->content_kdp_version = 'v2.1.2.29057';
     }
     /** END - partner-specific: change KDP version for partners working with auto-moderaion **/
     $this->kmc_swf_version = kConf::get('kmc_version');
     /** uiconf listing work **/
//.........这里部分代码省略.........
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:101,代码来源:kmc4Action.class.php

示例5: execute

 public function execute()
 {
     sfView::SUCCESS;
     /** check parameters and verify user is logged-in **/
     $this->ks = $this->getP("kmcks");
     if (!$this->ks) {
         // if kmcks from cookie doesn't exist, try ks from REQUEST
         $this->ks = $this->getP('ks');
     }
     /** if no KS found, redirect to login page **/
     if (!$this->ks) {
         $this->redirect("kmc/kmc");
         die;
     }
     $ksObj = kSessionUtils::crackKs($this->ks);
     // Set partnerId from KS
     $this->partner_id = $ksObj->partner_id;
     // Check if the KMC can be framed
     $allowFrame = PermissionPeer::isValidForPartner(PermissionName::FEATURE_KMC_ALLOW_FRAME, $this->partner_id);
     if (!$allowFrame) {
         header('X-Frame-Options: DENY');
     }
     // Check for forced HTTPS
     $force_ssl = PermissionPeer::isValidForPartner(PermissionName::FEATURE_KMC_ENFORCE_HTTPS, $this->partner_id);
     if ($force_ssl && (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != 'on')) {
         header("Location: " . infraRequestUtils::PROTOCOL_HTTPS . "://" . $_SERVER['SERVER_NAME'] . $_SERVER["REQUEST_URI"]);
         die;
     }
     /** END - check parameters and verify user is logged-in **/
     /** Get array of allowed partners for the current user **/
     $allowedPartners = array();
     $this->full_name = "";
     $currentUser = kuserPeer::getKuserByPartnerAndUid($this->partner_id, $ksObj->user, true);
     if ($currentUser) {
         $partners = myPartnerUtils::getPartnersArray($currentUser->getAllowedPartnerIds());
         foreach ($partners as $partner) {
             $allowedPartners[] = array('id' => $partner->getId(), 'name' => $partner->getName());
         }
         $this->full_name = $currentUser->getFullName();
     }
     $this->showChangeAccount = count($allowedPartners) > 1 ? true : false;
     // Load partner
     $this->partner = $partner = PartnerPeer::retrieveByPK($this->partner_id);
     if (!$partner) {
         KExternalErrors::dieError(KExternalErrors::PARTNER_NOT_FOUND);
     }
     if (!$partner->validateApiAccessControl()) {
         KExternalErrors::dieError(KExternalErrors::SERVICE_ACCESS_CONTROL_RESTRICTED);
     }
     kmcUtils::redirectPartnerToCorrectKmc($partner, $this->ks, null, null, null, self::CURRENT_KMC_VERSION);
     $this->templatePartnerId = $this->partner ? $this->partner->getTemplatePartnerId() : self::SYSTEM_DEFAULT_PARTNER;
     $ignoreEntrySeoLinks = PermissionPeer::isValidForPartner(PermissionName::FEATURE_IGNORE_ENTRY_SEO_LINKS, $this->partner_id);
     $useEmbedCodeProtocolHttps = PermissionPeer::isValidForPartner(PermissionName::FEATURE_EMBED_CODE_DEFAULT_PROTOCOL_HTTPS, $this->partner_id);
     $showFlashStudio = PermissionPeer::isValidForPartner(PermissionName::FEATURE_SHOW_FLASH_STUDIO, $this->partner_id);
     $showHTMLStudio = PermissionPeer::isValidForPartner(PermissionName::FEATURE_SHOW_HTML_STUDIO, $this->partner_id);
     $deliveryTypes = $partner->getDeliveryTypes();
     $embedCodeTypes = $partner->getEmbedCodeTypes();
     $defaultDeliveryType = $partner->getDefaultDeliveryType() ? $partner->getDefaultDeliveryType() : 'http';
     $defaultEmbedCodeType = $partner->getDefaultEmbedCodeType() ? $partner->getDefaultEmbedCodeType() : 'auto';
     $this->previewEmbedV2 = PermissionPeer::isValidForPartner(PermissionName::FEATURE_PREVIEW_AND_EMBED_V2, $this->partner_id);
     /** set values for template **/
     $this->service_url = requestUtils::getRequestHost();
     $this->host = $this->stripProtocol($this->service_url);
     $this->embed_host = $this->stripProtocol(myPartnerUtils::getHost($this->partner_id));
     if (kConf::hasParam('cdn_api_host') && kConf::hasParam('www_host') && $this->host == kConf::get('cdn_api_host')) {
         $this->host = kConf::get('www_host');
     }
     if ($this->embed_host == kConf::get("www_host") && kConf::hasParam('cdn_api_host')) {
         $this->embed_host = kConf::get('cdn_api_host');
     }
     $this->embed_host_https = kConf::hasParam('cdn_api_host_https') ? kConf::get('cdn_api_host_https') : kConf::get('www_host');
     $this->cdn_url = myPartnerUtils::getCdnHost($this->partner_id);
     $this->cdn_host = $this->stripProtocol($this->cdn_url);
     $this->rtmp_host = kConf::get("rtmp_url");
     $this->flash_dir = $this->cdn_url . myContentStorage::getFSFlashRootPath();
     /** set payingPartner flag **/
     $this->payingPartner = 'false';
     if ($partner && $partner->getPartnerPackage() != PartnerPackages::PARTNER_PACKAGE_FREE) {
         $this->payingPartner = 'true';
         $ignoreSeoLinks = true;
     } else {
         $ignoreSeoLinks = $this->partner->getIgnoreSeoLinks();
     }
     /** get partner languae **/
     $language = null;
     if ($partner->getKMCLanguage()) {
         $language = $partner->getKMCLanguage();
     }
     $first_login = $partner->getIsFirstLogin();
     if ($first_login === true) {
         $partner->setIsFirstLogin(false);
         $partner->save();
     }
     /** get logout url **/
     $logoutUrl = null;
     if ($partner->getLogoutUrl()) {
         $logoutUrl = $partner->getLogoutUrl();
     }
     $this->kmc_swf_version = kConf::get('kmc_version');
     $akamaiEdgeServerIpURL = null;
//.........这里部分代码省略.........
开发者ID:dozernz,项目名称:server,代码行数:101,代码来源:kmc4Action.class.php

示例6: execute

 public function execute()
 {
     sfView::SUCCESS;
     /** check parameters and verify user is logged-in **/
     $this->partner_id = $this->getP("pid");
     $this->subp_id = $this->getP("subpid", (int) $this->partner_id * 100);
     $this->uid = $this->getP("uid");
     $this->ks = $this->getP("kmcks");
     if (!$this->ks) {
         // if kmcks from cookie doesn't exist, try ks from REQUEST
         $this->ks = $this->getP('ks');
     }
     $this->screen_name = $this->getP("screen_name");
     $this->email = $this->getP("email");
     /** if no KS found, redirect to login page **/
     if (!$this->ks) {
         $this->redirect("kmc/kmc");
         die;
     }
     /** END - check parameters and verify user is logged-in **/
     /** load partner from DB, and set templatePartnerId **/
     $this->partner = $partner = null;
     $this->templatePartnerId = self::SYSTEM_DEFAULT_PARTNER;
     if ($this->partner_id !== NULL) {
         $this->partner = $partner = PartnerPeer::retrieveByPK($this->partner_id);
         kmcUtils::redirectPartnerToCorrectKmc($partner, $this->ks, $this->uid, $this->screen_name, $this->email, self::CURRENT_KMC_VERSION);
         $this->templatePartnerId = $this->partner ? $this->partner->getTemplatePartnerId() : self::SYSTEM_DEFAULT_PARTNER;
     }
     /** END - load partner from DB, and set templatePartnerId **/
     /** set default flags **/
     $this->allow_reports = false;
     $this->payingPartner = 'false';
     $this->embed_code = "";
     $this->enable_live_streaming = 'false';
     $this->kmc_enable_custom_data = 'false';
     $this->kdp508_players = array();
     $this->first_login = false;
     $this->enable_vast = 'false';
     /** END - set default flags **/
     /** set values for template **/
     $this->service_url = myPartnerUtils::getHost($this->partner_id);
     $this->host = str_replace("http://", "", $this->service_url);
     $this->cdn_url = myPartnerUtils::getCdnHost($this->partner_id);
     $this->cdn_host = str_replace("http://", "", $this->cdn_url);
     $this->rtmp_host = myPartnerUtils::getRtmpUrl($this->partner_id);
     $this->flash_dir = $this->cdn_url . myContentStorage::getFSFlashRootPath();
     /** set embed_code value **/
     if ($this->partner_id !== null) {
         $widget = widgetPeer::retrieveByPK("_" . $this->partner_id);
         if ($widget) {
             $this->embed_code = $widget->getWidgetHtml("kaltura_player");
             $ui_conf = $widget->getuiConf();
         }
     }
     /** END - set embed_code value **/
     /** set payingPartner flag **/
     if ($partner && $partner->getPartnerPackage() != PartnerPackages::PARTNER_PACKAGE_FREE) {
         $this->payingPartner = 'true';
     }
     /** END - set payingPartner flag **/
     /** set enable_live_streaming flag **/
     if (kConf::get('kmc_content_enable_live_streaming') && $partner) {
         if ($partner->getLiveStreamEnabled()) {
             $this->enable_live_streaming = 'true';
         }
     }
     /** END - set enable_live_streaming flag **/
     /** set enable_live_streaming flag **/
     if ($partner && $partner->getEnableVast()) {
         $this->enable_vast = 'true';
     }
     /** END - set enable_live_streaming flag **/
     /** set kmc_enable_custom_data flag **/
     $defaultPlugins = kConf::get('default_plugins');
     if (is_array($defaultPlugins) && in_array('MetadataPlugin', $defaultPlugins) && $partner) {
         if ($partner->getPluginEnabled(MetadataPlugin::PLUGIN_NAME) && $partner->getKmcVersion() == self::CURRENT_KMC_VERSION) {
             $this->kmc_enable_custom_data = 'true';
         }
     }
     /** END - set kmc_enable_custom_data flag **/
     /** set allow_reports flag **/
     // 2009-08-27 is the date we added ON2 to KMC trial account
     // TODO - should be depracated
     if (strtotime($partner->getCreatedAt()) >= strtotime('2009-08-27') || $partner->getEnableAnalyticsTab()) {
         $this->allow_reports = true;
     }
     if ($partner->getEnableAnalyticsTab()) {
         $this->allow_reports = true;
     }
     // if the email is empty - it is an indication that the kaltura super user is logged in
     if (!$this->email) {
         $this->allow_reports = true;
     }
     /** END - set allow_reports flag **/
     /** set first_login and jw_license flags **/
     if ($partner) {
         $this->first_login = $partner->getIsFirstLogin();
         if ($this->first_login === true) {
             $partner->setIsFirstLogin(false);
             $partner->save();
//.........这里部分代码省略.........
开发者ID:richhl,项目名称:kalturaCE,代码行数:101,代码来源:kmc3Action.class.php

示例7: str_replace

<?php
// TEST PAGE FOR ADDING JW TO KMC

$jw_license = ($jw_license)? "licensed": "non-commercial";
$service_url = myPartnerUtils::getHost($partner_id);
$host = str_replace ( "http://" , "" , $service_url );
$cdn_url = myPartnerUtils::getCdnHost($partner_id);
$cdn_host = str_replace ( "http://" , "" , $cdn_url );

$cache_st = "cache_st/".(time()+ 15 * 60);

$flash_dir = $service_url . myContentStorage::getFSFlashRootPath ();
//$allow_reports = false;
$disableurlhashing = kConf::get('disable_url_hashing');
if ( !$allow_reports )
{
  $first_login = true;
}
if ( kConf::get('kmc_display_server_tab') )
{
  $support_url = '#';
  $_SESSION['api_v3_login'] = true;
}
else
{
	$support_url = '/index.php/kmc/support?type=' . md5($payingPartner) . '&pid=' . $partner_id . '&email=' . $email;
//  if($visibleCT === 'true') // paying partner, not CE
//  {
//    $support_url = 'http://corp.kaltura.com/support/form/project/30/partnerId/'.(($host != 1)? '': $partner_id);
//    $support_url = 'http://tickets.kaltura.com/';
//  }
开发者ID:richhl,项目名称:kalturaCE,代码行数:31,代码来源:kmc1Success.php

示例8: getSwfUrlVersion

 public function getSwfUrlVersion()
 {
     $swf_url = $this->getSwfUrl();
     $flash_url = myContentStorage::getFSFlashRootPath();
     $match = preg_match('/\\/v([\\w\\d\\.]+)/', $swf_url, $version);
     if ($match) {
         return $version[1];
     }
     return null;
 }
开发者ID:DBezemer,项目名称:server,代码行数:10,代码来源:uiConf.php

示例9: getSlpUrlVersion

 private static function getSlpUrlVersion($conf)
 {
     $swf_url = $conf->getSwfUrl();
     $flash_url = myContentStorage::getFSFlashRootPath();
     $match = preg_match("|{$flash_url}/slp[\\d]*/v([\\w\\d\\.]*)/|", $swf_url, $version);
     if ($match) {
         return $version[1];
     }
     return null;
 }
开发者ID:DBezemer,项目名称:server,代码行数:10,代码来源:kmcUtils.class.php

示例10: execute


//.........这里部分代码省略.........
         $subp_id = 0;
     }
     $uiConf = uiConfPeer::retrieveByPK($widget_type);
     // new ui_confs which are deleted should stop the script
     // the check for >100000 is for supporting very old mediawiki and such players
     if (!$uiConf && $widget_type > 100000) {
         die;
     }
     if ($uiConf) {
         $ui_conf_swf_url = $uiConf->getSwfUrl();
         if (kString::beginsWith($ui_conf_swf_url, "http")) {
             $swf_url = $ui_conf_swf_url;
             // absolute URL
         } else {
             $use_cdn = $uiConf->getUseCdn();
             $host = $use_cdn ? $partner_cdnHost : $partner_host;
             $swf_url = $host . myPartnerUtils::getUrlForPartner($partner_id, $subp_id) . $ui_conf_swf_url;
         }
         if ($debug_kdp) {
             $swf_url = str_replace("/kdp/", "/kdp_debug/", $swf_url);
         }
     }
     if ($show_version < 0) {
         $show_version = null;
     }
     $ip = requestUtils::getRemoteAddress();
     // to convert back, use long2ip
     // the widget log should change to reflect the new data, but for now - i used $widget_id instead of the widgget_type
     //		WidgetLog::createWidgetLog( $referer , $ip , $kshow_id , $entry_id , $kmedia_type , $widget_id );
     if ($entry_id == -1) {
         $entry_id = null;
     }
     $kdp3 = false;
     $base_wrapper_swf = myContentStorage::getFSFlashRootPath() . "/kdpwrapper/" . kConf::get('kdp_wrapper_version') . "/kdpwrapper.swf";
     $widgetIdStr = "widget_id={$widget_id}";
     $partnerIdStr = "partner_id={$partner_id}&subp_id={$subp_id}";
     if ($uiConf) {
         $ks_flashvars = "";
         $conf_vars = $uiConf->getConfVars();
         if ($conf_vars) {
             $conf_vars = "&" . $conf_vars;
         }
         $wrapper_swf = $base_wrapper_swf;
         $partner = PartnerPeer::retrieveByPK($partner_id);
         if ($partner) {
             $partner_type = $partner->getType();
         }
         if (version_compare($uiConf->getSwfUrlVersion(), "3.0", ">=")) {
             $kdp3 = true;
             // further in the code, $wrapper_swf is being used and not $base_wrapper_swf
             $wrapper_swf = $base_wrapper_swf = myContentStorage::getFSFlashRootPath() . '/kdp3wrapper/' . kConf::get('kdp3_wrapper_version') . '/kdp3wrapper.swf';
             $widgetIdStr = "widgetId={$widget_id}";
             $uiconf_id_str = "&uiConfId={$uiconf_id}";
             $partnerIdStr = "partnerId={$partner_id}&subpId={$subp_id}";
         }
         // if we are loaded without a wrapper (directly in flex)
         // 1. dont create the ks - keep url the same for caching
         // 2. dont patch the uiconf - patching is done only to wrapper anyway
         if ($nowrapper) {
             $dynamic_date = $widgetIdStr . "&host=" . str_replace("http://", "", str_replace("https://", "", $partner_host)) . "&cdnHost=" . str_replace("http://", "", str_replace("https://", "", $partner_cdnHost)) . $uiconf_id_str . $conf_vars;
             $url = "{$swf_url}?{$dynamic_date}";
         } else {
             // if kdp version >= 2.5
             if (version_compare($uiConf->getSwfUrlVersion(), "2.5", ">=")) {
                 // create an anonymous session
                 $ks = "";
开发者ID:richhl,项目名称:kalturaCE,代码行数:67,代码来源:kwidgetAction.class.php

示例11: str_replace

* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Modified by Akvelon Inc.
* 2014-06-30
* http://www.akvelon.com/contact-us
*/
$jw_license = $jw_license ? "licensed" : "non-commercial";
$service_url = myPartnerUtils::getHost($partner_id);
/*** move to action ***/
$host = str_replace("http://", "", $service_url);
$cdn_url = myPartnerUtils::getCdnHost($partner_id);
/*** move to action ***/
$cdn_host = str_replace("http://", "", $cdn_url);
$flash_dir = $cdn_url . myContentStorage::getFSFlashRootPath();
/*** move to action ***/
//$allow_reports = false;
$disableurlhashing = kConf::get('disable_url_hashing');
if (!$allow_reports) {
    $first_login = true;
}
if (kConf::get('kmc_display_server_tab')) {
    $_SESSION['api_v3_login'] = true;
}
$support_url = kConf::get('support_url');
//if ( $host == "www.kaltura.com" ) $host = "1";
/*** move to action ***/
$uiconfs_array = array();
foreach ($playlist_uiconf_list as $uiconf) {
    $uiconf_array = array();
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:31,代码来源:kmc2Success.php

示例12: str_replace

<?php

$service_url = requestUtils::getHost();
$host = str_replace("http://", "", $service_url);
if ($host == "www.kaltura.com") {
    $host = "1";
}
$www_host = kConf::get('www_host');
if (kConf::get('kmc_secured_login')) {
    $flash_dir = 'https://';
} else {
    $flash_dir = 'http://';
}
$flash_dir .= $www_host . '/' . myContentStorage::getFSFlashRootPath();
$beta_str = $beta ? "/beta/{$beta}" : "";
?>
<script language="JavaScript" type="text/javascript">
<!--
// -----------------------------------------------------------------------------
var _partner_id, _subp_id, _uid;

function empty(val) {
	if(val === null)
		return true;
	return false;
}
function loginF(remMe, partner_id, subp_id, uid, ks , screen_name, email) {
	var has_cookie = false;
	if (partner_id == null) {
		partner_id = getCookie ( "pid" );
		subp_id = getCookie ( "subpid" );
开发者ID:richhl,项目名称:kalturaCE,代码行数:31,代码来源:kmcSuccess.php

示例13: getAvailableTypesAction

 /**
  * Retrieve a list of all available versions by object type
  * 
  * @action getAvailableTypes
  * @return KalturaUiConfTypeInfoArray
  */
 function getAvailableTypesAction()
 {
     $flashPath = myContentStorage::getFSContentRootPath() . myContentStorage::getFSFlashRootPath();
     $flashPath = realpath($flashPath);
     $uiConf = new uiConf();
     $dirs = $uiConf->getDirectoryMap();
     $swfNames = $uiConf->getSwfNames();
     $typesInfoArray = new KalturaUiConfTypeInfoArray();
     foreach ($dirs as $objType => $dir) {
         $typesInfo = new KalturaUiConfTypeInfo();
         $typesInfo->type = $objType;
         $typesInfo->directory = $dir;
         $typesInfo->filename = isset($swfNames[$objType]) ? $swfNames[$objType] : '';
         $versions = array();
         $path = $flashPath . '/' . $dir . '/';
         $path = realpath($path);
         $files = scandir($path);
         foreach ($files as $file) {
             if (is_dir(realpath($path . '/' . $file)) && strpos($file, 'v') === 0) {
                 $versions[] = $file;
             }
         }
         rsort($versions);
         $versionsObjectArray = new KalturaStringArray();
         foreach ($versions as $version) {
             $versionString = new KalturaString();
             $versionString->value = $version;
             $versionsObjectArray[] = $versionString;
         }
         $typesInfo->versions = $versionsObjectArray;
         $typesInfoArray[] = $typesInfo;
     }
     return $typesInfoArray;
 }
开发者ID:richhl,项目名称:kalturaCE,代码行数:40,代码来源:UiConfService.php


注:本文中的myContentStorage::getFSFlashRootPath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。