read()){ $ext = substr($entry, strlen($entry)-4, 4); $name = substr($entry, 0, strlen($entry)-4); if ($ext == ".pru") { $ret[$pos] = $name; $pos ++; } } return $ret; } // returns an array of String with all available group profiles function getGroupProfiles() { $dir = dir(getLAMPath() . "/config/profiles/groups"); $ret = array(); $pos = 0; while ($entry = $dir->read()){ $ext = substr($entry, strlen($entry)-4, 4); $name = substr($entry, 0, strlen($entry)-4); if ($ext == ".prg") { $ret[$pos] = $name; $pos ++; } } return $ret; } // returns an array of String with all available host profiles function getHostProfiles() { $dir = dir(getLAMPath() . "/config/profiles/hosts"); $ret = array(); $pos = 0; while ($entry = $dir->read()){ $ext = substr($entry, strlen($entry)-4, 4); $name = substr($entry, 0, strlen($entry)-4); if ($ext == ".prh") { $ret[$pos] = $name; $pos ++; } } return $ret; } // loads an user profile with name $profile // the return value is an account object function loadUserProfile($profile) { } // loads an group profile with name $profile // the return value is an account object function loadGroupProfile($profile) { } // loads an host profile with name $profile // the return value is an account object function loadHostProfile($profile) { } // saves an account object to an user profile with name $profile // file is created, if needed function saveUserProfile($account, $profile) { } // saves an account object to an group profile with name $profile // file is created, if needed function saveGroupProfile($account, $profile) { } // saves an account object to an host profile with name $profile // file is created, if needed function saveHostProfile($account, $profile) { } ?>