'.$text.'
'; } function print_success($text) { echo ''.$text.'
'; } function create_back_button($module,$subpage = "") { $retval = "\n"; return $retval; } /// Creates HTML drop box from given array with the given listname, custom for Rsync sites function create_drop_box_from_array_rsync($input_array, $listname, $current_value = "", $use_only_values = true) { $count = 1; $retval = "\n"; return $retval; } /// Creates HTML drop box from given array with the given listname. function create_drop_box_from_array($input_array,$listname,$current_value = "", $use_only_values = true) { $retval = "\n"; return $retval; } /// Creates HTML drop box from given array with the given listname. /// Used to create a list of users/groups. Remote_readfile is used to read in /etc/passwd and /etc/group function create_drop_box_from_passwd($input_array,$listname) { $retval = "\n"; return $retval; } function get_user_uid_gid_from_passwd($input_array,$name) { foreach($input_array as $line) { $line = trim($line); if ( empty($line) ) continue; list($username, $junk, $uid, $gid, $comment, $home_dir, $shell) = explode(':', $line); if ( $username === $name ) { $retval = "$uid:$gid"; return $retval; } } } function check_theme_image($base_image_path) { $base_image_path = ltrim($base_image_path, "/"); if(function_exists("getThemePath")){ return file_exists( getThemePath() . $base_image_path ) ? getThemePath() . $base_image_path : $base_image_path; } return $base_image_path; } ?>