From dcff2ae0e628a7152c460a513c10fc40b320c1fe Mon Sep 17 00:00:00 2001 From: Terranom674 Date: Sat, 15 Aug 2026 13:30:14 +0200 Subject: [PATCH] Add watermark profile management foundation --- tools/watermark_profiles.inc.php | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 tools/watermark_profiles.inc.php diff --git a/tools/watermark_profiles.inc.php b/tools/watermark_profiles.inc.php new file mode 100644 index 0000000..4640088 --- /dev/null +++ b/tools/watermark_profiles.inc.php @@ -0,0 +1,41 @@ +'Oeffentlich', 'watermark_file'=>'', 'xpos'=>90, 'ypos'=>90, 'opacity'=>35, 'min_width'=>10, 'min_height'=>10, 'created'=>date('Y-m-d H:i:s')), + array('name'=>'Kein Wasserzeichen', 'watermark_file'=>'', 'xpos'=>90, 'ypos'=>90, 'opacity'=>0, 'min_width'=>0, 'min_height'=>0, 'created'=>date('Y-m-d H:i:s')), + ) + ); + } +} + +function bratonien_tools_get_watermark_profiles() +{ + bratonien_tools_create_default_watermark_profiles(); + return query2array('SELECT * FROM '.bratonien_tools_table('watermark_profiles').' ORDER BY name'); +} + +function bratonien_tools_save_watermark_profile() +{ + throw new RuntimeException('Profilverwaltung ist vorbereitet, die Bearbeitungsoberflaeche folgt im naechsten Schritt.'); +}