$bp, 'full_domain_name' => str_replace( "\\", "/",$dn), 'folder_name' => $pa['path'].'/'.$up.'/pth', 'default_image' => $pa['path'].'/'.$up.'/default.jpg', 'use_catname' => 'false', 'video_regex' => $re, 'video_default' => $pa['path'].'/'.$up.'/defaultvideo.jpg', 'stream_check' => 'true', 'append' => 'false', 'append_text' => 'thumb_', 'resize_width' => '60', 'resize_height' => '60', 'hs_post' => 'false', 'hs_wordtube' => 'false', 'wordtube_width' => '160', 'wordtube_height' => '120', 'wordtube_text' => 'wtthumb_', 'hs_youtube' => 'false', 'youtube_width' => '160', 'youtube_height' => '120', 'hs_post' => 'false', 'keep_ratio' => 'true', 'info_update' => 'Create' ); function tb_post_thumb_options_subpanel() { if (isset($_POST['info_update']) == 'Update') { if ($_POST['use_catname'] == 'on') $_POST['use_catname'] = 'true'; else $_POST['use_catname'] = 'false'; if ($_POST['stream_check'] == 'on') $_POST['stream_check'] = 'true'; else $_POST['stream_check'] = 'false'; if ($_POST['append'] == 'on') $_POST['append'] = 'true'; else $_POST['append'] = 'false'; if ($_POST['keep_ratio'] == 'on') $_POST['keep_ratio'] = 'true'; else $_POST['keep_ratio'] = 'false'; if ($_POST['hs_post'] == 'on') $_POST['hs_post'] = 'true'; else $_POST['hs_post'] = 'false'; if ($_POST['hs_wordtube'] == 'on') $_POST['hs_wordtube'] = 'true'; else $_POST['hs_wordtube'] = 'false'; if ($_POST['hs_youtube'] == 'on') $_POST['hs_youtube'] = 'true'; else $_POST['hs_youtube'] = 'false'; if (get_magic_quotes_gpc()) $_POST['video_regex'] = stripslashes($_POST['video_regex']); $new_options = array( 'default_image' => $_POST['default_image'], 'full_domain_name' => $_POST['full_domain_name'], 'base_path' => $_POST['base_path'], 'folder_name' => $_POST['folder_name'], 'append' => $_POST['append'], 'append_text' => $_POST['append_text'], 'resize_width' => $_POST['width'], 'resize_height' => $_POST['height'], 'keep_ratio' => $_POST['keep_ratio'], 'hs_post' => $_POST['hs_post'], 'hs_wordtube' => $_POST['hs_wordtube'], 'wordtube_width' => $_POST['wordtube_width'], 'wordtube_height' => $_POST['wordtube_height'], 'wordtube_text' => $_POST['wordtube_text'], 'hs_youtube' => $_POST['hs_youtube'], 'youtube_width' => $_POST['youtube_width'], 'youtube_height' => $_POST['youtube_height'], 'use_catname' => $_POST['use_catname'], 'stream_check' => $_POST['stream_check'], 'video_regex' => $_POST['video_regex'], 'video_default' => $_POST['video_default'] ); /*******************************************************************************/ /* Validates options /*******************************************************************************/ $update_error = pt_validate_options($new_options); update_option('post_thumbnail_settings',$new_options); ?>