Subversion Repositories ALCASAR

Rev

Rev 325 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 325 Rev 1827
Line 125... Line 125...
125
 
125
 
126
// Find a system program.  Do path checking
126
// Find a system program.  Do path checking
127
function find_program ($strProgram) {
127
function find_program ($strProgram) {
128
	global $addpaths;
128
	global $addpaths;
129
	
129
	
130
	$arrPath = array( '/bin', '/sbin', '/usr/bin', '/usr/sbin', '/usr/local/bin', '/usr/local/sbin' );
130
	$arrPath = array( '/bin', '/sbin', '/usr/bin', '/usr/sbin', '/usr/local/bin' );
131
	if( isset( $addpaths ) && is_array( $addpaths ) ) {
131
	if( isset( $addpaths ) && is_array( $addpaths ) ) {
132
		$arrPath = array_merge( $arrPath, $addpaths );
132
		$arrPath = array_merge( $arrPath, $addpaths );
133
	}
133
	}
134
	if ( function_exists( "is_executable" ) ) {
134
	if ( function_exists( "is_executable" ) ) {
135
		foreach ( $arrPath as $strPath ) {
135
		foreach ( $arrPath as $strPath ) {