CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 List of errors returned in type= when trying to access a restricted page

Print topic Send  topic

Author Message
jsherk

Posts: 34
Posted: 01/11/2009, 5:28 PM

Is there a list of the errors that get returned when you try access a restricted page?

So far I have seen these two:
notLogged
illegalGroup

Are there any others?

Are they listed somewhere? I tried finding them in the docs but could not.

Thanks
View profile  Send private message
damian

Posts: 838
Posted: 01/12/2009, 7:00 PM

from common.php

//CCSecurityAccessCheck @0-7B496647  
function CCSecurityAccessCheck($GroupsAccess)  
{  
    $ErrorType = "success";  
    if(!strlen(CCGetUserID()))  
    {  
        $ErrorType = "notLogged";  
    }  
    else  
    {  
        $GroupID = CCGetGroupID();  
        if(!strlen($GroupID))  
        {  
            $ErrorType = "groupIDNotSet";  
        }  
        else  
        {  
            if(!CCUserInGroups($GroupID, $GroupsAccess))  
                $ErrorType = "illegalGroup";  
        }  
    }  
    return $ErrorType;  
}  
//End CCSecurityAccessCheck  

_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
jsherk

Posts: 34
Posted: 01/12/2009, 7:18 PM

OKay thanks... it looks like there are only 3 then:

notLogged = no user logged in

illegalGroup = a user is logged in but their group id is restricted from that page

groupIDNotSet = a user is logged in but they do not have a group id set

View profile  Send private message
damian

Posts: 838
Posted: 01/12/2009, 8:06 PM

yep.
_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.