diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-02-26 18:08:19 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-02-26 18:08:19 +0000 |
| commit | 85f399bde8f81cc086079fd08d34df516fe892f7 (patch) | |
| tree | 0a180eff0e398c6335ce2be75b85d38bf9ad8c83 /roundcubemail/installer/rcube_install.php | |
| parent | a140dddf5ada9e2a02ae4be76383bf04d6095a16 (diff) | |
Add SMTP test to installer script
git-svn-id: https://svn.roundcube.net/trunk@1142 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/installer/rcube_install.php')
| -rw-r--r-- | roundcubemail/installer/rcube_install.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/roundcubemail/installer/rcube_install.php b/roundcubemail/installer/rcube_install.php index f2ab394a1..8ff220357 100644 --- a/roundcubemail/installer/rcube_install.php +++ b/roundcubemail/installer/rcube_install.php @@ -27,6 +27,7 @@ class rcube_install var $failures = 0; var $config = array(); var $last_error = null; + var $email_pattern = '([a-z0-9][a-z0-9\-\.\+\_]*@[a-z0-9]([a-z0-9\-][.]?)*[a-z0-9])'; /** * Constructor @@ -88,16 +89,17 @@ class rcube_install * Getter for a certain config property * * @param string Property name + * @param string Default value * @return string The property value */ - function getprop($name) + function getprop($name, $default = null) { $value = isset($_REQUEST["_$name"]) ? $_REQUEST["_$name"] : $this->config[$name]; if ($name == 'des_key' && !isset($_REQUEST["_$name"])) $value = self::random_key(24); - return $value; + return $value !== null ? $value : $default; } |
