User Tools

Site Tools


de:start:howto:package_external_scripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
de:start:howto:package_external_scripts [2012/03/04 14:33]
TheCry
de:start:howto:package_external_scripts [2012/03/04 14:42] (current)
TheCry
Line 69: Line 69:
 Beispiel für den Aufruf aus dem [[de:​start:​howto:​package_installation_script|Paket Installations Skript]]: Beispiel für den Aufruf aus dem [[de:​start:​howto:​package_installation_script|Paket Installations Skript]]:
 <​code>​my $securekey = `$main::​cfg{'​CMD_PHP'​} -n ./​securekey.php`;</​code>​ <​code>​my $securekey = `$main::​cfg{'​CMD_PHP'​} -n ./​securekey.php`;</​code>​
 +
 +====== mail_hash.php (phpBB 3.0.10) ======
 +Bei phpBB werden die Emailadressen in der Datenbank gehasht. Dazu nutzen wir folgendes Skript:
 +<​code><?​php
 +$mail = $argv[1];
 +function email_hash($email) {
 +    return sprintf('​%u',​ crc32(strtolower($email))) . strlen($email);​
 +}
 +print email_hash($mail);​
 +?></​code>​
 +Beispiel für den Aufruf aus dem [[de:​start:​howto:​package_installation_script|Paket Installations Skript]]:
 +<​code>​my $mail_hash = `$main::​cfg{'​CMD_PHP'​} -n ./​mail_hash.php $sw_install_email`;</​code>​
 +
/var/www/virtual/i-mscp.net/wiki/htdocs/data/pages/de/start/howto/package_external_scripts.txt · Last modified: 2012/03/04 14:42 by TheCry