Moderator: admin
Ferretlover wrote:Yes, we have a precocious gremlin in the system. We expect it to be dealt with sometime this weekend.
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.
In the PHP scripts, set your ID or permissions to me and you will see the problem. On the permissions include on every page, create a line like this. This is formatted for generic C#/JavaScript/Java/JSP syntax, but your syntax will be similar and you just have to figure out your script notation.
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.
User usr;
.....
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 274 guests