Wednesday, October 17, 2018

Migrating Joomla 1.5 site with jEvents to 2.5 and an upgraded jEvents

I started with a Joomla 1.5.23 site and upgraded it with a joomla 1.5.x – 1.5.26 package from the Joomla website. I went to jEvents to get an updated version. I decided to google jEvents joomla 1.5 upgrade and found this link from jEvents.

http://www.jevents.net/downloads/category/70-j15-j25-migration

Starts with a jUpgrade or simular migration to 2.5. Start by going into plug-ins and enable Moo Tools Upgrade. Then install and run jUpgrade. I have had a lot of difficulty getting jUpgrade to run smoothly in WAMP. I have finally figured out a good install method after a couple of Win 7 reloads and multiple attempts to get WAMP set up with CURL correctly. Here is link to how I did it.

http://blog.grimeymedia.com/migrating-joomla-1-5-to-2-5/

Follow this lesson and got it all up and running in 45 minutes. Basically did jUpgrade, ran their migration php script, and then installed jEvents 3.0 and all the old info was in the new database.

“#!/bin/sh id cat zot echo ok” in a test_me file in a Joomla 1.5 site.

I found a file called “zot”. Inside was text “abcdefghi”. There was also a file called “test_me”. Inside this file was “#!/bin/sh
id
cat zot
echo ok”

This is a linux bash script used to cat or create a file called zot. Must be connected to an attack.

There was another file called “open_test” with another linux bash script.

#!/bin/sh
set -x
DIR=”/home/my_website/public_html”
cd $DIR
SUSTR=”
if [[ “$UID” -eq “0” || `id -un` != ‘audio’ ]];
then
SUSTR=”sudo -u audio ”
fi
$SUSTR $DIR/test_me

“iolanipalace.org” and “Pay Day Loans” text showed up in my Joomla 1.5 template

I am starting another Joomla 1.5.23 upgrade to 2.5 for security reasons. Before I started I noticed “payday loans” hyperlink going to “iolanipalace.org”.

payday_loan

This was not a module area it was in the index.php file in the template. I went to to the template to see added text. I highlighted the text in blue.

payday_loan_code

I googled “iolanipalace.org” and came up with a link I didn’ want to click on.

516Cash: UK Payday Loans


www.516cash.com/

UK Payday Loans from 516cash. Up to £1000 in 15 minutes! Instant Approval! No Transfer Fees, Apply Now!


Seems like a scam lead through Cross-Site Scripting. I am hoping the damage isn’t severe.

Upgrade your Joomla 1.5 sites before it is too late.

 

Hackeado por HighTech Brazil HackTeam hit one of my Joomla 1.5 sites

While backing up a customers site to prepare for a new Joomla 2.5 site to be installed I noticed a file called “xk.txt” in the root directory. I opened the file to see only the following text.

Hackeado por HighTech Brazil HackTeam
No\One – CrazyDuck – Otrasher

I am not going to repair this site because I am already upgrading it. Good reason to suggest any existing customers you may have with Joomla 1.5 site to upgrade or at least back up as soon as possible.

Unpublishing a Joomla 2.5 Article

I recently upgraded a Joomla 1.5 site to 2.5. I needed to expire a article, but the publishing options weren’t there. I am still learning 2.5, and needed to figure it out. Here is what I saw.

article_options_1

There was no place to set the published and unpublished dates. Back out the to the list of articles and click on “options.”

 

 

 

article_options_2

Under Editing Layout make sure “Show Publishing Options” is set to “Yes”. Mine was set to yes, but wasn’t show. Click “save and close”.

article_options_3

Now, the publishing options should be there.

article_options_4

 

 

Columned Lists Through CSS

I needed an easy way to have a list that a client could update that would display a three columns. Using a table was causing extra spaces to show up when changes were made. The pages were being edited in the Joomla Content Editor which is an awesome tool, but somehow spaces were being added.

Ryan Fidler, schooled me on CSS3’s Column Count which solved it all. This lesson was posted on W3Schools.com.

http://www.w3schools.com/cssref/css3_pr_column-count.asp

Responsive image not resizing proportionately.

Working a redesign the image on the home page were responding to the the size of the browser, but only the width was changing. Found this article on the web that solved my problem.

http://www.456bereastreet.com/archive/201306/how_to_proportionally_scale_images_that_have_dimension_attributes/

The CSS for the img was:

img {      max-width: 100%;
}

img {
max-width: 100%;
height: auto;
}

I hope this helps someone else.

Keeping Parent Div From Collapsing When Floating Elements Inside it.

I had a div with the id of footer. I needed to float three other divs ( div1, div2, and div3) inside this footer div. When I floated div2 and hit refresh in the browser to see my results the parent div (footer) collapsed.

A quick search brought me to this following link that fixed the problem.

http://stackoverflow.com/questions/218760/how-do-you-keep-parents-of-floated-elements-from-collapsing/11597829#11597829

The part i needed was to set the parent div to “overflow:auto;”

Using mod rewrites when running Joomla locally with WAMP

I have never looked into getting user friendly / mod rewrites on the .htaccess file in Joomla when I am running the site locally under WAMP, but stumbled on this.

https://www.akeebabackup.com/documentation/troubleshooter/prbasicts.html

Basically, click on WAMP server’s tray icon. Go to >>  Apache >> Apache Modules and make sure that Rewrite is checked. If not, click on it and wait for the server to restart.