This commit is contained in:
2018-09-03 02:53:01 -07:00
parent d2ed189d2b
commit 489ff7cd70
3 changed files with 129 additions and 46 deletions

7
functions.php Executable file → Normal file
View File

@@ -50,10 +50,6 @@ function getParents($zpath, $pathname) {
}
*/
function stringPrint($string) {
echo $string.@str_repeat(" ", (10-strlen($string)));
}
function shortlabel($pathname, $max = 99, $pad = false) {
$basename = basename($pathname);
$suffix = "(...).".pathinfo($basename,PATHINFO_EXTENSION);
@@ -62,9 +58,6 @@ function shortlabel($pathname, $max = 99, $pad = false) {
} else {
$return = $basename;
}
if ($pad) {
$return = $return.@str_repeat(" ", ($max-strlen($return)));
}
return $return;
}