mcramer
2012-11-02 061c5ea8465797d89a1259db50f43ebf53e96042
interface/web/client/form/client.tform.php
@@ -73,7 +73,7 @@
while ($file = @readdir ($handle)) { 
    if (substr($file, 0, 1) != '.') {
        if(@is_dir(ISPC_THEMES_PATH."/$file")) {
         if($file == 'default' || (@file_exists(ISPC_THEMES_PATH."/$file/ISPC_VERSION") && trim(@file_get_contents(ISPC_THEMES_PATH."/$file/ISPC_VERSION")) == ISPC_APP_VERSION)) {
         if(!file_exists(ISPC_THEMES_PATH."/$file/ispconfig_version") || (@file_exists(ISPC_THEMES_PATH."/$file/ispconfig_version") && trim(@file_get_contents(ISPC_THEMES_PATH."/$file/ispconfig_version")) == ISPC_APP_VERSION)) {
                $themes_list[$file] = $file;
            }
        }
@@ -118,6 +118,10 @@
      'customer_no' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'validators'   => array (    0 => array (   'type'   => 'UNIQUE',
                                          'errmsg'=> 'customer_no_error_unique',
                                          'allowempty' => 'y'),
                           ),
         'default'   => '',
         'value'      => '',
         'separator'   => '',
@@ -292,6 +296,10 @@
                                  2 => array( 'event' => 'SAVE',
                                              'type' => 'TOLOWER')
                                ),
         'validators'   => array (    0 => array (   'type'   => 'REGEX',
                                          'regex' => '/^(\w+[\w\.\-\+]*\w{0,}@\w+[\w.-]*\.[a-z\-]{2,10}){0,1}$/i',
                                          'errmsg'=> 'email_error_isemail'),
                           ),
         'default'   => '',
         'value'      => '',
         'separator'   => '',