omihack Posted February 28, 2011 Share Posted February 28, 2011 Hello, I have installed this template http://www.tuhostmx.com/heaven/index.php but I wonder if I can add .swf animation (banner) in to the page. I made the following I hope anyone can understand and give me some advice please. for the banner i have the .swf file, images, and xml files configuration.. you can take a look at http://www.tuhostmx.com/heaven/preview.swf Then I found the original template had a .jpg called from header.php <a href="<?php echo tep_href_link('index.php')?>"><?php echo tep_image(DIR_WS_IMAGES.'p.jpg')?></a><br> So I made the change as follows.. <a href="<?php echo tep_href_link('index.php')?>"><?php echo tep_image('preview.swf')?></a><br> After that I found at google that is necessary declare something like this in index.php <table width="1024" border="0" 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="1024" height="450"> <param name="movie" value="http://yourdomain.com/locationofflashfile.swf" /> <param name="quality" value="high" /> <param name="wmode" value="transparent" /> <embed src="http://yourdomain.com/locationofflashfile.swf" width="1024" height="450" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed> </object></td> </tr> </table> but I already tried wiht any succes :( Quote Link to comment Share on other sites More sharing options...
germ Posted February 28, 2011 Share Posted February 28, 2011 More importantly.... Visit the link below: How to Secure Your Site Pay close attention to "SECURING THE ADMIN" - Yours is vulnerable. It's easier to do a few security fixes now than to clean up a hacked store later. And if you don't secure the admin your shop will be hacked. It's just a question of when... :o omihack 1 Quote If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
omihack Posted February 28, 2011 Author Share Posted February 28, 2011 Hey Jim,, Thanks a lot! I didn´t even imagined this possibility! Right now begin reading about it.. another question, do you hace all the security add-ons mentioned here? I mean I really need them all? http://www.oscommerce.com/forums/topic/313323-how-to-secure-your-site/ It's just a question of when... :o Regards! Quote Link to comment Share on other sites More sharing options...
omihack Posted March 1, 2011 Author Share Posted March 1, 2011 I finally made it thanks anyway 33 visits and just one answer.. For those who got the same issue.. I just replace the line code of the original gif at the header.php with this. <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase= "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="708" HEIGHT="265" ALIGN="absmiddle"> <PARAM NAME=movie VALUE="FILE SWF"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#333399> <EMBED src="FILE SWF" quality=high bgcolor=#333399 WIDTH="320" HEIGHT="240" ALIGN="absmiddle" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT> ensure to add <BR> before and after in order to get the template structured Quote Link to comment Share on other sites More sharing options...
germ Posted March 1, 2011 Share Posted March 1, 2011 Your admin is still a hack just waiting to happen.... :huh: If you don't secure it, it will. Maybe tomorrow, next week, or next month - it's just a question of when will the hack bots find your site. omihack 1 Quote If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
omihack Posted March 2, 2011 Author Share Posted March 2, 2011 Hi Germ, thanks for the warnings, could you please take a look? I think the admin is now secured Admin renamed, blocked with password from control panel and file manager and define language erased.. Could you please send me your opinion? I really appreciate your knowledge and time :blush: Quote Link to comment Share on other sites More sharing options...
germ Posted March 2, 2011 Share Posted March 2, 2011 Admin secured. :thumbsup: The only other item I saw was the permissions on the /heaven/images folder. They were 777. That will get you hacked as fast as a leaky admin. They shouldn't be higher than 755. omihack 1 Quote If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
omihack Posted March 3, 2011 Author Share Posted March 3, 2011 (edited) Ok, I'll change the permissions, another question, I think alll my folders has 777 :'( Wich ones must to remain or may I change all the folders to 755 without problems? Regarding the customization.. Im trying figure out how change the Green color to another in header and categories.. http://www.tuhostmx.com/heaven, I tried editing header.php, aplication_top, aplication_bottom, Header, and stylesheet But even I change the color code the site still with no changes ! :blink: I dont know what to do..I tried even with this http://jqueryui.com/themeroller/developertool/ Thank you very much for your patience! and help Sr.! Edited March 3, 2011 by omihack Quote Link to comment Share on other sites More sharing options...
germ Posted March 3, 2011 Share Posted March 3, 2011 Folder permissions should not be higher that 755. The only folder I saw higher than that was the one I told you about. If you examine the HTML source closely you'll discvover that all the green parts you want to change are images. :blush: omihack 1 Quote If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
omihack Posted March 4, 2011 Author Share Posted March 4, 2011 Thank you very much, How you can check my folder permissions!??? its just curiosity Your advice makes me learn a lot! thank you again Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.