File template

From PmaWiki
Jump to: navigation, search

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;
}
Personal tools