Next | Automated Testing | 4 |
This pattern appears a dozen or two times in acctsrvcs
$syscommand = "$RMFILTER display_filter $websec_token $account $ssn $pennname"; $returncode = &Syscommand(1); unless ($returncode == 0) { &reportError ("Can't display current filtered virus folder.", 0, 0, 0, 101); exit; }
This function runs a Unix command
It has several oddities
The command to run is passed in the global variable $syscommand
Every call acctsrvcs makes to Syscommand has that 1 there
What's that about?
The return value is backwards
It's inherited from a library file
... which loads another library file
... which was written for the Account Management application
Next | Copyright © 2004 Mark Dominus |