diff --git a/documents/IMPORTANT.txt b/documents/IMPORTANT.txt deleted file mode 100644 index de3439d..0000000 --- a/documents/IMPORTANT.txt +++ /dev/null @@ -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. - - \ No newline at end of file diff --git a/documents/folders.txt b/documents/folders.txt index 6411bc8..61f895f 100644 --- a/documents/folders.txt +++ b/documents/folders.txt @@ -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 diff --git a/src/main.inc.php b/src/main.inc.php index 0a59ee4..e98a60d 100644 --- a/src/main.inc.php +++ b/src/main.inc.php @@ -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 {