~ubuntu-branches/ubuntu/lucid/suphp/lucid

« back to all changes in this revision

Viewing changes to src/UserInfo.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Emmanuel Lacour
  • Date: 2009-08-03 15:15:38 UTC
  • mfrom: (8.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090803151538-pv7yhe6w1mqmceas
Tags: 0.7.1-1
* New upstream release (closes: #528379, #520182) 
* debian/NEWS: add information about AddHandler -> AddType change introduced
  in 0.6.2-2 (closes: #517805)
* debian/conf/suphp.conf, debian/patches/01_debian.dpatch: switch from
  application/x-httpd-php to application/x-httpd-suphp to allow
  simultaneous use of mod_suphp and mod_php (closes: #519005, #514725)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
    suPHP - (c)2002-2005 Sebastian Marsching <sebastian@marsching.com>
 
2
    suPHP - (c)2002-2008 Sebastian Marsching <sebastian@marsching.com>
3
3
 
4
4
    This file is part of suPHP.
5
5
 
58
58
    return api.UserInfo_getGroupInfo(*this);
59
59
}
60
60
 
 
61
std::string suPHP::UserInfo::getHomeDirectory() const
 
62
    throw (LookupException) {
 
63
    API& api = API_Helper::getSystemAPI();
 
64
        return api.UserInfo_getHomeDirectory(*this);
 
65
}
 
66
 
61
67
bool suPHP::UserInfo::isSuperUser() {
62
68
    return API_Helper::getSystemAPI().UserInfo_isSuperUser(*this);
63
69
}
64
70
 
65
71
bool suPHP::UserInfo::operator==(const UserInfo& uinfo) const {
66
72
    if (this->getUid() == uinfo.getUid())
67
 
        return true;
 
73
        return true;
68
74
    else
69
 
        return false;
 
75
        return false;
70
76
}
71
77
 
72
78
bool suPHP::UserInfo::operator!=(const UserInfo& uinfo) const {