15 lines
486 B
PHP
15 lines
486 B
PHP
<?php
|
|
require_once 'index.php';
|
|
// We need to simulate the GET request
|
|
$_SERVER['REQUEST_METHOD'] = 'GET';
|
|
$_GET['action'] = 'search_items';
|
|
$_GET['q'] = 'a'; // Search for 'a'
|
|
|
|
// Capture output
|
|
ob_start();
|
|
// We can't include index.php again as it will execute global code.
|
|
// Instead, I'll just copy the relevant DB code or query directly.
|
|
// Actually, index.php has global execution code, so requiring it might trigger output.
|
|
// Let's just use the db config and query directly.
|
|
?>
|