PHP Classes

File: apps/adminer/index.php

Recommend this page to a friend!
  Classes of Mark Richards   CliqonV4   apps/adminer/index.php   Download  
File: apps/adminer/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: CliqonV4
Framework with modules to build Web applications
Author: By
Last change:
Date: 6 years ago
Size: 590 bytes
 

Contents

Class file image Download
<?php
$basedir
= $_SERVER['DOCUMENT_ROOT'];

function
adminer_object() {
   
// required to run any plugin
   
include_once "plugins/plugin.php";
   
   
// autoloader
   
foreach (glob("plugins/*.php") as $filename) {
        include_once
"$filename";
    }
   
   
$plugins = array(
       
// specify enabled plugins here
       
new AdminerEditTextarea,
        new
AdminerTablesFilter,
        new
AdminerDumpZip,
        new
AdminerJsonColumn,
        new
AdminerLoginSqlite,
        new
AdminerFrames
   
);
      
    return new
AdminerPlugin($plugins);
}

include
"adminer.php";