| | |
| | | * |
| | | * @return system |
| | | */ |
| | | |
| | | |
| | | public function system(){ |
| | | //global $go_info; |
| | | //$this->server_id = $go_info['isp']['server_id']; |
| | |
| | | $this->server_conf['shadow_datei'] = '/etc/shadow'; |
| | | $this->server_conf['group_datei'] = '/etc/group'; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get the hostname from the server |
| | |
| | | } |
| | | return $hostname; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Add an user to the system |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Update users when someone edit it |
| | | * |
| | |
| | | //* Add the user again |
| | | $this->adduser($user_username, $uid, $gid, $username, $homedir, $shell, $passwort); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Lock the user |
| | |
| | | $this->deluser($user_username); |
| | | $this->adduser($user_username, $uid, $gid, $username, $homedir, $shell, $passwort); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Delete a user from the system |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Add a usergroup to the system |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Update usersgroup in way to delete and add it again |
| | | * |
| | |
| | | $this->delgroup($group); |
| | | $this->addgroup($group, $gid, $members); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Delete a usergroup from the system |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Order usergroups |
| | | * |
| | |
| | | unset($arr); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Find a user / group id |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Check if the users is really a user into the system |
| | | * |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Check if the group is on this system |
| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get the groups of an user |
| | | * |
| | |
| | | return ''; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get a user password |
| | | * |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get the user id from an user |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get the group id from an group |
| | | * |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Return info about a group by name |
| | |
| | | return posix_getgrnam($group); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get all information from a user |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Edit the owner of a file |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Add an user to a specific group |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Filter information from the commands |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Strip content from fields |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get the content off a file |
| | | * |
| | |
| | | global $app; |
| | | return $app->file->rf($file); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Control services to restart etc |
| | |
| | | return bindec($f1).'.'.bindec($f2).'.'.bindec($f3).'.'.bindec($f4); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Make a broadcast address from an IP number in combination with netmask |
| | | * |
| | |
| | | list($f1,$f2,$f3,$f4) = explode('.', trim($broadcast_bin)); |
| | | return bindec($f1).'.'.bindec($f2).'.'.bindec($f3).'.'.bindec($f4); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get the network address information |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Configure the network settings from the system |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Scan the trash for virusses infection |
| | | * |
| | |
| | | chown($datei,'admispconfig'); |
| | | chgrp($datei,'admispconfig'); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get the current time |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |