Home
last modified time | relevance | path

Searched full:file (Results 1 – 25 of 294) sorted by relevance

12345678910>>...12

/webtrees/resources/views/modals/
H A Dmedia-file-fields.phtml22 <label class="col-form-label col-sm-2" for="file-location">
23 <?= I18N::translate('Media file') ?>
26 <select class="form-select" id="file-location" name="file_location">
28 <?= I18N::translate('A file on your computer') ?>
32 <?= I18N::translate('A file on the server') ?>
42 <div class="row file-location file-location-upload mb-3 <?= $media_file instanceof MediaFile ? 'd-n…
43 <label class="col-form-label col-sm-2" for="file">
44 <?= I18N::translate('A file on your computer') ?>
47 <input class="form-control" id="file" name="file" type="file">
55 <div class="row file-location file-location-upload mb-3 <?= $media_file instanceof MediaFile && $me…
[all …]
H A Dcreate-media-from-file.phtml13 <div class="modal" id="modal-create-media-from-file">
14 … action="<?= e(route(CreateMediaObjectFromFile::class)) ?>" id="modal-create-media-from-file-form">
15 <input type="hidden" name="action" value="create-media-object-from-file">
26 <label class="col-form-label col-sm-2" for="file">
27 <?= I18N::translate('Media file') ?>
30 … <input type="text" class="form-control" id="file" name="file" value="" readonly>
/webtrees/app/Http/RequestHandlers/
H A DEditMediaFileAction.php45 * Edit a media file.
64 * Save an edited media file.
83 $type = Registry::elementFactory()->make('OBJE:FILE:FORM:TYPE')->canonical($type);
84 $title = Registry::elementFactory()->make('OBJE:FILE:TITL')->canonical($title);
90 // Media file does not exist?
95 // We can edit the file as either a URL or a folder/file
97 $file = $remote;
104 $file = $new_file;
106 $file = $folder . '/' . $new_file;
112 $file = $media_file->filename();
[all …]
H A DManageMediaData.php223 ->map(static fn (string $file): array => (array) $file);
251file" data-file="' . e($tmp) . '" data-url="' . e(route(CreateMediaObjectFromFile::class, ['tree' …
331 * Generate some useful information and links about a media file.
334 * @param string $file
338 private function mediaFileInfo(FilesystemOperator $data_filesystem, string $file): string argument
342 $html .= '<dd>' . e($file) . '</dd>';
345 $file_exists = $data_filesystem->fileExists($file);
352 $size = $data_filesystem->fileSize($file);
357 /* I18N: size of file in KB */
359 $html .= '<dt>' . I18N::translate('File size') . '</dt>';
[all …]
H A DAddMediaFileAction.php36 * Add a new media file to a media object.
55 * Add a media file to an existing media object.
70 $type = Registry::elementFactory()->make('OBJE:FILE:FORM:TYPE')->canonical($type);
71 $title = Registry::elementFactory()->make('OBJE:FILE:TITL')->canonical($title);
73 $file = $this->media_file_service->uploadFile($request);
75 if ($file === '') {
76 FlashMessages::addMessage(I18N::translate('There was an error uploading your file.'));
81 $gedcom = $this->media_file_service->createMediaFileGedcom($file, $type, $title, '');
H A DCreateMediaObjectFromFile.php57 $file = Validator::parsedBody($request)->string('file');
62 $file = Registry::elementFactory()->make('OBJE:FILE')->canonical($file);
64 $type = Registry::elementFactory()->make('OBJE:FILE:FORM:TYPE')->canonical($type);
65 $title = Registry::elementFactory()->make('OBJE:FILE:TITL')->canonical($title);
67 …$gedcom = "0 @@ OBJE\n" . $this->media_file_service->createMediaFileGedcom($file, $type, $title, $…
H A DCreateMediaObjectAction.php71 $type = Registry::elementFactory()->make('OBJE:FILE:FORM:TYPE')->canonical($type);
72 $title = Registry::elementFactory()->make('OBJE:FILE:TITL')->canonical($title);
76 $file = $this->media_file_service->uploadFile($request);
87 if ($file === '') {
88 …se(['error_message' => I18N::translate('There was an error uploading your file.')], StatusCodeInte…
91 …$gedcom = "0 @@ OBJE\n" . $this->media_file_service->createMediaFileGedcom($file, $type, $title, $…
H A DAddMediaFileModal.php37 * Add a new media file to a media object.
52 * Add a media file to an existing media object.
68 'title' => I18N::translate('Add a media file'),
74 $media_types = Registry::elementFactory()->make('OBJE:FILE:FORM:TYPE')->values();
77 return response(view('modals/add-media-file', [
H A DEditMediaFileModal.php38 * Edit a media file.
53 * Edit an existing media file.
70 'title' => I18N::translate('Edit a media file'),
77 $media_types = Registry::elementFactory()->make('OBJE:FILE:FORM:TYPE')->values();
79 return response(view('modals/edit-media-file', [
H A DUploadMediaAction.php121 …FlashMessages::addMessage(I18N::translate('The file %s already exists. Use another filename.', $pa…
125 // Now copy the file to the correct location.
128 …FlashMessages::addMessage(I18N::translate('The file %s has been uploaded.', Html::filename($path))…
129 Log::addMediaLog('Media file ' . $path . ' uploaded');
131 …FlashMessages::addMessage(I18N::translate('There was an error uploading your file.') . '<br>' . e(…
H A DDeletePath.php40 * Delete a file or folder from the data filesystem.
74 …FlashMessages::addMessage(I18N::translate('The file %s could not be deleted.', e($path)), 'danger'…
89 … FlashMessages::addMessage(I18N::translate('The file %s has been deleted.', e($path)), 'success');
91 …FlashMessages::addMessage(I18N::translate('The file %s could not be deleted.', e($path)), 'danger'…
/webtrees/app/Exceptions/
H A DFileUploadException.php38 * Exception thrown when a file upload fails.
48 parent::__construct(I18N::translate('No file was received. Please try again.'));
55 $message = I18N::translate('File successfully uploaded');
60 … // I18N: PHP internal error message - php.net/manual/en/features.file-upload.errors.php
61 $message = I18N::translate('The uploaded file exceeds the allowed size.');
65 … // I18N: PHP internal error message - php.net/manual/en/features.file-upload.errors.php
66 … $message = I18N::translate('The file was only partially uploaded. Please try again.');
70 … // I18N: PHP internal error message - php.net/manual/en/features.file-upload.errors.php
71 $message = I18N::translate('No file was received. Please try again.');
75 … // I18N: PHP internal error message - php.net/manual/en/features.file-upload.errors.php
[all …]
/webtrees/resources/views/admin/
H A Dtrees-import.phtml30 …e all the genealogy data from “%s” and replace it with data from a GEDCOM file.', e($tree->title()…
33 … checkGedcomImportForm('<?= e(I18N::translate('You have selected a GEDCOM file with a different na…
36 <h2><?= I18N::translate('Select a GEDCOM file to import') ?></h2>
41 <?= I18N::translate('A file on your computer') ?>
44 <input id="import-client-file" type="file" name="client_file" class="form-control">
51 <?= I18N::translate('A file on the server') ?>
59 <select name="server_file" class="form-select" dir="ltr" id="import-server-file">
99 …EDCOM file using genealogy software that deletes media objects, then select this option to merge t…
114 …<?= I18N::translate('If you created this GEDCOM file using genealogy software that omits spaces wh…
122 …<?= /* I18N: A media path (e.g. c:\aaa\bbb\ccc\ddd.jpeg) in a GEDCOM file */ I18N::translate('Remo…
[all …]
H A Dmap-import-form.phtml27 <?= I18N::translate('A file on your computer') ?>
30 <input id="import-client-file" type="file" name="client_file" class="form-control">
37 <?= I18N::translate('A file on the server') ?>
45 <select name="server_file" class="form-select" dir="ltr" id="import-server-file">
47 <?php foreach ($files as $file) : ?>
48 <option value="<?= e($file) ?>">
49 <?= e($file) ?>
86 document.getElementById('import-client-file').addEventListener('focus', function () {
90 document.getElementById('import-server-file').addEventListener('focus', function () {
/webtrees/app/Services/
H A DMediaFileService.php82 * What is the largest file a user may upload?
151 * Store an uploaded file (or URL), either to be added to a media object
156 * @return string The value to be stored in the 'FILE' field of the media object.
188 $uploaded_file = $request->getUploadedFiles()['file'] ?? null;
197 $file = $new_file;
199 $file = $uploaded_file->getClientFilename();
209 // Generate a unique name for the file?
210 if ($auto === '1' || $tree->mediaFilesystem()->fileExists($folder . $file)) {
213 $file = sha1((string) $uploaded_file->getStream()) . '.' . $extension;
217 … $tree->mediaFilesystem()->writeStream($folder . $file, $uploaded_file->getStream()->detach());
[all …]
/webtrees/app/Module/
H A DModuleCustomTrait.php97 …return Registry::cache()->file()->remember($this->name() . '-latest-version', function (): string {
152 $file = $this->resourcesFolder() . $asset;
154 // Add the file's modification time to the URL, so we can set long expiry cache headers.
155 $hash = filemtime($file);
166 * Serve a CSS/JS file.
174 // The file being requested. e.g. "css/theme.css"
182 // Find the file for this asset.
184 // e.g. $file = view(....)
185 $file = $this->resourcesFolder() . $asset;
187 if (!file_exists($file)) {
[all …]
/webtrees/tests/data/
H A Ddemo.ged12 1 FILE demo.ged
1876 1 FILE myth/Aion_mosaic_Glyptothek_Munich_W504.jpg
1884 1 FILE Elizabeth_II_greets_NASA_GSFC_employees,_May_8,_2007_edit.jpg
1892 1 FILE Queen_Elizabeth_II_1929.jpg
1900 1 FILE Philip_Alexius_de_Laszlo-Princess_Elizabeth_of_York,_Currently_Queen_Elizabeth_II_of_England…
1908 1 FILE Elizabeth_and_Philip_1953.jpg
1916 1 FILE Mary,_Princess_Royal_and_Countess_of_Harewood.jpg
1924 1 FILE St_Pauls_Cathedral_in_1896.JPG
1932 1 FILE Международная_Леонардо-премия_18.jpg
1939 1 FILE Camilla_Parker_Bowles_before_wedding_of_Prince_William.jpg
[all …]
/webtrees/
H A DREADME.md112 1. Download the .ZIP file for latest stable version from [github.com](https://github.com/fisharebes…
120 If you have a GEDCOM file, you can import it into the tree. If not, just start
150 file **data/offline.txt**. While this file exists, visitors will see a
152 4. Unzip the .ZIP file, and upload the files to your web server, overwriting the existing files.
153 5. Delete the file **data/offline.txt**.
181 You will need to re-run the second of these any time you modify the file `webtrees.js`.
185 When you import a family tree (GEDCOM) file in **webtrees** the
186 data from the file is transferred to the database tables. The file itself
189 will not change this file
192 necessary to delete your GEDCOM file or database from **webtrees** and start
[all …]
/webtrees/public/ckeditor-4.15.1-custom/skins/moono/
H A Dreadme.md24 - **editor.css**: the main CSS file. It's simply loading several other files, for easier maintenanc…
25 - **mainui.css**: the file contains styles of entire editor outline structures,
26 - **toolbar.css**: the file contains styles of the editor toolbar space (top),
27 - **richcombo.css**: the file contains styles of the rich combo ui elements on toolbar,
28 - **panel.css**: the file contains styles of the rich combo drop-down, it's not loaded
30 - **elementspath.css**: the file contains styles of the editor elements path bar (bottom),
31 - **menu.css**: the file contains styles of all editor menus including context menu and button drop…
34 - **reset.css**: the file defines the basis of style resets among all editor UI spaces,
35 - **preset.css**: the file defines the default styles of some UI elements reflecting the skin prefe…
/webtrees/resources/views/
H A Dmedia-page-details.phtml27 <?= I18N::translate('Media file') ?>
52 …<?= Registry::elementFactory()->make('OBJE:FILE')->labelValue($media_file->filename(), $record->tr…
56 … <?= I18N::translate('The file “%s” does not exist.', e($media_file->filename())) ?>
59 …<?= Registry::elementFactory()->make('OBJE:FILE')->labelValue($media_file->filename(), $record->tr…
62 …<?= Registry::elementFactory()->make('OBJE:FILE:TITL')->labelValue($media_file->title(), $record->…
63 …<?= Registry::elementFactory()->make('OBJE:FILE:FORM:TYPE')->labelValue($media_file->type(), $reco…
64 …<?= Registry::elementFactory()->make('OBJE:FILE:FORM')->labelValue($media_file->format(), $record-…
83 <?= I18N::translate('Download file') ?>
92 …<?php foreach ($record->facts()->filter(fn (Fact $fact): bool => $fact->tag() !== 'OBJE:FILE') as …
/webtrees/resources/views/modules/sitemap/
H A Dsitemap-index-xml.phtml36 …<?= e(route('sitemap-file', ['tree' => $tree_name, 'type' => Family::RECORD_TYPE, 'page' => $i])) …
49 …<?= e(route('sitemap-file', ['tree' => $tree_name, 'type' => Individual::RECORD_TYPE, 'page' => $i…
62 …<?= e(route('sitemap-file', ['tree' => $tree_name, 'type' => Media::RECORD_TYPE, 'page' => $i])) ?>
75 … <?= e(route('sitemap-file', ['tree' => $tree_name, 'type' => Note::RECORD_TYPE, 'page' => $i])) ?>
88 …<?= e(route('sitemap-file', ['tree' => $tree_name, 'type' => Repository::RECORD_TYPE, 'page' => $i…
101 …<?= e(route('sitemap-file', ['tree' => $tree_name, 'type' => Source::RECORD_TYPE, 'page' => $i])) …
114 …<?= e(route('sitemap-file', ['tree' => $tree_name, 'type' => Submitter::RECORD_TYPE, 'page' => $i]…
/webtrees/app/
H A DMediaFile.php45 * A GEDCOM media file. A media object can contain many media files,
81 if (preg_match('/^\d FILE (.+)/m', $gedcom, $match)) {
217 * Is the media file actually a URL?
260 * Is the media file an image?
281 * Generate a URL to download a media file.
314 $attributes[I18N::translate('File size')] = $text;
331 // Cannot read the file.
339 * Read the contents of a media file.
353 * Check if the file exists on this server
/webtrees/app/Report/
H A DReportBaseImage.php28 public string $file; variable in Fisharebest\\Webtrees\\Report\\ReportBaseImage
51 * @param string $file Filename of the image
59 …public function __construct(string $file, float $x, float $y, float $w, float $h, string $align, s… argument
61 $this->file = $file;
/webtrees/app/Http/Middleware/
H A DPublicFiles.php48 $file = Webtrees::ROOT_DIR . $path;
50 if (file_exists($file)) {
51 $content = file_get_contents($file);
52 $extension = strtoupper(pathinfo($file, PATHINFO_EXTENSION));
/webtrees/app/Elements/
H A DRestrictionNotice.php29 * The restriction notice is defined for Ancestral File usage. Ancestral File
36 * locked = Some records in Ancestral File have been satisfactorily proven by evidence, but
38 * to change this record. By arrangement, the Ancestral File Custodian can lock a
44 * the Ancestral File may have individuals marked with ‘privacy’ if they are assumed

12345678910>>...12