Removed old cruft...

main
Robert 3 years ago
parent 480b969fd1
commit 92ca57d644
  1. 19
      documents/IMPORTANT.txt
  2. 4
      documents/folders.txt
  3. 1
      src/main.inc.php

@ -1,19 +0,0 @@
Please note that main.inc.php, which should be called by index.php, does
the following:
unset($_REQUEST);
unset($_GET);
unset($_POST);
So, you must use \tts\safer_io::sanitize(....); to get those input vars!!!
That method, returns an array of fields, html, and errors, I'll break that down:
fields are the raw or result of the filter_input function,
html is passed an function to escape or sanitize the HTML output in someway (so use it for any output on views),
errors will have an count > 0 if validation rules were not meet.
Alternatively; use the built in PHP filter_input function.
Likewise, if not using sanitize... then for all HTML output use
\tts\safer_io::h(...) to escape it.

@ -7,7 +7,6 @@ tts_framework/src
   ├── requires.php (secure_includes, file/dir Filters/Validators)
   ├── safer_io.php (Sanitize Input, Validate data and Escape output)
   ├── site_helper.php (Set/Get Routes/Root Paths/Assets, etc...)
   └── validator.php (validates HTML Forms)
├── classes
   ├── api.php (Encodes JSON/XML/PHP Serializer)
   ├── app.php (Fallback routes for the controllers)
@ -82,6 +81,7 @@ tts_framework/src
     ├── csrf_token_functions.php (Get an Cross-Site Request Forge - Prevention Token)
     └── session_hijacking_functions.php (Prevent SESSION Hijacking and Fixation in PHP)
   ├── url_encode.php (base64url Encode/Decode)
│ ├── validator.php (validates HTML Forms)
   └── view.php (Loads view files from common folders you defined)
├── main.inc.php (Bootstraps App, sets configure, registry, di, and name-spaces)
├── templates
@ -92,4 +92,4 @@ tts_framework/src
   └── broken.php (Debug Trace)
└── errors.php (when Live, this: Sorry, we had an error... Page is used)
19 directories, 73 files
~73 files

@ -13,7 +13,6 @@ $mem_baseline = memory_get_usage();
const TTS_FRAMEWORK = __DIR__ . '/';
$up_one = dirname(__DIR__, 1);
define("TTS_VENDOR", $up_one . "/vendor/");
define("TTS_ASSETS", $up_one . "/assets/");
final class views {
public static function ob_start(): void {

Loading…
Cancel
Save