mazay / pure-ftpd-webui Goto Github PK
View Code? Open in Web Editor NEWPure-FTPd WebUI
License: Other
Pure-FTPd WebUI
License: Other
Greetings!
index.php, which resembles the "users activity monitor" page uses "sudo /etc/init.d/pure-ftpd-mysql status" shell_exec to get array of uesrs. It's not only bad idea to use sudo, but this also returns only status of service, not an active connections list. Is it me or this is underwritten?
$result = shell_exec("sudo $pureftpd_init_script_path status");
$array = explode("\n", $result);
foreach ($array as $users) {
if (($users != "") and (substr($users, 0, 3) != "+--") and (substr($users, 2, 3) != "PID")) {
list ($tmp, $pid, $user, $speed, $stat, $file) = explode("|", $users);
echo(" <tr>
<td class='center'>$user</td>
<td class='center'>$speed</td>
<td class='center'>$stat</td>
<td>$file</td>
</tr>");}}
in the current (2013/12) version of debian wheezy, pure-ftpd uses the "users" as the default table for the selecting the credentials. Also default it awaits a crypt encoded password and not md5.
Its worth mentioning in your README.
thx for your effort in writing this.
Thomas
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead
Hi,
I found some coding problems from pure-ftpd-webuis code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.