"Fossies" - the Fresh Open Source Software Archive

Member "absence-v2.1/cgi-bin/addres" (10 Jul 2008, 309 Bytes) of package /linux/www/web-absence-2.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Perl source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/usr/local/bin/perl
    2 
    3 use AbsenceDB;
    4 
    5 if (!@ARGV) {
    6     print "usage: $0 <person-id> <start> <end> <type> <desc>\n";
    7     exit;
    8 }
    9 
   10 #($person_id, $start, $end, $type, $desc) = @ARGV;
   11 
   12 $ret = AbsenceDB::addReservation(@ARGV);
   13 
   14 if (!$ret) {
   15     print "add failed. conflict?\n";
   16 } else {
   17     print "successfully added.\n";
   18 }