Cloudflare Pro

PHP

Advanced Cloudflare DNS management extension for Plesk with DNS record synchronization, zone management, proxy control, SSL automation, and seamless Cloudflare integration.

Stars
16
Forks
1
Downloads
N/A
Open Issues
0
Files main

Repository Files

Loading file structure...
plib/hooks/Navigation.php
<?php

require_once pm_Context::getPlibDir() . '/library/CloudflarePro/Permissions.php';

class Modules_CloudflarePro_Navigation extends pm_Hook_Navigation
{
    public function getNavigation()
    {
        if (!CloudflarePro_Permissions::canAccess()) {
            return [];
        }

        return [
            [
                'controller' => 'index',
                'action' => 'domains',
                'label' => 'Cloudflare Pro',
                'tabbed' => true,
                'pages' => [
                    [
                        'controller' => 'index',
                        'action' => 'records',
                        'label' => 'Domain',
                    ],
                    [
                        'controller' => 'index',
                        'action' => 'tokens',
                    ],
                    [
                        'controller' => 'index',
                        'action' => 'logs',
                    ],
                    [
                        'controller' => 'index',
                        'action' => 'settings',
                    ],
                    [
                        'controller' => 'index',
                        'action' => 'about',
                    ],
                ],
            ],
        ];
    }
}