![]() Mailinglisten-Archive |
Moin, ich nutze f�r ein CMS einen Login �ber pwauth, der also auf die Unix-Accounts zur�ckgreift. MediaWiki lieferte mri folgenden Code: $handle = popen('/usr/local/bin/pwauth', 'w'); if ($handle === FALSE) { die("Error opening pipe to pwauth"); return false; } if (fwrite($handle, "$user\n$password\n") === FALSE) { die("Error writing to pwauth pipe"); return false; } # Is the password valid? $result = pclose( $handle ); if ( $result == 0 ) // password valid Nun frage ich mich aber, auf was f�r Sonderf�lle ich mich in Sachen Escaping einrichten muss. Kann man popen oder pwauth irgendwie manipulieren? Gr��e Nico
php::bar PHP Wiki - Listenarchive