Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

name the variable.....


gentlegiant

Recommended Posts

oky,

I'm after creating a script that when certain IP addresses view the site it puts a message in the message stack(pink).

The first way that I thaught of doing it if looking up the IP address from the sesions table using the session variable...

But whats the sesion variable?

 

Or is their another simpler way (since the IP address has all ready been looked up....)

 

Also, whats the correct variable for the message stacks, is their one for pink and one for green?

 

 

Thanks

Link to comment
Share on other sites

oky,

I'm after creating a script that when certain IP addresses view the site it puts a message in the message stack(pink).

The first way that I thaught of doing it if looking up the IP address from the sesions table using the session variable...

But whats the sesion variable?

 

Or is their another simpler way (since the IP address has all ready been looked up....)

 

Also, whats the correct variable for the message stacks, is their one for pink and one for green?

Thanks

I would simply get the IP adress from $_SERVER['remoteaddr']

have not played with message stacks myself

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...