diff --git a/common_fns.php b/common_fns.php new file mode 100755 index 0000000..a255651 --- /dev/null +++ b/common_fns.php @@ -0,0 +1,27 @@ + $val){ + if(is_array($val)){ + // if menu + $ret .= ''; + } + else{ + $ret .= '
  • '.$name.'
  • '; + } + } + return $ret; +} + +function pprint($obj, $desc = ""){ + echo "
    Debug dump: $desc ";
    +    print_r($obj);
    +    echo '
    '; +} + +function ifsetor(&$check, $alternate = NULL){ + return (isset($check)) ? $check : $alternate; +}