Skip to content

Includes & Flow

RedDragonWebDesign edited this page Oct 29, 2020 · 10 revisions

Tree

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

Files

_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

[PAGE LOGIC]

[PAGE HTML]

themes/$THEME/_footer.php

Clone this wiki locally