Skip to content

Includes & Flow

RedDragonWebDesign edited this page Nov 3, 2020 · 10 revisions

Assets Included In <head>

  • themes/btcs4.css.php
    • _setup.php - Keep in mind every time _setup.php is loaded, it reads cookies and updates the session.
    • themes/$THEME/css.php - has an array with values that get plugged into btcs4.css.php
  • themes/$THEME/jqueryui/jquery-ui-1.8.17.custom.css
  • js/jquery-1-6-4.min.js
  • js/jquery-ui-1.8.17.custom.min.js
  • themes/$THEME/style.css
  • js/main.js
  • js/imageslider.js - I think this is not a dependency. It was custom written.
  • themes/destiny/destiny.js
  • http://fonts.googleapis.com/css?family=PT+Sans:400,700

PHP Files Included In Typical .php Viewer File

index.php
|---_setup.php
    |---_global_setup.php
    |---_config.php
    |---_functions.php
        |---include/lib_autolink/lib_autolink.php
        |---all classes in classes/
        |---include/phpmailer/PHPMailerAutoload.php
    |---plugins/mods.php
|---themes/$THEME/_header.php
    |---themes/include_header.php
    |---themes/$THEME/$THEMEmenu.php
    |---include/clocks.php
|---[PAGE LOGIC]
|---[PAGE HTML]
|---themes/$THEME/_footer.php
    |---themes/sql-profiler.php

_setup.php

_global_setup.php

  • A file I created so that I could include certain things into both core and the installer.
  • error_reporting()
  • global variables/constants
  • minimum PHP version check

_config.php

  • database variables

_functions.php

  • declare global functions
  • load classes
  • load dependencies

include/lib_autolink/lib_autolink.php

all classes in classes/

include/phpmailer/PHPMailerAutoload.php

plugins/mods.php

themes/$THEME/_header.php

themes/include_header.php

  • sets some global variables and constants: $siteDomain, $dispHTTP, LOGGED_IN, etc.
  • if "Remember Me" was checked, sets username and password cookies
  • auth - figures out if you're logged in

[PAGE LOGIC]

[PAGE HTML]

themes/$THEME/_footer.php

Clone this wiki locally