Re: If (!$one_thing) {$other;}

2003-07-03 Thread Ged Haywood
Hi there, On Wed, 2 Jul 2003, Dennis Stout wrote: This also means I can write a small subroutine to eval a form that's been posted, and given the authentication passes, add code to the thing while it's running, AND save the code to the DB so it'll be around for reboots. Wouldn't that just

If (!$one_thing) {$other;}

2003-07-02 Thread Dennis Stout
This is irking me. $state preserves information about the request and so on. Now, $r-whatever_method works just fine.. EXCEPT for sending headers. When I visit my site, I get my nifty login page, and that is all. Always the login page. I telnetted into the thing to see what kinds of cookie

if (!$one_thing) { $other; }

2003-07-02 Thread Dennis Stout
I suppose the subroutine that makes the call to it would help too. I'll spare you all the dispatch routine as it's quite lengthy, but basically the DispatchTbl::* generates webpages dynamically depending on the uri caught by RequestHandler::handler();. sub post_login_form { my $state =

Re: If (!$one_thing) {$other;}

2003-07-02 Thread Perrin Harkins
On Wed, 2003-07-02 at 17:44, Dennis Stout wrote: $r-send_http_header; must be broken, eh? Not likely. Your syntax looks okay to me. It probably isn't being called for some reason, or else $r is not what you think it is. Throw in some debug statements and find out what's actually happening

Re: If (!$one_thing) {$other;}

2003-07-02 Thread Dennis Stout
Not likely. Your syntax looks okay to me. It probably isn't being called for some reason, or else $r is not what you think it is. Throw in some debug statements and find out what's actually happening there. Okay, I put in some code to take the generated headers and enter them into the body

Re: If (!$one_thing) {$other;}

2003-07-02 Thread Dennis Stout
Not likely. Your syntax looks okay to me. It probably isn't being called for some reason, or else $r is not what you think it is. Throw in some debug statements and find out what's actually happening there. Okay, I put in some code to take the generated headers and enter them into the

Re: If (!$one_thing) {$other;}

2003-07-02 Thread John Michael
Here is a little script I wrote a while back so that I could look at headers being sent from my server in a browser window. JM. - Original Message - From: Dennis Stout [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 4:44 PM Subject: If (!$one_thing) {$other

Re: If (!$one_thing) {$other;}

2003-07-02 Thread Perrin Harkins
On Wed, 2003-07-02 at 21:24, Dennis Stout wrote: Okay, I put in some code to take the generated headers and enter them into the body of the page. This had an odd effect. I bet I have a login problem. You lost me. You were having problems with headers not being sent, right? That

Re: If (!$one_thing) {$other;}

2003-07-02 Thread Dennis Stout
On Wed, 2003-07-02 at 21:24, Dennis Stout wrote: Okay, I put in some code to take the generated headers and enter them into the body of the page. This had an odd effect. I bet I have a login problem. Whoops. logic problem. YAY, maybe the core of all my problems is vast amounts of

Re: If (!$one_thing) {$other;}

2003-07-02 Thread Dennis Stout
I think when I'm done and get this roled out, I'll work on making something very similar but completely database driven. All the functions in the dispatch table will be brought in through a single SQL statement called in an eval context. This also means I can write a small subroutine to eval