/**
  * Get a list of theme subfolders that have style.css files
  *
  */
 function GetThemeColors($dir)
 {
     $subdirs = gpFiles::readDir($dir, 1);
     $colors = array();
     asort($subdirs);
     foreach ($subdirs as $subdir) {
         $css_path = $dir . '/' . $subdir . '/style.css';
         $less_path = $dir . '/' . $subdir . '/style.less';
         if (file_exists($css_path) || file_exists($less_path)) {
             $colors[$subdir] = $subdir;
         }
     }
     return $colors;
 }
 function getPossible()
 {
     global $dataDir, $langmessage;
     $possible = $this->variables;
     //$langDir = $dataDir.'/include/thirdparty/fckeditor/editor/lang'; //fckeditor
     $langDir = $dataDir . '/include/thirdparty/ckeditor_34/lang';
     //ckeditor
     $possible['langeditor'] = gpFiles::readDir($langDir, 'js');
     unset($possible['langeditor']['_languages']);
     $possible['langeditor']['inherit'] = ' ' . $langmessage['default'];
     //want it to be the first in the list
     asort($possible['langeditor']);
     //recaptcha language
     $possible['recaptcha_language'] = array();
     $possible['recaptcha_language']['inherit'] = $langmessage['default'];
     $possible['recaptcha_language']['en'] = 'en';
     $possible['recaptcha_language']['nl'] = 'nl';
     $possible['recaptcha_language']['fr'] = 'fr';
     $possible['recaptcha_language']['de'] = 'de';
     $possible['recaptcha_language']['pt'] = 'pt';
     $possible['recaptcha_language']['ru'] = 'ru';
     $possible['recaptcha_language']['es'] = 'es';
     $possible['recaptcha_language']['tr'] = 'tr';
     //website language
     $possible['language'] = $this->GetPossibleLanguages();
     //jQuery
     $possible['jquery'] = array('local' => $langmessage['None'], 'google' => 'jQuery', 'jquery_ui' => 'jQuery & jQuery UI');
     //tidy
     if (function_exists('tidy_parse_string')) {
         $possible['HTML_Tidy'] = array('off' => $langmessage['Off'], '' => $langmessage['On']);
     } else {
         $possible['HTML_Tidy'] = array('' => 'Unavailable');
     }
     //
     $possible['require_email'] = array('none' => 'None', '' => 'Subject & Message', 'email' => 'Subject, Message & Email');
     //see xoopsmultimailer.php
     $possible['mail_method'] = array('mail' => 'PHP mail()', 'sendmail' => 'sendmail', 'smtp' => 'smtp', 'smtpauth' => 'SMTPAuth');
     gpSettingsOverride('configuration', $possible);
     return $possible;
 }
Esempio n. 3
0
 function GetThemeColors($dir)
 {
     $subdirs = gpFiles::readDir($dir, 1);
     $colors = array();
     asort($subdirs);
     foreach ($subdirs as $subdir) {
         if ($subdir == 'images') {
             continue;
         }
         $colors[$subdir] = $subdir;
     }
     return $colors;
 }
Esempio n. 4
0
 function CleanInstallFolder()
 {
     $addoncode = $this->addon_folder;
     $folders = gpFiles::readDir($addoncode, 1);
     foreach ($folders as $folder) {
         if (!isset($this->config[$folder])) {
             $full_path = $addoncode . '/' . $folder;
             gpFiles::RmAll($full_path);
         }
     }
 }
Esempio n. 5
0
 function GetSubdirs($dir)
 {
     global $config;
     if (is_readable($dir)) {
         return gpFiles::readDir($dir, 1);
     }
     return false;
 }