| | |
| | | while ($file = @readdir ($handle)) { |
| | | if (substr($file, 0, 1) != '.') { |
| | | if(@is_dir(ISPC_THEMES_PATH."/$file")) { |
| | | $themes_list[$file] = $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)) { |
| | | $themes_list[$file] = $file; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | 'default' => '', |
| | | 'separator' => ',', |
| | | 'datasource' => array ( 'type' => 'SQL', |
| | | 'querystring' => 'SELECT client_id,contact_name FROM client WHERE 1 ORDER BY contact_name', |
| | | 'querystring' => 'SELECT client_id,contact_name FROM client WHERE {AUTHSQL} ORDER BY contact_name', |
| | | 'keyfield'=> 'client_id', |
| | | 'valuefield'=> 'contact_name' |
| | | ), |