Location: PHPKode > projects > Template CMS > templatecms_2_0_3_en/plugins/box/plugins/PluginsAdmin.php
<?php

    /**
     * Plugins admin
     */
    function pluginsAdmin() {
        
        $plugins_info = getPluginInfo();
        $site_url = getSiteUrl(false);

        // Delete plugin
        if(isGet('delete_plugin')) {
            // Site administrator cant remove box plugins
            if($plugins_info[strtolower(str_replace("Plugin", "", get('delete_plugin')))]['privilege'] !== 'box') {
                deleteFile('../data/plugins/'.get('delete_plugin').'.xml');
                redirect('index.php?id=plugins');
            } 
        }

        include 'templates/backend/PluginsTemplate.php';
    }
Return current item: Template CMS