Reorganize PHP internals and static assets
Move shared PHP code into private/, move JavaScript files into js/, and block direct access to private/. Remove unused API key and cache artifacts from the working tree.
This commit is contained in:
+6
-6
@@ -28,18 +28,18 @@ ini_set('display_startup_errors', '1');
|
||||
ini_set('log_errors', '1');
|
||||
error_reporting(E_ALL);
|
||||
|
||||
require_once __DIR__ . '/nexttoken.php';
|
||||
require_once __DIR__ . '/private/nexttoken.php';
|
||||
|
||||
$TOKENS = new NextTokenStore(__DIR__ . '/data/racket-sandbox.sqlite');
|
||||
|
||||
@set_time_limit(300);
|
||||
ignore_user_abort(false);
|
||||
|
||||
require_once __DIR__ . '/gitfetcher.php';
|
||||
require_once __DIR__ . '/b64parts.php';
|
||||
require_once __DIR__ . '/base64config.php';
|
||||
require_once __DIR__ . '/lib/catalog-http.php';
|
||||
require_once __DIR__ . '/lib/racket-data.php';
|
||||
require_once __DIR__ . '/private/gitfetcher.php';
|
||||
require_once __DIR__ . '/private/b64parts.php';
|
||||
require_once __DIR__ . '/private/base64config.php';
|
||||
require_once __DIR__ . '/private/lib/catalog-http.php';
|
||||
require_once __DIR__ . '/private/lib/racket-data.php';
|
||||
|
||||
define('DATA_DIR', __DIR__ . '/data');
|
||||
define('CATALOG_PACKAGE_BASE', 'https://pkgs.racket-lang.org/pkg/');
|
||||
|
||||
Reference in New Issue
Block a user