/webtrees/ |
H A D | composer.lock | 4 … "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", 7 "content-hash": "8213c2c8a51ced5b47ee22ffd4366c47", 11 "version": "3.3.0", 24 "php": ">=5.5.0", 25 "psr/http-message": "~1.0", 28 "require-dev": { 30 "yoast/phpunit-polyfills": "~1.0" 34 "psr-4": { 38 "notification-url": "https://packagist.org/downloads/", 48 "description": "Powerful, flexible web routing for PSR-7 requests.", [all …]
|
H A D | README.md | 1 ![Latest version](https://img.shields.io/github/v/release/fisharebest/webtrees?sort=semver) 5 …e.webtrees.net/widgets/webtrees/-/webtrees-22/svg-badge.svg)](https://weblate.iet.open.ac.uk/proje… 6 … Code Quality](https://scrutinizer-ci.com/g/fisharebest/webtrees/badges/quality-score.png?b=main)]… 9 # webtrees - online collaborative genealogy 14 * [Coding styles and standards](#coding-styles-and-standards) 16 * [System requirements](#system-requirements) 17 * [Internet browser compatibility](#browser-compatibility) 20 * [Building and developing](#building-and-developing) 21 * [Gedcom (family tree) files](#gedcom-family-tree-files) 24 * [Restore from Backup](#restore-from-backup) [all …]
|
H A D | CONTRIBUTING.md | 12 * For the current version (2.1), use the `main` branch 16 Before submitting a pull request make sure you have [tested the code](#how-to-test) 17 and [followed the coding conventions](#coding-conventions). 19 Please read more about [setting up your environment](#how-to-setup-a-development-environment) for d… 35 * `git` - to fetch the latest development code, merge changes, create pull requests, etc. 36 * [`composer`](https://getcomposer.org) - to install PHP dependencies, build releases, and run test… 37 * [`npm`](https://nodejs.org/en/download/package-manager) - to install CSS/JS dependencies and crea… 48 If you are only interested in the latest version of the code, you can use a 51 Use `git clone --depth 1 https://github.com/fisharebest/webtrees`. 56 If not, you'll need to replace `composer` with `php /path/to/your/copy/of/composer.phar`. [all …]
|
H A D | composer.json | 8 "license": "GPL-3.0-or-later", 10 "psr-4": { 14 "app/Helpers/functions.php" 17 "autoload-dev": { 19 "tests/TestCase.php", 20 "tests/MockGlobalFunctions.php", 21 "tests/app/Elements/AbstractElementTestCase.php" 26 "php": "8.3.0" string 28 "sort-packages": true, 29 "process-timeout": 3600 [all …]
|
/webtrees/app/Services/ |
H A D | ServerCheckService.php | 1 <?php 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 52 private const string PHP_SUPPORT_URL = 'https://www.php.net/supported-versions.php'; 55 '8.1' => '2025-12-31', 56 '8.2' => '2026-12-31', 57 '8.3' => '2027-12-31', 58 '8.4' => '2028-12-31', 74 $this->databaseDriverErrors($driver), 75 $this->checkPhpExtension('mbstring'), [all …]
|
H A D | UpgradeService.php | 1 <?php 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 79 private const string UPDATE_URL = 'https://dev.webtrees.net/build/latest-version.txt'; 91 $this->timeout_service = $timeout_service; 104 // The Flysystem ZIP archive adapter is painfully slow, so use the native PHP library. 107 if ($zip->open($zip_file) === true) { 108 $zip->extractTo($target_folder); 109 $zip->close(); 129 $files = $zip_filesystem->listContents('', FilesystemReader::LIST_DEEP) [all …]
|
H A D | HousekeepingService.php | 1 <?php 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 38 // git diff 1.7.9..master --name-status | grep ^D 41 'themechange.php', 43 'addremotelink.php', 44 'addsearchlink.php', 45 'client.php', 46 'dir_editor.php', 47 'editconfig_gedcom.php', [all …]
|
/webtrees/.github/workflows/ |
H A D | phpunit.yaml | 8 runs-on: ${{ matrix.operating-system }} 9 name: Testing PHP ${{ matrix.php-version }} on ${{ matrix.operating-system }} 13 operating-system: ['ubuntu-latest'] 14 php-version: ['8.3', '8.4'] 15 fail-fast: false 18 - uses: shivammathur/setup-php@master 20 php-version: ${{ matrix.php-version }} 21 ini-file: 'development' 25 - uses: actions/checkout@v4 27 - run: composer validate [all …]
|
H A D | phpcs.yaml | 8 runs-on: ${{ matrix.operating-system }} 9 name: PHP/PHTML/CSS 13 operating-system: ['ubuntu-latest'] 14 php-version: ['8.3', '8.4'] 15 fail-fast: false 18 - uses: shivammathur/setup-php@master 20 php-version: ${{ matrix.php-version }} 21 ini-file: 'development' 23 - uses: actions/checkout@v4 25 - run: composer validate [all …]
|
H A D | phpstan.yaml | 8 runs-on: ${{ matrix.operating-system }} 13 operating-system: ['ubuntu-latest'] 14 php-version: ['8.3', '8.4'] 15 fail-fast: false 18 - uses: shivammathur/setup-php@v2 20 php-version: ${{ matrix.php-version }} 21 ini-file: 'development' 23 - uses: actions/checkout@v4 25 - run: composer validate 27 - run: composer global config --no-plugins allow-plugins.phpstan/extension-installer true [all …]
|
/webtrees/app/Module/ |
H A D | RedirectLegacyUrlsModule.php | 1 <?php 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 56 * Class RedirectLegacyUrlsModule - rewrite URLs from phpGedView and webtrees 1.x 67 $router_container = Registry::container()->get(RouterContainer::class); 68 $router = $router_container->getMap(); 71 $router->get(RedirectAncestryPhp::class, '/ancestry.php', RedirectAncestryPhp::class); 72 $router->get(RedirectBranchesPhp::class, '/branches.php', RedirectBranchesPhp::class); 73 $router->get(RedirectCalendarPhp::class, '/calendar.php', RedirectCalendarPhp::class); 74 $router->get(RedirectCompactPhp::class, '/compact.php', RedirectCompactPhp::class); [all …]
|
H A D | CheckForNewVersion.php | 1 <?php 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 37 * Middleware to check if a new version of webtrees is available. 54 $this->email_service = $email_service; 55 $this->upgrade_service = $upgrade_service; 56 $this->user_service = $user_service; 66 return I18N::translate('Check for new version'); 82 if ($this->upgrade_service->isUpgradeAvailable()) { 83 $latest_version = $this->upgrade_service->latestVersion(); [all …]
|
H A D | ModuleCustomTrait.php | 1 <?php 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 37 * Trait ModuleCustomTrait - default implementation of ModuleCustomInterface 66 * The version of this module. 76 * A URL that will provide the latest version of this module. 86 * Fetch the latest version of this module. 93 if ($this->customModuleLatestVersionUrl() === '') { 94 return $this->customModuleVersion(); 97 …return Registry::cache()->file()->remember($this->name() . '-latest-version', function (): string { [all …]
|
/webtrees/resources/css/ |
H A D | administration.css | 6 * the Free Software Foundation, either version 3 of the License, or 7 * (at your option) any later version. 19 @import "_mime-type-icons.css"; 22 --link-color-hover: #0a58ca; 23 --link-color: #0d6efd; 24 --link-decoration-hover: underline; 25 --link-decoration: none; 30 font-size: 2rem; 33 font-size: 1.75rem; 36 font-size: 1.5rem; [all …]
|
/webtrees/app/ |
H A D | Webtrees.php | 1 <?php 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 110 public const string CONFIG_FILE = self::DATA_DIR . 'config.ini.php'; 122 // We want to know about all PHP errors during development, and fewer in production. 134 // Required version of database tables/columns/indexes/etc. 137 // e.g. "-dev", "-alpha", "-beta", etc. 138 public const string STABILITY = '-dev'; 140 // Version number. 141 public const string VERSION = '2.2.1' . self::STABILITY; [all …]
|
/webtrees/app/Statistics/Repository/ |
H A D | GedcomRepository.php | 1 <?php 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 48 $this->tree = $tree; 59 $version = ''; 62 $head = Registry::headerFactory()->make('HEAD', $this->tree); 65 $sour = $head->facts(['SOUR'])->first(); 68 $source = $sour->value(); 69 $title = $sour->attribute('NAME'); 70 $version = $sour->attribute('VERS'); [all …]
|
H A D | HitCountRepository.php | 1 <?php 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 46 $this->tree = $tree; 47 $this->user_service = $user_service; 61 // index.php?context=gedcom 62 $page_name = 'index.php'; 63 $page_parameter = 'gedcom:' . $this->tree->id(); 64 } elseif ($page_name === 'index.php') { 65 // index.php?context=user [all …]
|
/webtrees/app/Exceptions/ |
H A D | FileUploadException.php | 1 <?php 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 53 switch ($uploaded_file->getError()) { 60 … // I18N: PHP internal error message - php.net/manual/en/features.file-upload.errors.php 65 … // I18N: PHP internal error message - php.net/manual/en/features.file-upload.errors.php 70 … // I18N: PHP internal error message - php.net/manual/en/features.file-upload.errors.php 75 … // I18N: PHP internal error message - php.net/manual/en/features.file-upload.errors.php 76 $message = I18N::translate('The PHP temporary folder is missing.'); 80 … // I18N: PHP internal error message - php.net/manual/en/features.file-upload.errors.php [all …]
|
/webtrees/resources/views/modules/sitemap/ |
H A D | sitemap-xsl.phtml | 1 <<?php /* Beware short open tags in PHP <8.0 */ ?>?xml version="1.0" encoding="UTF-8"?> 2 <xsl:stylesheet version="2.0" 3 xmlns:html="http://www.w3.org/TR/REC-html40" 4 xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" 7 <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/> 9 <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> 12 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 20 …This XML Sitemap Index file contains <xsl:value-of select="count(sitemap:sitemapindex/sitemap:site… 22 <table class="table table-sm table-bordered table-striped table-hover"> 30 <xsl:for-each select="sitemap:sitemapindex/sitemap:sitemap"> [all …]
|
/webtrees/app/Schema/ |
H A D | Migration40.php | 1 <?php 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 26 * Upgrade the database schema from version 40 to version 41. 35 if (!DB::schema()->hasTable('news')) { 36 DB::schema()->create('news', static function (Blueprint $table): void { 37 $table->integer('news_id', true); 38 $table->integer('user_id')->nullable(); 39 $table->integer('gedcom_id')->nullable(); 40 $table->string('subject', 255); [all …]
|
H A D | Migration39.php | 1 <?php 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 26 * Upgrade the database schema from version 39 to version 40. 35 if (!DB::schema()->hasTable('favorite')) { 36 DB::schema()->create('favorite', static function (Blueprint $table): void { 37 $table->integer('favorite_id', true); 38 $table->integer('user_id')->nullable(); 39 $table->integer('gedcom_id'); 40 $table->string('xref', 20)->nullable(); [all …]
|
H A D | Migration42.php | 1 <?php 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 34 * Upgrade the database schema from version 42 to version 43. 52 $data = DB::table('module_privacy')->get(); 54 DB::schema()->drop('module_privacy'); 56 DB::schema()->create('module_privacy', static function (Blueprint $table): void { 57 $table->increments('id'); 58 $table->string('module_name', 32); 59 $table->integer('gedcom_id'); [all …]
|
H A D | Migration43.php | 1 <?php 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 25 * Upgrade the database schema from version 43 to version 44. 31 // Language was previously a tree-setting. 33 ->where('setting_name', '=', 'LANGUAGE') 34 ->where('gedcom_id', '>', 0) 35 ->value('setting_value'); 37 // Now it is a site-setting. 38 DB::table('site_setting')->updateOrInsert([ [all …]
|
H A D | Migration37.php | 1 <?php 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 28 * Upgrade the database schema from version 37 to version 38. 35 DB::schema()->dropIfExists('site_access_rule'); 36 DB::schema()->dropIfExists('next_id'); 40 if (!DB::schema()->hasTable('media_file')) { 41 DB::schema()->create('media_file', static function (Blueprint $table): void { 42 $table->integer('id', true); 43 $table->string('m_id', 20); [all …]
|
/webtrees/resources/views/admin/ |
H A D | control-panel.phtml | 1 <?php 100 * @var Collection<array-key,int> $families 106 * @var Collection<array-key,int> $individuals 124 * @var Collection<array-key,int> $media 129 * @var Collection<array-key,int> $notes 135 * @var Collection<array-key,int> $repositories 144 * @var Collection<array-key,int> $sources 146 * @var Collection<array-key,int> $submitters 161 <!-- WEBSITE / WEBTREES --> 162 <div class="card mb-4"> [all …]
|