[ Index ] |
PHP Cross Reference of phpwcms V1.4.7 _r403 (01.11.10) |
[Summary view] [Print] [Text view]
1 <?php 2 /************************************************************************************* 3 Copyright notice 4 5 (c) 2002-2010 Oliver Georgi (oliver@phpwcms.de) // All rights reserved. 6 7 This script is part of PHPWCMS. The PHPWCMS web content management system is 8 free software; you can redistribute it and/or modify it under the terms of 9 the GNU General Public License as published by the Free Software Foundation; 10 either version 2 of the License, or (at your option) any later version. 11 12 The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html 13 A copy is found in the textfile GPL.txt and important notices to the license 14 from the author is found in LICENSE.txt distributed with these scripts. 15 16 This script is distributed in the hope that it will be useful, but WITHOUT ANY 17 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 18 PARTICULAR PURPOSE. See the GNU General Public License for more details. 19 20 This copyright notice MUST APPEAR in all copies of the script! 21 *************************************************************************************/ 22 23 24 // ---------------------------------------------------------------- 25 // obligate check for phpwcms constants 26 if (!defined('PHPWCMS_ROOT')) { 27 die("You Cannot Access This Script Directly, Have a Nice Day."); 28 } 29 // ---------------------------------------------------------------- 30 31 32 // Flash Media Player 33 34 $fmp_data = array( 35 36 'fmp_template' => clean_slweg($_POST['fmp_template']), 37 'fmp_width' => intval($_POST['fmp_width']), 38 'fmp_height' => intval($_POST['fmp_height']), 39 'fmp_sort' => empty($_POST['fmp_sort']) ? 0 : intval($_POST['fmp_sort']), 40 41 // Flash 42 'fmp_int_ext' => empty($_POST['fmp_int_ext']) ? 0 : 1, 43 'fmp_internal_id' => intval($_POST['fmp_internal_id']), 44 'fmp_internal_name' => clean_slweg($_POST['fmp_internal_name']), 45 'fmp_external_file' => clean_slweg($_POST['fmp_external_file']), 46 47 // H.264 48 'fmp_int_ext_h264' => empty($_POST['fmp_int_ext_h264']) ? 0 : 1, 49 'fmp_internal_id_h264' => intval($_POST['fmp_internal_id_h264']), 50 'fmp_internal_name_h264' => clean_slweg($_POST['fmp_internal_name_h264']), 51 'fmp_external_file_h264' => clean_slweg($_POST['fmp_external_file_h264']), 52 53 // WebM 54 'fmp_int_ext_webm' => empty($_POST['fmp_int_ext_webm']) ? 0 : 1, 55 'fmp_internal_id_webm' => intval($_POST['fmp_internal_id_webm']), 56 'fmp_internal_name_webm' => clean_slweg($_POST['fmp_internal_name_webm']), 57 'fmp_external_file_webm' => clean_slweg($_POST['fmp_external_file_webm']), 58 59 // Ogg 60 'fmp_int_ext_ogg' => empty($_POST['fmp_int_ext_ogg']) ? 0 : 1, 61 'fmp_internal_id_ogg' => intval($_POST['fmp_internal_id_ogg']), 62 'fmp_internal_name_ogg' => clean_slweg($_POST['fmp_internal_name_ogg']), 63 'fmp_external_file_ogg' => clean_slweg($_POST['fmp_external_file_ogg']), 64 65 'fmp_caption' => clean_slweg($_POST['fmp_caption']), 66 'fmp_link' => clean_slweg($_POST['fmp_link']), 67 'fmp_img_id' => intval($_POST['fmp_img_id']), 68 'fmp_img_name' => clean_slweg($_POST['fmp_img_name']), 69 'fmp_set_logo' => clean_slweg($_POST['fmp_set_logo']), 70 'fmp_set_hcolor' => substr(preg_replace('/[^0-9a-f]/i', '', $_POST['fmp_set_hcolor']), 0, 6), 71 'fmp_set_color' => substr(preg_replace('/[^0-9a-f]/i', '', $_POST['fmp_set_color']), 0, 6), 72 'fmp_set_bgcolor' => substr(preg_replace('/[^0-9a-f]/i', '', $_POST['fmp_set_bgcolor']), 0, 6), 73 'fmp_set_showvolume' => empty($_POST['fmp_set_showvolume']) ? 0 : 1, 74 'fmp_set_showeq' => empty($_POST['fmp_set_showeq']) ? 0 : 1, 75 'fmp_set_showdigits' => empty($_POST['fmp_set_showdigits']) ? 0 : 1, 76 'fmp_set_largecontrols' => empty($_POST['fmp_set_largecontrols']) ? 0 : 1, 77 'fmp_set_showcontrols' => clean_slweg($_POST['fmp_set_showcontrols']), 78 'fmp_set_autostart' => empty($_POST['fmp_set_autostart']) ? 0 : 1, 79 'fmp_set_autohidecontrol' => empty($_POST['fmp_set_autohidecontrol']) ? 0 : 1, 80 'fmp_set_showdownload' => empty($_POST['fmp_set_showdownload']) ? 0 : 1, 81 'fmp_set_overstretch' => clean_slweg($_POST['fmp_set_overstretch']), 82 'fmp_set_skin' => clean_slweg($_POST['fmp_set_skin']), 83 'fmp_set_skin_html5' => clean_slweg($_POST['fmp_set_skin_html5']), 84 'fmp_player' => empty($_POST['fmp_player']) ? 0 : 1 85 86 ); 87 88 // make some checks 89 // Flash 90 if(empty($fmp_data['fmp_external_file']) && $fmp_data['fmp_int_ext'] == 1) { 91 $fmp_data['fmp_int_ext'] = 0; 92 } elseif(empty($fmp_data['fmp_internal_id']) && !empty($fmp_data['fmp_external_file']) && $fmp_data['fmp_int_ext'] == 0) { 93 $fmp_data['fmp_int_ext'] = 1; 94 } 95 // H.264 96 if(empty($fmp_data['fmp_external_file_h264']) && $fmp_data['fmp_int_ext_h264'] == 1) { 97 $fmp_data['fmp_int_ext_h264'] = 0; 98 } elseif(empty($fmp_data['fmp_internal_id_h264']) && !empty($fmp_data['fmp_external_file_h264']) && $fmp_data['fmp_int_ext_h264'] == 0) { 99 $fmp_data['fmp_int_ext_h264'] = 1; 100 } 101 // WebM 102 if(empty($fmp_data['fmp_external_file_webm']) && $fmp_data['fmp_int_ext_webm'] == 1) { 103 $fmp_data['fmp_int_ext_webm'] = 0; 104 } elseif(empty($fmp_data['fmp_internal_id_webm']) && !empty($fmp_data['fmp_external_file_webm']) && $fmp_data['fmp_int_ext_webm'] == 0) { 105 $fmp_data['fmp_int_ext_webm'] = 1; 106 } 107 // Ogg 108 if(empty($fmp_data['fmp_external_file_ogg']) && $fmp_data['fmp_int_ext_ogg'] == 1) { 109 $fmp_data['fmp_int_ext_ogg'] = 0; 110 } elseif(empty($fmp_data['fmp_internal_id_ogg']) && !empty($fmp_data['fmp_external_file_ogg']) && $fmp_data['fmp_int_ext_ogg'] == 0) { 111 $fmp_data['fmp_int_ext_ogg'] = 1; 112 } 113 114 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Nov 16 22:51:00 2010 | Cross-referenced by PHPXref 0.7 |