File_template

Marek Skiba edited this page Dec 27, 2016 · 5 revisions
Clone this wiki locally

Each code file (.php, .js) should have this heading:

/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * Brief explanation about this file
 *
 * @package PhpMyAdmin
 */

Followed by this in case of an include or library .php file (not for files in the root dir that are directly accessed by the browser, or for .js files) :

if (! defined('PHPMYADMIN')) {
    exit;
}

F