Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Empty file modified .php-cs-fixer.php
100644 → 100755
Empty file.
Empty file modified .yarnrc.yml
100644 → 100755
Empty file.
Empty file modified FUNDING.yml
100644 → 100755
Empty file.
4 changes: 0 additions & 4 deletions KNOWN-ISSUES.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ Le problematiche sono organizzate per versione di release in ordine cronologico
#### 2.8-beta - 20/05/2025

##### Problemi noti
- La cache degli hook veniva considerata scaduta fino a quando non trascorreva un intero giorno, causando l'esecuzione continua di alcuni hook per aggiornare la cache.
Questa modifica corregge la logica di validazione della cache, riducendo le chiamate non necessarie e migliorando le prestazioni.
https://github.com/devcode-it/openstamanager/commit/254a00c9c265c990ee708141455d30b9080132ff

- Presenza di vecchi file nella cartella vendor che danno errore in fase di installazione
https://github.com/devcode-it/openstamanager/commit/9d7120319

Expand Down
Empty file modified SECURITY.md
100644 → 100755
Empty file.
33 changes: 2 additions & 31 deletions actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
use Modules\Emails\Template;
use Notifications\EmailNotification;
use Util\Zip;
use Permissions;

if (empty($structure) || empty($structure['enabled'])) {
exit(tr('Accesso negato'));
Expand All @@ -42,28 +41,7 @@
// Upload allegati e rimozione
if (filter('op') == 'aggiungi-allegato' || filter('op') == 'rimuovi-allegato') {
// Controllo sui permessi di scrittura per il modulo
$has_write_permission = false;

// Verifica permessi in base al tipo di accesso
if (Permissions::isTokenAccess()) {
// Per accesso tramite token, verifica i permessi del token
$token_info = $_SESSION['token_access'];
$token_permission = $token_info['permessi'] ?? 'r';

// Per gli allegati, verifica i permessi specifici del token
if (filter('op') == 'aggiungi-allegato') {
// Caricamento allegati: permessi 'ra', 'rwa' o 'rw'
$has_write_permission = in_array($token_permission, ['ra', 'rwa', 'rw']);
} elseif (filter('op') == 'rimuovi-allegato') {
// Rimozione allegati: solo permessi 'rwa' o 'rw'
$has_write_permission = in_array($token_permission, ['rwa', 'rw']);
}
} else {
// Per accesso normale, usa i permessi standard del modulo
$has_write_permission = (Modules::getPermission($id_module) == 'rw');
}

if (!$has_write_permission) {
if (Modules::getPermission($id_module) != 'rw') {
flash()->error(tr('Non hai permessi di scrittura per il modulo _MODULE_', [
'_MODULE_' => '"'.Module::find($id_module)->getTranslation('title').'"',
]));
Expand Down Expand Up @@ -176,14 +154,7 @@
}
}

// Determina il redirect appropriato in base al tipo di accesso
if (Permissions::isTokenAccess() && !empty($_SESSION['token_access']['id_module_target']) && !empty($_SESSION['token_access']['id_record_target'])) {
// Per accesso tramite token, redirect a shared_editor.php
redirect(base_path().'/shared_editor.php?id_module='.$id_module.'&id_record='.$id_record.((!empty($options['id_plugin'])) ? '#tab_'.$options['id_plugin'] : ''));
} else {
// Per accesso normale, redirect a editor.php
redirect(base_path().'/editor.php?id_module='.$id_module.'&id_record='.$id_record.((!empty($options['id_plugin'])) ? '#tab_'.$options['id_plugin'] : ''));
}
redirect(base_path().'/editor.php?id_module='.$id_module.'&id_record='.$id_record.((!empty($options['id_plugin'])) ? '#tab_'.$options['id_plugin'] : ''));
}
}

Expand Down
4 changes: 1 addition & 3 deletions ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@

case 'list_attachments':
$category = get('id_category') ? Categoria::find(get('id_category'))->name : null;
$upload_only = get('upload_only') === 'true' ? 'true' : 'false';
$disable_edit = get('disable_edit') === 'true' ? 'true' : 'false';
echo '{( "name": "filelist_and_upload", "id_module": "'.$id_module.'", "id_record": "'.$id_record.'", "id_plugin": "'.$id_plugin.'", "category": "'.$category.'", "upload_only": "'.$upload_only.'", "disable_edit": "'.$disable_edit.'" )}';
echo '{( "name": "filelist_and_upload", "id_module": "'.$id_module.'", "id_record": "'.$id_record.'", "id_plugin": "'.$id_plugin.'", "category": "'.$category.'" )}';

break;

Expand Down
8 changes: 0 additions & 8 deletions assets/src/css/datatables.css
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,3 @@ div.dataTables_wrapper {
{
z-index: 1050
}

div.dataTables_wrapper div.dataTables_info {
padding-bottom: 8px;
}

.datatables-buttons {
padding-bottom: 16px;
}
Empty file modified assets/src/css/fonts/sourcesanspro-regular-webfont.eot
100644 → 100755
Empty file.
Empty file modified assets/src/css/fonts/sourcesanspro-regular-webfont.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/src/css/fonts/sourcesanspro-regular-webfont.ttf
100644 → 100755
Empty file.
Empty file modified assets/src/css/fonts/sourcesanspro-regular-webfont.woff
100644 → 100755
Empty file.
Empty file modified assets/src/css/fonts/sourcesanspro-regular-webfont.woff2
100644 → 100755
Empty file.
7 changes: 2 additions & 5 deletions assets/src/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ span.form-control {
#pulsanti {
position: sticky;
top: 0;
padding: 10px;
padding-top: 10px;
padding-bottom: 10px;
z-index: 999;
background: #f6f6f6;
line-height: 3;
Expand Down Expand Up @@ -1702,10 +1703,6 @@ table.dataTable {
font-size: 13px !important;
}

.select2-container--bootstrap4 .select2-results__option--highlighted > a {
color: #fff;
}

.btn-group>.btn-xs>input[type="checkbox"], .label>input[type="checkbox"] {
margin: 2px 0px;
}
Expand Down
Empty file modified assets/src/fonts/.gitkeep
100644 → 100755
Empty file.
Empty file modified assets/src/img/flags/gb.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/src/img/flags/it.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/src/img/leaflet/place-marker.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/src/img/logo_completo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/src/img/logo_header.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/src/img/marker-icon-2x.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/src/img/marker-icon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/src/img/screenshot.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/src/img/user.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/src/js/base/custom.js
100644 → 100755
Empty file.
Empty file modified assets/src/js/base/datatables-buttons.js
100644 → 100755
Empty file.
Empty file modified assets/src/js/base/navigation.js
100644 → 100755
Empty file.
Empty file modified assets/src/js/base/sidebar.js
100644 → 100755
Empty file.
Empty file modified assets/src/js/base/slider.js
100644 → 100755
Empty file.
Empty file modified assets/src/js/base/supersearch.js
100644 → 100755
Empty file.
Empty file modified assets/src/js/base/widgets.js
100644 → 100755
Empty file.
Empty file modified assets/src/js/ckeditor/plugins/openrouter/icons/openrouter.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/src/js/ckeditor/plugins/openrouter/plugin.js
100644 → 100755
Empty file.
Empty file modified assets/src/js/ckeditor/plugins/openrouter/styles/openrouter.css
100644 → 100755
Empty file.
Empty file.
Empty file.
4 changes: 1 addition & 3 deletions assets/src/js/functions/allegati.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ function ricaricaAllegati(gestione) {
id_module: gestione.data('id_module'),
id_plugin: gestione.data('id_plugin'),
id_record: gestione.data('id_record'),
id_category: gestione.data('id_category'),
upload_only: gestione.data('upload_only') === true || gestione.data('upload_only') === 'true' ? 'true' : 'false',
disable_edit: gestione.data('disable_edit') === true || gestione.data('disable_edit') === 'true' ? 'true' : 'false'
id_category: gestione.data('id_category')
}).toString();

$(id).load(globals.rootdir + "/ajax.php?" + params, function () {
Expand Down
Empty file modified assets/src/js/functions/form.js
100644 → 100755
Empty file.
Empty file modified assets/src/js/functions/input.js
100644 → 100755
Empty file.
Empty file modified assets/src/js/functions/inputmask.js
100644 → 100755
Empty file.
Empty file modified assets/src/js/functions/loaders.js
100644 → 100755
Empty file.
Empty file modified assets/src/js/functions/numbers.js
100644 → 100755
Empty file.
Empty file modified assets/src/js/functions/text-shortener.js
100644 → 100755
Empty file.
Empty file modified assets/src/js/functions/textarea.js
100644 → 100755
Empty file.
Empty file modified assets/src/js/wacom/common/libs/stu-sdk.min.js
100644 → 100755
Empty file.
49 changes: 49 additions & 0 deletions assets/src/js/wacom/modules/clipper-lib/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# ClipperLib

> forked from [Javascript Clipper](http://sourceforge.net/projects/jsclipper/)

## Description

The Javascript Clipper library performs clipping and offsetting for both lines and polygons. All four boolean clipping operations are supported - intersection, union, difference and exclusive-or. Polygons can be of any shape including self-intersecting polygons.

Javascript Clipper is a port of Angus Johnson's Clipper library: <https://sourceforge.net/projects/polyclipping/>

LIVE DEMO: <http://jsclipper.sourceforge.net/6.2.1.0/main_demo.html>

Information and examples:
<http://jsclipper.sourceforge.net/6.2.1.0/>

Donate Javascript Clipper Project: <https://sourceforge.net/p/jsclipper/wiki/Donations/>

Use cases:
* Over 1500 schools in the UK uses Javascript Clipper in Digimap for Schools service. Digimap for Schools is an online mapping service for use by teachers and pupils. Read more:
<https://mobilegeo.wordpress.com/> and
<http://digimapforschools.edina.ac.uk/cosmo-free/osmapper>

[Javascript Clipper Web Site](https://sourceforge.net/p/jsclipper/wiki/)

## Features

- Line and polygon clipping - intersection, union, difference & xor
- Line and polygon offsetting with 3 types of joining - miter, square and round
- Polygons can be of any shape, including self-intersecting polygons
- Minkowski Addition and Minkowski Difference functions included
- The library is written in Javascript
- Comprehensive documentation
- Demos use inline SVG and Canvas libraries
- The library is significantly faster than commercial alternatives
- Uses Tom Wu's fast big integer library
- UMD support

## Categories

Algorithms, Graphics

## Links

- [Documentation](./Documentation.md)
- [ChangeLog](./ChangeLog.txt)

## License

[Boost Software License (BSL1.0)](http://www.boost.org/LICENSE_1_0.txt)
Loading
Loading