jetcomputers Posted April 25, 2006 Posted April 25, 2006 Hi, I have read through a lots of issues regarding nonsecure images etc, but I cannot find a clear or well explained solution. I would appreciate some direction to this problem. I have the flash in my header.php which is below Regards Tony <?php /* $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // check if the 'install' directory exists, and warn of its existence if (WARN_INSTALL_EXISTENCE == 'true') { if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) { $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning'); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == 'true') { if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning'); } elseif (!is_writeable(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning'); } } } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning'); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning'); } } if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> <!-- <? // ---- MANUFACTURERS $manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name"); if ($number_of_rows = tep_db_num_rows($manufacturers_query)) { echo '<table cellspacing=0 cellpadding=0 width=177 align=center> '. tep_draw_form('manufacturers', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get') .' <tr><td colspan=2><b>Search by manufacturers:</b></td></tr> <tr><td height=2 colspan=2></td></tr> <tr><td colspan=2> '; $manufacturers_array = array(); while ($manufacturers = tep_db_fetch_array($manufacturers_query)) { $manufacturers_name = ((strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name']); $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers_name); } echo tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : ''), 'onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" class=se1') . tep_hide_session_id(); echo ' </td> </form> </table> '; } ?> --> <table cellspacing=0 cellpadding=0 width=716 align=center> <tr><td> <table cellspacing=0 cellpadding=0> <tr><td height=26></td></tr> <tr><td width=716 height=28 bgcolor=#F1F1F1> <table border=0 cellspacing=0 cellpadding=0> <tr><td height=6 colspan=8></td></tr> <tr><td colspan=2 width=27></td> <td colspan=2 width=104> <? // LANGUAGES if (!isset($lng) || (isset($lng) && !is_object($lng))) { include(DIR_WS_CLASSES . 'language.php'); $lng = new language; } $languages_string = ''; reset($lng->catalog_languages); while (list($key, $value) = each($lng->catalog_languages)) { $languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> '; } echo $languages_string; ?> </td> <td width=70 align=center class=ch>Currencies:? </td><td align=left width=125> <? // CURRENCIES echo tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get'); reset($currencies->currencies); $currencies_array = array(); while (list($key, $value) = each($currencies->currencies)) { $currencies_array[] = array('id' => $key, 'text' => $value['title']); } $hidden_get_variables = ''; reset($HTTP_GET_VARS); while (list($key, $value) = each($HTTP_GET_VARS)) { if ( ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) { $hidden_get_variables .= tep_draw_hidden_field($key, $value); } } echo tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit(); " style="width:95px; font-size: 9px" ') . $hidden_get_variables . tep_hide_session_id(); echo '</form>'; ?> </td> <td colspan=2 width=74><img src=images/m04.gif width=4 height=6 align=absmiddle> ?<a class=ml href=<?=tep_href_link('specials.php')?>>Specials</a></td> <td colspan=2 width=89><img src=images/m04.gif width=4 height=6 align=absmiddle> ?<a class=ml href=<?=tep_href_link('contact_us.php')?>>Contact Us</a></td> <td colspan=2 width=125><img src=images/m04.gif width=4 height=6 align=absmiddle> ?<a class=ml href=<?=tep_href_link('create_account.php')?>>Create an account</a></td> <td colspan=2 width=102><img src=images/m04.gif width=4 height=6 align=absmiddle> ?<a class=ml href=<?=tep_href_link('login.php')?>>Customer Login</a></td></tr> <tr><td height=5 colspan=8></td></tr> </table> </td></tr> <tr><td width=716 height=1 bgcolor=#C4C7C9></td></tr> <tr><td width=716 height=2></td></tr> </table> <table cellspacing=0 cellpadding=0> <tr><td><a href=#><img src=images/m07.jpg width=264 height=61 border=0></a></td> <td width=452 class=bg> <table cellspacing=0 cellpadding=0> <tr><td width=282></td> <td><img src=images/m06.gif width=2 height=61></td> <td width=168> <table cellspacing=0 cellpadding=0 width=132 align=center> <tr><td rowspan=2><a href=<?=tep_href_link('shopping_cart.php')?>><img src=images/m05.gif width=36 height=36 border=0></a> ? </td><td><b><font color=#ffffff>Shopping Cart</font></td></tr> <tr><td colspan=2><b><a class=ml1 href=<?=tep_href_link('shopping_cart.php')?>><font color=#82D5FF><?=$cart->count_contents()?> items</a></font></a></b></td></tr> </table> </td></tr> </table> </td></tr> <tr><td colspan=2 height=2></td></tr> </table> <table cellspacing=0 cellpadding=0> <tr><td widht=716 class=br> <table cellspacing=0 cellpadding=0> <tr><td width=127 align=center><a class=ml1 href=<?=tep_href_link('index.php')?>>Main page</a></td><td><img src=images/m08.gif width=1 height=40></td><td width=156 align=center><a class=ml1 href=<?=tep_href_link('products_new.php')?>>New products</a></td><td><img src=images/m08.gif width=1 height=40></td><td width=147 align=center><a class=ml1 href=<?=tep_href_link('account.php')?>>My account</a></td><td><img src=images/m08.gif width=1 height=40></td><td width=156 align=center><a class=ml1 href=<?=tep_href_link('shopping_cart.php')?>>Shopping cart</a></td><td><img src=images/m08.gif width=1 height=40></td><td width=126 align=center><a class=ml1 href=<?=tep_href_link('checkout_shipping.php')?>>Checkout</a></td></tr> </table> </td></tr> <tr><td height=2></td></tr> <tr><td height=1 width=716 bgcolor=#4B5356></td></tr> <tr><td height=1></td></tr> </table> <table cellspacing=0 cellpadding=0> <tr><td width=234 valign=top> <table cellspacing=0 cellpadding=0> <tr><td><img src=images/m10.gif width=234 height=39></td></tr> <tr><td width=234 class=br1> <table cellspacing=0 cellpadding=0 width=190 align=center> <tr><td height=14></td></tr> <? // ---- CATEGORIES function tep_show_category($counter) { global $tree, $categories_string, $cPath_array; if(!$tree[$counter]['level']){ $categories_string .= $categories_string ? '' : ''; $categories_string .= '<tr><td><img src=images/m13.gif width=4 height=6 align=absmiddle> ? <a class=ml2 href= '; if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; } $categories_string .= tep_href_link('index.php', $cPath_new) . '>'; // display categry name $categories_string .= $tree[$counter]['name']; $categories_string .= '</a></td></tr><tr><td height=5></td></tr>'; }else{ // SUBCATEGORY $categories_string .= '<tr><td>? ? '; for($i=0;$i<$tree[$counter]['le vel'];$i++) $categories_string .= '???'; $categories_string .= ' - <a class=ml2 style="font-weight:normal;" href='; if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; } $categories_string .= tep_href_link('index.php', $cPath_new) . '>'; // display category name $categories_string .= $tree[$counter]['name']; $categories_string .= '</a></td></tr><tr><td height=5></td></tr>'; } if ($tree[$counter]['next_id'] != false) { tep_show_category($tree[$counter]['next_id']); } } define(TABLE_CATEGORIES, "categories"); define(TABLE_CATEGORIES_DESCRIPTION, "categories_description"); $categories_string = ''; $tree = array(); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { $tree[$categories['categories_id']] = array('name' => $categories['categories_name'], 'parent' => $categories['parent_id'], 'level' => 0, 'path' => $categories['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $categories['categories_id']; } $parent_id = $categories['categories_id']; if (!isset($first_element)) { $first_element = $categories['categories_id']; } } //------------------------ if ($cPath) { $new_path = ''; reset($cPath_array); while (list($key, $value) = each($cPath_array)) { unset($parent_id); unset($first_id); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); if (tep_db_num_rows($categories_query)) { $new_path .= $value; while ($row = tep_db_fetch_array($categories_query)) { $tree[$row['categories_id']] = array('name' => $row['categories_name'], 'parent' => $row['parent_id'], 'level' => $key+1, 'path' => $new_path . '_' . $row['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $row['categories_id']; } $parent_id = $row['categories_id']; if (!isset($first_id)) { $first_id = $row['categories_id']; } $last_id = $row['categories_id']; } $tree[$last_id]['next_id'] = $tree[$value]['next_id']; $tree[$value]['next_id'] = $first_id; $new_path .= '_'; } else { break; } } } $categories_string .= ''; tep_show_category($first_element); $categories_string .= ''; echo $categories_string; ?> <tr><td height=15></td></tr> </table> </td></tr> <tr><td height=4></td></tr> <tr><td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="234" height="83" title="Binoc"> <param name="movie" value="http://www.jetcomracing.com.au/jetcomracingbinoc.swf">'>http://www.jetcomracing.com.au/jetcomracingbinoc.swf"> <param name="quality" value="high"> <embed src="http://www.jetcomracing.com.au/jetcomracingbinoc.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="234" height="83"></embed> </object></a></td></tr> <tr><td height=4></td></tr> <tr><td><a href=<?=tep_href_link('index.php','cPath=34')?>><img src=images/m12.jpg width=234 height=86 border=0></a></td></tr> </table> </td> <td width=4></td> <td width=478 valign=top> <table cellspacing=0 cellpadding=0> <tr><td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="478" height="120" title="intro"> <param name="movie" value="http://www.jetcomracing.com.au/jetcomracing.swf">'>http://www.jetcomracing.com.au/jetcomracing.swf"> <param name="quality" value="high"> <embed src="http://www.jetcomracing.com.au/jetcomracing.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="478" height="120"></embed> </object></a></td></tr> <tr><td height=4></td></tr> <tr><td width=478 class=br>
♥Vger Posted April 25, 2006 Posted April 25, 2006 <param name="movie" value="http://www.jetcomracing.com.au/jetcomracingbinoc.swf"> has to be https Vger
jetcomputers Posted April 25, 2006 Author Posted April 25, 2006 <param name="movie" value="http://www.jetcomracing.com.au/jetcomracingbinoc.swf"> has to be https Vger Thanks mate it worked like a charm. Below is the modified part of the header.php I changed the macromedia links to https as well and as far as i can see it works ie getting the flash player/shockwave Someone maybe be able to test who hasn't got any players installed Regards Tony <tr><td height=15></td></tr> </table> </td></tr> <tr><td height=4></td></tr> <tr><td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="234" height="83" title="Binoc"> <param name="movie" value="https://jetcomracing.com.au/jetcomracingbinoc.swf">'>https://jetcomracing.com.au/jetcomracingbinoc.swf"> <param name="quality" value="high"> <embed src="https://jetcomracing.com.au/jetcomracingbinoc.swf" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="234" height="83"></embed> </object></a></td></tr> <tr><td height=4></td></tr> <tr><td><a href=<?=tep_href_link('index.php','cPath=34')?>><img src=images/m12.jpg width=234 height=86 border=0></a></td></tr> </table> </td> <td width=4></td> <td width=478 valign=top> <table cellspacing=0 cellpadding=0> <tr><td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="478" height="120" title="intro"> <param name="movie" value="https://jetcomracing.com.au/jetcomracing.swf">'>https://jetcomracing.com.au/jetcomracing.swf"> <param name="quality" value="high"> <embed src="https://jetcomracing.com.au/jetcomracing.swf" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="478" height="120"></embed> </object></a></td></tr> <tr><td height=4></td></tr> <tr><td width=478 class=br>
jetcomputers Posted April 25, 2006 Author Posted April 25, 2006 Thanks mate it worked like a charm.Below is the modified part of the header.php I changed the macromedia links to https as well and as far as i can see it works ie getting the flash player/shockwave Someone maybe be able to test who hasn't got any players installed Regards Tony <tr><td height=15></td></tr> </table> </td></tr> <tr><td height=4></td></tr> <tr><td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="234" height="83" title="Binoc"> <param name="movie" value="https://jetcomracing.com.au/jetcomracingbinoc.swf">'>https://jetcomracing.com.au/jetcomracingbinoc.swf"> <param name="quality" value="high"> <embed src="https://jetcomracing.com.au/jetcomracingbinoc.swf" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="234" height="83"></embed> </object></a></td></tr> <tr><td height=4></td></tr> <tr><td><a href=<?=tep_href_link('index.php','cPath=34')?>><img src=images/m12.jpg width=234 height=86 border=0></a></td></tr> </table> </td> <td width=4></td> <td width=478 valign=top> <table cellspacing=0 cellpadding=0> <tr><td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="478" height="120" title="intro"> <param name="movie" value="https://jetcomracing.com.au/jetcomracing.swf">'>https://jetcomracing.com.au/jetcomracing.swf"> <param name="quality" value="high"> <embed src="https://jetcomracing.com.au/jetcomracing.swf" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="478" height="120"></embed> </object></a></td></tr> <tr><td height=4></td></tr> <tr><td width=478 class=br> Sorry I forgot to post the link for testing http://www.jetcomracing.com.au/shop cheers Tony
Recommended Posts
Archived
This topic is now archived and is closed to further replies.