forked from kaltura/mwEmbed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactored custom php code to gear up for new resource loader and mor…
…e strait forward configuration git-svn-id: http://www.kaltura.org/kalorg/html5video/trunk/mwEmbed@1451 b58a29cf-3064-46da-94c6-1c29cc75c8e5
- Loading branch information
1 parent
381f64f
commit 6cb2dca
Showing
8 changed files
with
301 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
/** | ||
* This file store all of mwEmbed local configuration ( in a default svn check out this file is empty ) | ||
* | ||
* See includes/DefaultSettings.php for a configuration options | ||
*/ | ||
|
||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
/** | ||
* This file stores default settings for Kaltura html5 client library "mwEmbed". | ||
* | ||
* DO NOT MODIFY THIS FILE. Instead modify LocalSettings.php in the parent mwEmbd directory. | ||
* | ||
*/ | ||
|
||
// The default cache directory | ||
$wgScriptCacheDirectory = realpath( dirname( __FILE__ ) ) . '/cache'; | ||
|
||
// The absolute or relative path to mwEmbed install folder. | ||
$wgMwEmbedPathUrl = false; | ||
|
||
/********************************************************* | ||
* Default Kaltura Configuration: | ||
* TODO move kaltura configuration to KalturaSupport module ( part of ResourceLoader update ) | ||
********************************************************/ | ||
|
||
// The default Kaltura service url: | ||
$wgKalturaServiceUrl = 'http://www.kaltura.com/'; | ||
|
||
// Default Kaltura CDN url: | ||
$wgKalturaCDNUrl = 'http://cdn.kaltura.com'; | ||
|
||
// Default Kaltura service url: | ||
$wgKalturaServiceBase = '/api_v3/index.php?'; | ||
|
||
// Default expire time for ui conf api queries in seconds | ||
$wgKalturaUiConfCacheTime = 600; | ||
|
||
|
||
|
||
|
||
/********************************************************* | ||
* Include local settings override: | ||
********************************************************/ | ||
$wgLocalSettingsFile = realpath( dirname( __FILE__ ) ) . '../LocalSettings.php'; | ||
if( is_file( $wgLocalSettingsFile ) ){ | ||
require_once( $wgLocalSettingsFile ); | ||
} | ||
|
||
/********************************************************* | ||
* Set any autoconfigure variables if not set in LocalSettings | ||
* | ||
* These variables should be set to false at the top of DefaultSettings.php | ||
********************************************************/ | ||
if( $wgMwEmbedPathUrl === false ){ | ||
$wgMwEmbedPathUrl = str_replace( 'mwEmbedFrame.php', '', $_SERVER['SCRIPT_NAME'] ); | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.