This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Support\Facades\Vite; | |
use Illuminate\Support\Str; | |
/** | |
* Simple Content Security Policy middleware. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Procedural drop in replacement for legacy projects using the MySQL function | |
* | |
* @author Sjoerd Maessen | |
* @version 0.1 | |
*/ | |
// Make sure the MySQL extension is not loaded and there is no other drop in replacement active | |
if (!extension_loaded('mysql') && !function_exists('mysql_connect')) { |