Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Someone gone through my site, could someone


Ausgirl

Recommended Posts

Posted

Hello,

 

I just had an IP address go through my site in which it duplicated itself and my "who's online" stated there were 2834 guests online and growing so I blocked the IP address. The address showing on all files and in every inch of my site all looked like this: http://mysite.com/index.php?amp;amp;amp;am...1007155f9eba5dd

 

Every inch of my site came up with the same addy. What does this mean?

 

Now in my information box, everything under the heading Articles when clicked on goes to the page with all the information missing. All it says is ARRAY! Yet in the file all the information is there.

 

If you would like to see what I mean you can see HERE!

 

Could someone please explain to me what was happening? I also ran site monitor, but that didnt show anything unusual.

 

Thanks

Posted
Hello,

 

I just had an IP address go through my site in which it duplicated itself and my "who's online" stated there were 2834 guests online and growing so I blocked the IP address. The address showing on all files and in every inch of my site all looked like this: http://mysite.com/index.php?amp;amp;amp;am...1007155f9eba5dd

 

Every inch of my site came up with the same addy. What does this mean?

 

Now in my information box, everything under the heading Articles when clicked on goes to the page with all the information missing. All it says is ARRAY! Yet in the file all the information is there.

 

If you would like to see what I mean you can see HERE!

 

Could someone please explain to me what was happening? I also ran site monitor, but that didnt show anything unusual.

 

Thanks

 

Looks to me like the you have information pages (enhanced vers 1.3) contrib installed and the file /includes/boxes/information.php has somehow been alterred incorrectly.

 

Did you try to install the new version then go back to the old forgetting to replace a file?

Posted

Hello Robert,

 

I do have information pages unlimited, but I havent touched it in a while. (1.3) so I dont know why it would disappear like that, I will have a go at reinstalling it and see what happens.

Posted

Hello Robert,

 

I do have information pages unlimited, but I havent touched it in a while. (1.3) so I dont know why it would disappear like that, I will have a go at reinstalling it and see what happens.

Posted

Hello Robert,

 

I do have information pages unlimited, but I havent touched it in a while. (1.3) so I dont know why it would disappear like that, I will have a go at reinstalling it and see what happens.

Posted

I tried the reinstall, but it made no difference. Im puzzled as to why it happened in the first place. Any ideas on how I can fix it so the information appears on my site would be much appreciated.

 

Thanks.

Posted

Ive just disabled the pages from public view whilst I wait and hopefully someone can help me find a fix for it.

Posted
Ive just disabled the pages from public view whilst I wait and hopefully someone can help me find a fix for it.

 

 

The problem seems to be catalog/information.php

 

The following variables are empty ..

$title

$articles_menu

 

and $description is what is showing as an array.

 

Try replacing catalog/information.php with the one from the contrib.

Posted

Nope, didnt work, How would part of the code just disppear? (I must of did something without realising it, but I dont remember changing any of the information files). I miss my info pages :(

 

Should I stick that bit of code in my catalog/info.php? and try that? If so where would I place it.

Posted

$description shouldn't be an array are you sure you haven't duplicated entries in the DB?

 

Try finding

 

$description = stripslashes($information['description']);

 

in catalog/information.php

 

and add below it ..

 

## Temporary debug ##

print_r($description);

## End temp debug ##

 

See what it outputs

Posted

Is that all just one information page?

Posted

The top part is, but the bottom 1/2 is where my site starts. It suppose to be in the box where it says "useful Services" Array.

 

If you look at the suppliers it does the same thing.

Posted

As I said before it should not be an array.

 

check in your database to see if there are 2 entries for the infopages

Posted
As I said before it should not be an array.

 

check in your database to see if there are 2 entries for the infopages

 

 

Find the line ..

 

$information_query = tep_db_query("SELECT info_title, description FROM " . TABLE_INFORMATION . " WHERE visible='1' AND information_id='" . $info_id . "'");

 

Try replacing with ..

 

$information_query = tep_db_query("SELECT info_title, description FROM " . TABLE_INFORMATION . " WHERE visible='1' AND information_id='" . $info_id . "'" AND languages_id='" . $languages_id . "'");

Posted

There is only one entry that I can see, I can post a picture of the DB if you like, maybe you might pick up something I havent.

 

Replacing that code gave me this: Parse error: syntax error, unexpected '=' in /home/wwwshop/public_html/information.php on line 24

Posted

Ooops

 

$information_query = tep_db_query("SELECT info_title, description FROM " . TABLE_INFORMATION . " WHERE visible='1' AND information_id='" . $info_id . "' AND languages_id='" . $languages_id . "'");

 

Get rid of the print_r() now too

Posted

Nope, the page is still on top.

 

What do you mean by this: Get rid of the print_r() now too ? If you mean this ## Temporary debug ##

print_r($description);

## End temp debug ## it just goes back to the way it was

Posted

All the print_r() does is shows us what is in the array, it will never appear where you want.

Posted
mmmm, so whats wrong with it, can it be fixed do you think?

 

Try this .. find the following in catalog/information.php

 

	  <tr>
	<td class="cart"><br /><?php echo $description; ?></td>
	</tr>

 

Replace with .. ## REMEMBER your class names are probs different ## e.g. <td class="cart"

 

	  <tr>
	<td class="cart"><br />
	<?php
	if (is_array($description) {
	$count = count($description);
	for ($i=0; $i<$count; $i++)
	echo $description[$i] . '</td>';
	}else echo $description . '</td>';
	?>
	</tr>

Posted

I modified the above just now .. redo pls

Posted

<tr>

<td class="cart"><br /><?php echo $description; ?></td>

</tr>

 

 

I dont have that bit of code, I have this:

 

<tr>

<td class="category_desc"><BR><?php echo $description; ?></td>

</tr>

Posted

Replace that with ...

 

	   <tr>
	 <td class="category_desc"><br />
	<?php
	if (is_array($description) {
	$count = count($description);
	for ($i=0; $i<$count; $i++)
	echo $description[$i] . '</td>';
	}else echo $description . '</td>';
	?>
	</tr>

 

I did mention above that you would have a different class name :P

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...