Add, delete FTP accounts and change the FTP password function with PHP

zhaozj2021-02-16  46

I don't know if there is an interface between Serv-U ftp. This type of information, because I don't know how the Serv-U is encrypted, there is no way to use the encrypted password, if someone knows the algorithm, please tell me a $ filepath is serv- U The installation address, $ ftppath is the main mode you want to open FTP's folder address to read the servudaemon.ini file as an array, then operate an array element to the purpose of modifying the configuration file. Beginning PHP, not writing Class, prawn A lot of points

// User detailed configuration $ config = "/ n [user = $ user | 1] password = $ pwshomedir = g: / my documents / http / Webspace //" = 1diskquota = 1 | 10240000 | 0MAXUSERSERSLOGINPERIP = 1SpeedLimitUp = 51200SpeedLimitDown = 51200TimeOut = 60SessionTimeOut = 600MaxNrUsers = 1Access1 = G: / My Documents / http / webspace //".$ user "| RWAMLCDP"; $ inifile = fopen ($ filepath, "a"); // open. New file pointer FPUTS ($ INIFILE, $ config) OR DIE ("Unwind file"); // Add new user profile Fclose ($ inIfile); // Close the file pointer MKDIR ($ ftppath. "// ". $ user); // Establish FTP folder} Function Change_PWS ($ USER, $ PWS) // Change Password {Global $ FilePath; $ servu_config = file ($ filepath); DEL_NL ($ servu_config); // Remove Dark line for ($ I = 0; $ I

转载请注明原文地址:https://www.9cbs.com/read-24382.html

New Post(0)