From a435de089da4dd37c3c183f633a49107c720dd95 Mon Sep 17 00:00:00 2001 From: Dalyn Cessac Date: Wed, 16 Mar 2011 11:06:40 -0500 Subject: Added phpvideotoolkit transcoder and updates to the preset ui --- .../phpvideotoolkit/examples/example-config.php | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 libraries/phpvideotoolkit/examples/example-config.php (limited to 'libraries/phpvideotoolkit/examples/example-config.php') diff --git a/libraries/phpvideotoolkit/examples/example-config.php b/libraries/phpvideotoolkit/examples/example-config.php new file mode 100644 index 0000000..70540b7 --- /dev/null +++ b/libraries/phpvideotoolkit/examples/example-config.php @@ -0,0 +1,70 @@ +Please open examples/example-config.php to set your servers values. Then click here to continue.'); +//<- exits + } + +// use a particular version for the examples + $use_version = 'php5'; + $has_version_warning = false; +// check if php5 is ok + if($use_version == 'php5' && version_compare(PHP_VERSION, '5.0.0', '<')) + { + $use_version = 'php4'; + $has_version_warning = true; + } +// print_r(array($use_version, version_compare('4', PHP_VERSION, '<'))); +// exit; + if(!isset($ignore_demo_files) || !$ignore_demo_files) + { + $is_file = is_file(PHPVIDEOTOOLKIT_EXAMPLE_ABSOLUTE_PATH.'to-be-processed'.DS.'cat.mpeg'); + if($is_file) + { + if(!isset($ignore_config_output) || !$ignore_config_output) + { + echo 'Please note that this example requires demo files. If you have not got these demo files you can download them from here.

This example will now quit.
'; + exit; + } + } + else + { + if(!isset($ignore_config_output) || !$ignore_config_output) + { + echo '
'; + } + } + } + + + \ No newline at end of file -- cgit v1.2.3