diff --git a/.check_md5.php.swp b/.check_md5.php.swp new file mode 100644 index 0000000..1f9e1a0 Binary files /dev/null and b/.check_md5.php.swp differ diff --git a/check_md5.php b/check_md5.php index 2414590..4289d31 100755 --- a/check_md5.php +++ b/check_md5.php @@ -1,5 +1,9 @@ #!/usr/bin/php5 readPHPArgv(); +$ret = $options->getopt($args, $shortoptions, $longoptions); + +if (PEAR::isError($ret)) { + fwrite(STDERR,$ret->getMessage() . "\n"); + exit ($STATE_UNKNOWN); +} + +$opts = $ret[0]; + +if(sizeof($opts) > 0) +{ + foreach($opts as $o) + { + switch($o[0]) + { + case 'h': + print_help(); + break; + + case 'V': + print_version(); + break; + } + } +} + +$file = 'fil'; +echo md5_file($file); ?> diff --git a/fil b/fil new file mode 100644 index 0000000..603207f --- /dev/null +++ b/fil @@ -0,0 +1 @@ +Hejsan