mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-04 03:18:49 +03:00
Not Tachyon
This commit is contained in:
parent
49dd9a7c7c
commit
8678c0e8fd
4 changed files with 20 additions and 41 deletions
|
|
@ -1,13 +1,9 @@
|
|||
<?php
|
||||
|
||||
// Run with: php test/header-injection.php
|
||||
define('APP_VERSION', 'test');
|
||||
spl_autoload_register(static function (string $class): void {
|
||||
$file = dirname(__DIR__).'/tachyon/v/0.0.0/app/libraries/'.str_replace('\\', '/', $class).'.php';
|
||||
if (is_file($file)) {
|
||||
require_once $file;
|
||||
}
|
||||
});
|
||||
// Enable SnappyMail Api and include index file
|
||||
$_ENV['SNAPPYMAIL_INCLUDE_AS_API'] = true;
|
||||
require '../index.php';
|
||||
|
||||
function check(bool $condition, string $message): void
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue