Skip to content

Modify plugin admin pages to not use foreach loop #4

@Sageth

Description

@Sageth

Inside phparcade/Zdmin/index.php

include INST_DIR . 'includes/first.php';
foreach ($arr as $plugin) {
    if (file_exists('../plugins/' . $plugin . '/admin.php')) {
        /** @noinspection PhpIncludeInspection */
        require_once '../plugins/' . $plugin . '/admin.php';
        $func = $plugin . '_links';
        $func();
    }
}

This is outdated and should be rewritten to better load the functionality without requiring multiple single files.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions