mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-22 05:23:41 +01:00
22 lines
395 B
PHP
22 lines
395 B
PHP
<?php
|
|
|
|
include_once __DIR__.'/core.php';
|
|
|
|
if (!isset($resource)) {
|
|
$op = empty($op) ? filter('op') : $op;
|
|
$search = filter('q');
|
|
|
|
if (!isset($elements)) {
|
|
$elements = [];
|
|
}
|
|
$elements = (!is_array($elements)) ? explode(',', $elements) : $elements;
|
|
|
|
$results = AJAX::select($op, $elements, $search);
|
|
|
|
echo json_encode($results);
|
|
}
|
|
|
|
// Casi particolari
|
|
else {
|
|
}
|