HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/view-once.com/src/config.php
<?php
// Configuration constants
const DB_FILE = __DIR__ . '/../data/secrets.sqlite';
const BASE_URL = ''; // leave '' for auto-detect; or set like 'https://example.com/notes'

// Expiration options in seconds
const EXPIRE_OPTIONS = [
  '10min' => 600,     // 10 minutes
  '1hr' => 3600,      // 1 hour
  '24hr' => 86400,    // 24 hours (default)
  '7days' => 604800   // 7 days
];
const DEFAULT_EXPIRE = '24hr';

// File upload settings
const MAX_FILE_SIZE = 10 * 1024 * 1024; // 10MB
const ALLOWED_TYPES = [
  'text/plain', 'text/csv', 'text/markdown',
  'application/pdf', 'application/json', 'application/xml',
  'image/jpeg', 'image/png', 'image/gif', 'image/webp',
  'application/zip', 'application/x-zip-compressed',
  'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
];
const FILES_DIR = __DIR__ . '/../data/files';