Thread: Error: OK??
View Single Post
 
Old Apr 25, 2003, 09:48 AM
hric hric is offline
New Member
 
Member Since: Apr 2003
Posts: 1
I think I understand the first part of the fix, line 334 or so of "oj.cfg" but can you tell me where EXACTLY to add the "elseif" line in "oj.cgi"?

Thanks

PS: I "blindly" pasted the code here in my "oj.cgi" file to test it;
<blockquote>
split(/\./,$uid); }
if ($userid) { $script_link = "$script_link&userid=$userid"; }
if ($uid eq "default") { $db_userid = $uid; }
else { ($db_userid) = $db_uid =~ /([A-Za-z0-9] )\.\d /; }

if ($in{'edit'}) {
$edit = $in{'edit'};
&verify;

} elsif ($in{'auth'} eq "login") {
&addform;
</blockquote>

It solves the "Error: OK" when going back to the console but now the entries are showing up twice in the oj index page. Any thoughts?
I'm sure I probably pasted into the wrong place since I am sort of new to cgi scripts.

Thanks again