![]() The basic philosophy here is to not hurt code clarity for the sake of laziness. In most cases, we'd like to be able to tell how to use a function by just looking at its declaration. We don't want a bunch of functions like: do_stuff($a, $b, $c). Function Arguments:Īrguments are subject to the same guidelines as variable names. Good function names are print_login_status(), get_user_data(), etc. Function names should preferably have a verb in them somewhere. Again, all lower-case names with words separated by a single underscore character. We're not programming in C here, we don't want to write functions called things like "stristr()". for the board url + script path.įunctions should also be named descriptively.Path locations for the following template variables are affected by this too: /includes/functions_content.php - smiley_text().If the PHPBB_USE_BOARD_URL_PATH constant is set to true, phpBB uses generate_board_url() (this will return the boards url with the script path included) on all instances where web-accessible images are loaded. PHPBB_QA (Set board to QA-Mode, which means the updater also checks for RC-releases) PHPBB_ACM_REDIS_DB (overwrite redis default database) PHPBB_ACM_REDIS_PASSWORD (overwrite redis password, default is empty) PHPBB_ACM_REDIS_PORT (overwrite redis port, default is 6379) PHPBB_ACM_REDIS_HOST (overwrite redis host name, default is localhost) PHPBB_ACM_MEMCACHE_HOST (overwrite memcached host name, default is localhost) PHPBB_ACM_MEMCACHE_COMPRESS (overwrite memcached compress setting, default is disabled) PHPBB_ACM_MEMCACHE_PORT (overwrite memcached port, default is 11211) PHPBB_DISABLE_CONFIG_CHECK (disable ACP config.php writeable check) PHPBB_DISABLE_ACP_EDITOR (disable ACP style editor for templates) PHPBB_USE_BOARD_URL_PATH (use generate_board_url() for image paths instead of $phpbb_root_path) PHPBB_ADMIN_PATH (overwrite $phpbb_admin_path) PHPBB_ROOT_PATH (overwrite $phpbb_root_path) PHPBB_DB_NEW_LINK (overwrite new_link parameter for sql_connect) PHPBB_MSG_HANDLER (overwrite message handler) ![]() There are some special constants application developers are able to utilize to bend some of phpBB's internal functionality to suit their needs. MySQL Database Abstraction Layer for MySQL 3.x/4.0.x/4.1.x/5.xĪll global images not connected to styles MSSQL ODBC Database Abstraction Layer for MSSQL adm, /includes/acp, /includes/functions_admin.phpīase DBAL class, defining the overall frameworkįirebird/Interbase Database Abstraction Layer The package names are bold within this list:Ĭore files and all files not assigned to a separate package The following packages are defined, and related new features/functions should be placed within the mentioned files/locations, as well as specifying the correct package name. Some files in /includes are holding functions responsible for special sections, for example uploading files, displaying "things", user related functions and so forth. * code snipped, mostly one or two defines or an if statementįunctions used by more than one page should be placed in functions.php, functions specific to one page should be placed on that page (at the bottom) or within the relevant sections functions file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |