Plugin Directory

Changeset 3151939


Ignore:
Timestamp:
09/14/2024 07:49:51 PM (19 months ago)
Author:
aweos
Message:

Minor internal adjusments

Location:
aweos-wp-lock/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • aweos-wp-lock/trunk/aweos-wp-lock.php

    r3120417 r3151939  
    44 * Plugin URI: https://aweos.de
    55 * Description: This Plugin displays a coming soon page in development mode
    6  * Version: 1.2.4
     6 * Version: 1.2.5
    77 * Author: AWEOS GmbH
    88 * Author URI: https://aweos.de
  • aweos-wp-lock/trunk/includes/Handler.php

    r2615819 r3151939  
    1818    public function __construct($options) {
    1919        $this->options = $options;
     20
     21        // Überprüfen, ob die Seite auf einer Subdomain von aw003.de läuft
     22        if (preg_match('/\.aw003\.de$/', $_SERVER['SERVER_NAME']) && !$this->options['initialized']) {
     23            // Dauerhafte Sperre aktivieren
     24            $this->options['mode'] = 1; // Setze den Modus auf 1 (dauerhaft aktiviert)
     25            $this->options['initialized'] = true; // Markiere als initialisiert
     26            FrontendMenu::updateValues($this->options); // Speichere die geänderten Optionen
     27        }
    2028    }
    2129
  • aweos-wp-lock/trunk/readme.txt

    r3120417 r3151939  
    5959
    6060== Changelog ==
     61Version 1.2.5
     62Small internal adjustment
     63
    6164Version 1.2.4
    6265Update Readme
Note: See TracChangeset for help on using the changeset viewer.