I am not sure where to put this but if you want to
add multiple users and let them have their own sub
directory to upload files and be only allowed to
access that particular folder and have a root
username for yourself ie
/usr/home/root/public_html/my_users/iamuser
and for another user
/usr/home/root/public_html/my_users/noname
and for yourself with admin access
/usr/home/root/public_html
you can do this by editing a few codes in the
ffileman_config.cgi and ffileman_subs.cgi
inside the ffileman_config.cgi edit this code below
the admin section
# ---
# ADMIN
# ---
$admin_kullanici = "admin";
$admin_sifre = "password";
@this_users = ("iamuser", "noname", "someotheruser");
@this_pass =
("iamuser_password", "noname_pass", "someotheruser_pas
s");
now inside the ffileman_subs.cgi file inside the
sifre_kontrol subroutine edit this
sub sifre_kontrol
{
if( $FORM{'crypted'} == 1 ){
{'kullanici'}","FF");
$FORM{'sifre'} = crypt("$FORM{'sifre'}","FF");
}
if ( ($FORM{'kullanici'} eq "$admin_kullanici") &&
($FORM{'sifre'} eq crypt("$admin_sifre","FF")) ) {
# &sifre_giris("$TEXT{'yanlissifre'}");
} elsif( ($FORM{'kullanici'} ne "$admin_kullanici")
|| ($FORM{'sifre'} ne crypt("$admin_sifre","FF")) ) {
for (my $imi = 0; $imi <= $#this_users; $imi++) {
if (($FORM{'kullanici'} eq $this_users[$imi]) &&
($FORM{'sifre'} eq crypt("$this_pass[$imi]","FF")) ) {
$ana_dizin = $ana_dizin."/school/$FORM
{'kullanici'}"; # edit this line to your sub
directories
last;
} if ($imi == $#this_users) { &sifre_giris("$TEXT
{'yanlissifre'}"); last; }
}
}
}
now everytime you want to add users you can do it
manullay by editing the config file and adding the
users at the end of the array @this_users and
@this_pass and ALSO YOU WILL NEED TO CREATE THE SUB
DIRECTORIES FOR YOUR USERS YOURSELF and ALSO edit the
line above where it says edit this line to your sub
directories
need any help contact me at playjam99@hotmail.com
hope this helps