phptest-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phptest-users] disabling view correct answers for user


From: Brandon Tallent
Subject: Re: [Phptest-users] disabling view correct answers for user
Date: Wed, 21 Aug 2002 10:16:43 -0700 (PDT)

An easier method for this:

Remove the view results line from logged_in.inc.php
add this line near the top of view_results.php:

check_admin()

That will force the user to be an admin to view the
results.

Brandon


--- Dan Kegel <address@hidden> wrote:
> John Lacey wrote:
> > I need to be able to do this as well.  You can
> easily change
> > that -- I assume you're currently running phpTest
> version
> > 0.6.1.   Here's what I did and tested:
> > 
> > 1. make a backup copy of view_results.php (in case
> I screw
> > up)
> > 2. make two code changes -- both involve just
> moving a
> > single line of code.
> > 3. about halfway down the view_results.php file in
> the block
> > of code beginning with the comment "// draw table"
> > 4. move this line:
> > $table->th($strings['RESULTS_VIEW_ANSWERS']);
> > [long recipe deleted]
> 
> Can you post that as a patch?  
> - Dan
> 
> 
> _______________________________________________
> Phptest-users mailing list
> address@hidden
>
http://mail.freesoftware.fsf.org/mailman/listinfo/phptest-users


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]