Changeset 3114 for alternc/trunk
- Timestamp:
- 11/29/11 11:16:36 (18 months ago)
- File:
-
- 1 edited
-
alternc/trunk/bureau/class/m_ftp.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
alternc/trunk/bureau/class/m_ftp.php
r2933 r3114 222 222 } 223 223 } 224 225 $db->query("UPDATE ftpusers SET name='".$prefixe.$login."', password='', encrypted_password= ENCRYPT('$pass'), homedir='/var/alternc/html/$l/$lo/$dir', uid='$cuid' WHERE id='$id';");224 $encrypted_password = crypt($pass,strrev(microtime(true))); 225 $db->query("UPDATE ftpusers SET name='".$prefixe.$login."', password='', encrypted_password='$encrypted_password', homedir='/var/alternc/html/$l/$lo/$dir', uid='$cuid' WHERE id='$id';"); 226 226 } else { 227 227 $db->query("UPDATE ftpusers SET name='".$prefixe.$login."', homedir='/var/alternc/html/$l/$lo/$dir', uid='$cuid' WHERE id='$id';"); … … 299 299 300 300 if ($quota->cancreate("ftp")) { 301 $db->query("INSERT INTO ftpusers (name,password, encrypted_password,homedir,uid) VALUES ('".$prefixe.$login."', '', ENCRYPT('$pass'), '/var/alternc/html/$l/$lo/$dir', '$cuid')"); 301 $encrypted_password = crypt($pass,strrev(microtime(true))); 302 $db->query("INSERT INTO ftpusers (name,password, encrypted_password,homedir,uid) VALUES ('".$prefixe.$login."', '', '$encrypted_password', '/var/alternc/html/$l/$lo/$dir', '$cuid')"); 302 303 return true; 303 304 } else {
Note: See TracChangeset
for help on using the changeset viewer.
