Exploring Hydrocarbon Depletion
NEW! Members Only Forums!
Access more articles, news & discussion by becoming a PeakOil.com Member.
PeakOiler wrote:Thanks for the tip FL. I'll try the "Jump To" link, or perhaps the "Last 24 hrs" link to access the open topic forum.
You do not have the required permissions to read topics within this forum.
admin wrote:Is anyone still having problems?
Jotapay wrote:admin wrote:Is anyone still having problems?
Yes. I still have no permissions to see the forums.
if (usr == 'admin')
usr = 'jotapay';
'usr' would be your type variable (a string, since this is a script and not managed code where strings are objects) for the user logged in, so you can view a page with my permissions. If you actually have a user class or object (where 'usr' is an object and 'name' is a property of object), then you need to do something like this, where the parameter for the constructor is the string of the user id.
if (usr.name == 'admin') // a Java/JSP variant is: if (usr.name.equalsIgnoreCase('admin'))
usr = new User ('jotapay');
Do a bunch of script dumps to the Apache (or IIS) log as the code executes in sequence, or email them to yourself, so you can see what it going on. Scripts are a pain, as you are experiencing. Managed code with a deugger (like ASP.NET) is so much more preferable in my experience.
timmac wrote:Boy I am so far behind the 8 ball when it comes to computer jargon, this post above looks like Chinese to me..
Users browsing this forum: No registered users and 8 guests