/webtrees/resources/views/admin/ |
H A D | tags.phtml | 9 use Fisharebest\Webtrees\Site; alias 70 …'HIDE_NAME_NPFX', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HID… 84 …'HIDE_NAME_SPFX', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HID… 98 …'HIDE_NAME_NSFX', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HID… 110 …'HIDE_NAME_NICK', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HID… 124 …'HIDE_NAME_FONE', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HID… 138 …'HIDE_NAME_ROMN', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HID… 152 …'HIDE_NAME_NOTE', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HID… 166 …'HIDE_NAME_SOUR', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HID… 200 … 'HIDE_PLAC_MAP', 'label' => I18N::translate('hide'), 'checked' => (bool) Site::getPreference('HID… [all …]
|
H A D | site-registration.phtml | 8 use Fisharebest\Webtrees\Site; alias 29 …<?= view('components/select', ['name' => 'WELCOME_TEXT_AUTH_MODE', 'selected' => Site::getPreferen… 41 …ame="WELCOME_TEXT_AUTH_MODE_4" rows="5" dir="auto" maxlength="2000"><?= e(Site::getPreference('WEL… 54 …' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) Site::getPreference('USE… 69 …' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) Site::getPreference('SHO…
|
H A D | site-preferences.phtml | 8 use Fisharebest\Webtrees\Site; alias 54 …<?= view('components/select', ['name' => 'TIMEZONE', 'selected' => Site::getPreference('TIMEZONE')… 68 …<?= view('components/select', ['name' => 'THEME_DIR', 'selected' => Site::getPreference('THEME_DIR… 84 …<option value="<?= $active_locale->languageTag() ?>" <?= Site::getPreference('LANGUAGE') === $acti… 102 …' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) Site::getPreference('ALL…
|
/webtrees/app/Http/RequestHandlers/ |
H A D | EmailPreferencesAction.php | 25 use Fisharebest\Webtrees\Site; alias 74 Site::setPreference('SMTP_ACTIVE', $active); 75 Site::setPreference('SMTP_DISP_NAME', $disp_name); 76 Site::setPreference('SMTP_FROM_NAME', $from_name); 77 Site::setPreference('SMTP_HOST', $host); 78 Site::setPreference('SMTP_PORT', $port); 79 Site::setPreference('SMTP_AUTH', $auth); 80 Site::setPreference('SMTP_AUTH_USER', $auth_user); 81 Site::setPreference('SMTP_SSL', $ssl); 82 Site::setPreference('SMTP_HELO', $helo); [all …]
|
H A D | EmailPreferencesPage.php | 25 use Fisharebest\Webtrees\Site; alias 67 $SMTP_ACTIVE = Site::getPreference('SMTP_ACTIVE'); 68 $SMTP_AUTH = Site::getPreference('SMTP_AUTH'); 69 $SMTP_AUTH_USER = Site::getPreference('SMTP_AUTH_USER'); 70 $SMTP_DISP_NAME = Site::getPreference('SMTP_DISP_NAME'); 71 $SMTP_FROM_NAME = Site::getPreference('SMTP_FROM_NAME'); 72 $SMTP_HELO = Site::getPreference('SMTP_HELO'); 73 $SMTP_HOST = Site::getPreference('SMTP_HOST'); 74 $SMTP_PORT = Site::getPreference('SMTP_PORT'); 75 $SMTP_SSL = Site::getPreference('SMTP_SSL'); [all …]
|
H A D | SiteTagsAction.php | 25 use Fisharebest\Webtrees\Site; alias 50 Site::setPreference('HIDE_' . $setting, (string) $value); 61 Site::setPreference('CUSTOM_FAMILY_TAGS', implode(',', $custom_family_tags)); 62 Site::setPreference('CUSTOM_INDIVIDUAL_TAGS', implode(',', $custom_individual_tags)); 63 Site::setPreference('CUSTOM_GEDCOM_L_TAGS', (string) $custom_gedcom_l_tags); 64 Site::setPreference('CUSTOM_FAM_FACT', (string) $custom_fam_fact); 65 Site::setPreference('CUSTOM_FAM_NCHI', (string) $custom_fam_nchi); 66 Site::setPreference('CUSTOM_RESI_VALUE', (string) $custom_resi_value); 67 Site::setPreference('CUSTOM_TIME_TAGS', (string) $custom_time_tags);
|
H A D | SiteTagsPage.php | 26 use Fisharebest\Webtrees\Site; alias 50 $custom_family_tags = explode(',', Site::getPreference('CUSTOM_FAMILY_TAGS')); 51 $custom_individual_tags = explode(',', Site::getPreference('CUSTOM_INDIVIDUAL_TAGS')); 64 $custom_gedcom_l_tags = (bool) Site::getPreference('CUSTOM_GEDCOM_L_TAGS'); 67 $custom_fam_fact = (bool) Site::getPreference('CUSTOM_FAM_FACT'); 68 $custom_fam_nchi = (bool) Site::getPreference('CUSTOM_FAM_NCHI'); 69 $custom_resi_value = (bool) Site::getPreference('CUSTOM_RESI_VALUE'); 70 $custom_time_tags = (bool) Site::getPreference('CUSTOM_TIME_TAGS');
|
H A D | SitePreferencesAction.php | 24 use Fisharebest\Webtrees\Site; alias 59 Site::setPreference('INDEX_DIRECTORY', $index_directory); 67 Site::setPreference('ALLOW_CHANGE_GEDCOM', (string) $allow_change_gedcom); 68 Site::setPreference('LANGUAGE', $language); 69 Site::setPreference('THEME_DIR', $theme_dir); 70 Site::setPreference('TIMEZONE', $timezone);
|
H A D | LoginPage.php | 25 use Fisharebest\Webtrees\Site; alias 70 $default = Site::getPreference('DEFAULT_GEDCOM'); 80 switch (Site::getPreference('WELCOME_TEXT_AUTH_MODE')) { 92 $welcome = Site::getPreference('WELCOME_TEXT_AUTH_MODE_' . I18N::languageTag()); 96 if (Site::getPreference('USE_REGISTRATION_MODULE') === '1') { 100 $can_register = Site::getPreference('USE_REGISTRATION_MODULE') === '1';
|
H A D | SiteRegistrationAction.php | 24 use Fisharebest\Webtrees\Site; alias 50 Site::setPreference('WELCOME_TEXT_AUTH_MODE', $mode); 51 Site::setPreference('WELCOME_TEXT_AUTH_MODE_' . I18N::languageTag(), $text); 52 Site::setPreference('USE_REGISTRATION_MODULE', (string) $allow_registration); 53 Site::setPreference('SHOW_REGISTER_CAUTION', (string) $show_caution);
|
H A D | RegisterPage.php | 27 use Fisharebest\Webtrees\Site; alias 75 $show_caution = Site::getPreference('SHOW_REGISTER_CAUTION') === '1'; 99 if (Site::getPreference('USE_REGISTRATION_MODULE') !== '1') {
|
/webtrees/app/Services/ |
H A D | EmailService.php | 26 use Fisharebest\Webtrees\Site; alias 111 $dkim_domain = Site::getPreference('DKIM_DOMAIN'); 112 $dkim_selector = Site::getPreference('DKIM_SELECTOR'); 113 $dkim_key = Site::getPreference('DKIM_KEY'); 137 switch (Site::getPreference('SMTP_ACTIVE')) { 147 $smtp_helo = Site::getPreference('SMTP_HELO'); 148 $smtp_host = Site::getPreference('SMTP_HOST'); 149 $smtp_port = (int) Site::getPreference('SMTP_PORT'); 150 $smtp_auth = (bool) Site::getPreference('SMTP_AUTH'); 151 $smtp_user = Site::getPreference('SMTP_AUTH_USER'); [all …]
|
H A D | UpgradeService.php | 28 use Fisharebest\Webtrees\Site; alias 274 return Site::getPreference('LATEST_WT_VERSION_ERROR'); 284 $latest_version_wt_timestamp = (int) Site::getPreference('LATEST_WT_VERSION_TIMESTAMP'); 336 $last_update_timestamp = (int) Site::getPreference('LATEST_WT_VERSION_TIMESTAMP'); 341 Site::setPreference('LATEST_WT_VERSION_TIMESTAMP', (string) $current_timestamp); 353 Site::setPreference('LATEST_WT_VERSION', $response->getBody()->getContents()); 354 Site::setPreference('LATEST_WT_VERSION_ERROR', ''); 356 … Site::setPreference('LATEST_WT_VERSION_ERROR', 'HTTP' . $response->getStatusCode()); 361 Site::setPreference('LATEST_WT_VERSION_ERROR', $ex->getMessage()); 365 return Site::getPreference('LATEST_WT_VERSION'); [all …]
|
H A D | MigrationService.php | 27 use Fisharebest\Webtrees\Site; alias 48 $current_version = (int) Site::getPreference($schema_name); 63 Site::setPreference($schema_name, (string) $current_version);
|
H A D | RateLimitService.php | 24 use Fisharebest\Webtrees\Site; alias 61 $history = Site::getPreference($limit); 65 Site::setPreference($limit, $history);
|
/webtrees/tests/app/ |
H A D | SiteTest.php | 33 self::assertSame('', Site::getPreference('no-such-setting')); 34 self::assertSame('UTC', Site::getPreference('TIMEZONE')); 39 Site::setPreference('setting', 'foo'); 41 self::assertSame('foo', Site::getPreference('setting')); 49 Site::setPreference('setting', $too_long); 51 self::assertSame($expected, Site::getPreference('setting'));
|
/webtrees/tests/app/Services/ |
H A D | EmailServiceTest.php | 23 use Fisharebest\Webtrees\Site; alias 51 Site::setPreference('SMTP_ACTIVE', 'internal'); 55 Site::setPreference('DKIM_DOMAIN', 'example.com'); 56 Site::setPreference('DKIM_SELECTOR', 'sel'); 57 Site::setPreference('DKIM_KEY', '-----BEGIN RSA PRIVATE KEY-----
|
/webtrees/app/Elements/ |
H A D | FamilyRecord.php | 22 use Fisharebest\Webtrees\Site; alias 64 if (Site::getPreference('HIDE_FAM_RESI') === '1') { 68 if (Site::getPreference('HIDE_FAM_CENS') === '1') {
|
/webtrees/app/Module/ |
H A D | ReviewChangesModule.php | 32 use Fisharebest\Webtrees\Site; alias 113 $last_email_timestamp = (int) Site::getPreference('LAST_CHANGE_EMAIL'); 144 Site::setPreference('LAST_CHANGE_EMAIL', (string) time()); 153 …$last_email_timestamp = Registry::timestampFactory()->make((int) Site::getPreference('LAST_CHANGE_…
|
H A D | GeonamesAutocomplete.php | 26 use Fisharebest\Webtrees\Site; alias 90 $default = Site::getPreference('geonames'); 123 $default = Site::getPreference('geonames');
|
H A D | CheckForNewVersion.php | 27 use Fisharebest\Webtrees\Site; alias 84 $latest_version_email = Site::getPreference('LATEST_WT_VERSION_EMAIL'); 88 Site::setPreference('LATEST_WT_VERSION_EMAIL', $latest_version);
|
H A D | ColorsTheme.php | 26 use Fisharebest\Webtrees\Site; alias 92 Site::setPreference('DEFAULT_COLOR_PALETTE', $palette); 204 $palette = Site::getPreference('DEFAULT_COLOR_PALETTE');
|
/webtrees/app/Factories/ |
H A D | FilesystemFactory.php | 23 use Fisharebest\Webtrees\Site; alias 49 $adapter = new LocalFilesystemAdapter(Site::getPreference('INDEX_DIRECTORY')); 65 return realpath(Site::getPreference('INDEX_DIRECTORY')) . DIRECTORY_SEPARATOR;
|
/webtrees/app/ |
H A D | MediaFile.php | 236 $glide_key = Site::getPreference('glide-key'); 240 Site::setPreference('glide-key', $glide_key); 399 $glide_key = Site::getPreference('glide-key'); 403 Site::setPreference('glide-key', $glide_key);
|
/webtrees/app/Http/Middleware/ |
H A D | HandleExceptions.php | 29 use Fisharebest\Webtrees\Site; alias 155 $default = Site::getPreference('DEFAULT_GEDCOM'); 187 $default = Site::getPreference('DEFAULT_GEDCOM');
|