mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-28 18:53:49 -04:00
24 lines
481 B
PHP
24 lines
481 B
PHP
<?php
|
|
if (empty($_REQUEST['modal'])) {
|
|
ajaxError('Modal Name Not Provided');
|
|
return;
|
|
}
|
|
|
|
$modal = detaintPath($_REQUEST['modal']);
|
|
$data = array();
|
|
|
|
ZM\Debug("Including modals/$modal.php");
|
|
# Shouldn't be necessary but at the moment we have last .conf file contents
|
|
ob_start();
|
|
@$result = include('modals/'.$modal.'.php');
|
|
$data['html'] = ob_get_contents();
|
|
ob_end_clean();
|
|
if (!$result) {
|
|
ajaxError("Unknown modal '".$modal."'");
|
|
return;
|
|
}
|
|
|
|
ajaxResponse($data);
|
|
return;
|
|
?>
|