HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: //usr/local/usermin-1.750/cshrc/cshrc-lib.pl
# cshrc-lib.pl

BEGIN { push(@INC, ".."); };
use WebminCore;
&init_config();
&switch_to_remote_user();
&create_user_config_dirs();

if ($remote_user_info[8] =~ /\/(csh|tcsh)$/) {
	@cshrc_files = ( "$remote_user_info[7]/.cshrc",
			 "$remote_user_info[7]/.login" );
	@cshrc_types = ( 0, 1 );
	}
elsif ($remote_user_info[8] =~ /\/bash$/ ||
       &resolve_links($remote_user_info[8]) =~ /\/bash$/) {
	@cshrc_files = ( "$remote_user_info[7]/.bashrc",
			 "$remote_user_info[7]/.profile" );
	@cshrc_types = ( 0, 1 );
	}
else {
	@cshrc_files = ( "$remote_user_info[7]/.profile" );
	@cshrc_types = ( 1 );
	}

1;