HEX
Server: LiteSpeed
System: Linux d8 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: wbwebdes (3015)
PHP: 8.1.31
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/wbwebdes/domains/mailing.wb-cloud.nl/private_html/admin/plugins/UpdaterPlugin.php
<?php
/**
 * UpdaterPlugin for phplist.
 *
 * This file is a part of UpdaterPlugin.
 *
 * This plugin is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * This plugin is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * @category  phplist
 *
 * @author    Duncan Cameron
 * @copyright 2018 Duncan Cameron
 * @license   http://www.gnu.org/licenses/gpl.html GNU General Public License, Version 3
 */
if (interface_exists('Updater')) {
    class UpdaterPluginBase extends phplistPlugin implements Updater
    {
    }
} else {
    class UpdaterPluginBase extends phplistPlugin
    {
    }
}

class UpdaterPlugin extends UpdaterPluginBase
{
    const VERSION_FILE = 'version.txt';

    public $name = 'Updater Plugin';
    public $authors = 'Duncan Cameron';
    public $description = 'Page to update the phpList code';
    public $documentationUrl = 'https://resources.phplist.com/plugin/updater';

    public function __construct()
    {
        $this->coderoot = dirname(__FILE__) . '/' . __CLASS__ . '/';
        parent::__construct();
        $this->version = file_get_contents($this->coderoot . self::VERSION_FILE);
    }

    public function dependencyCheck()
    {
        return array(
            'phpList version 3.5.4 or greater' => version_compare(VERSION, '3.5.4') >= 0,
            'PHP version 7 or greater' => version_compare(PHP_VERSION, '7') > 0,
            'Common Plugin installed' => phpListPlugin::isEnabled('CommonPlugin'),
        );
    }

    public function activate()
    {
        $this->topMenuLinks['update'] = ['category' => 'system'];
        $this->pageTitles['update'] = 'Update phpList';
        parent::activate();
    }

    public function adminmenu()
    {
        return [];
    }
}