id"; $db_results = mysql_query( $sql, dbh() ); exit; /*! @function usage() @discussion echo the help for this script */ function usage( ) { $text = _( " ************* WARNING ************* This script will move, and potentially delete uploaded files. ************* WARNING ************* All files marked for add will be moved to the upload directory. All files marked for deletion will be deleted. This script must be run as a user with sufficient rights to perform the above two functions. \n" ); cli_out( $text, 1 ); $text = _( "Continue? (Y/N):\t" ); cli_out( $text, 1 ); // grab a character ignoring whitespace do { $input= fgetc( STDIN ); } while ( trim( $input ) == '' ); if( $input != 'Y' ) { exit; } } // usage() /*! @function cli_out() @discussion util for error formatting @param $text the message to be output @param $mode to STDERR (0) or STDOUT (1, default) */ function cli_out( $text, $mode = 1 ) { switch( $mode ) { case 0: $dest = STDERR; $pre = _( "Error: " ); $post = _( "!\n" ); break; case 1: default: $dest = STDOUT; $pre = ""; $post = ""; } fwrite( $dest, $pre . $text . $post ); } // error_out ?>