Merge branch 'storageareas' of github.com:ConnorTechnology/ZoneMinder into storageareas
This commit is contained in:
commit
4fb43f5c5d
|
@ -19,18 +19,18 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
if ( !canEdit('System') ) {
|
if ( !canEdit('System') ) {
|
||||||
Warning("Need System permissions to update privacy");
|
Warning('Need System permissions to update privacy');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ($action == 'privacy') && isset($_REQUEST['option']) ) {
|
if ( ($action == 'privacy') && isset($_POST['option']) ) {
|
||||||
switch( $_REQUEST['option'] ) {
|
switch( $_POST['option'] ) {
|
||||||
case 'decline' :
|
case '0' :
|
||||||
dbQuery("UPDATE Config SET Value = '0' WHERE Name = 'ZM_SHOW_PRIVACY'");
|
dbQuery("UPDATE Config SET Value = '0' WHERE Name = 'ZM_SHOW_PRIVACY'");
|
||||||
dbQuery("UPDATE Config SET Value = '0' WHERE Name = 'ZM_TELEMETRY_DATA'");
|
dbQuery("UPDATE Config SET Value = '0' WHERE Name = 'ZM_TELEMETRY_DATA'");
|
||||||
$redirect = '?view=console';
|
$redirect = '?view=console';
|
||||||
break;
|
break;
|
||||||
case 'accept' :
|
case '1' :
|
||||||
dbQuery("UPDATE Config SET Value = '0' WHERE Name = 'ZM_SHOW_PRIVACY'");
|
dbQuery("UPDATE Config SET Value = '0' WHERE Name = 'ZM_SHOW_PRIVACY'");
|
||||||
dbQuery("UPDATE Config SET Value = '1' WHERE Name = 'ZM_TELEMETRY_DATA'");
|
dbQuery("UPDATE Config SET Value = '1' WHERE Name = 'ZM_TELEMETRY_DATA'");
|
||||||
$redirect = '?view=console';
|
$redirect = '?view=console';
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
function submitForm( element ) {
|
|
||||||
var form = element.form;
|
|
||||||
if ( form.option.selectedIndex == 0 ) {
|
|
||||||
form.view.value = currentView;
|
|
||||||
} else {
|
|
||||||
form.view.value = 'none';
|
|
||||||
}
|
|
||||||
form.submit();
|
|
||||||
}
|
|
||||||
|
|
|
@ -18,20 +18,19 @@
|
||||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
//
|
//
|
||||||
|
|
||||||
if ( !canEdit( 'System' ) )
|
if ( !canEdit('System') ) {
|
||||||
{
|
$view = 'error';
|
||||||
$view = "error";
|
return;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$options = array(
|
$options = array(
|
||||||
"accept" => translate('Accept'),
|
'1' => translate('Accept'),
|
||||||
"decline" => translate('Decline'),
|
'0' => translate('Decline'),
|
||||||
);
|
);
|
||||||
|
|
||||||
$focusWindow = true;
|
$focusWindow = true;
|
||||||
|
|
||||||
xhtmlHeaders(__FILE__, translate('Privacy') );
|
xhtmlHeaders(__FILE__, translate('Privacy'));
|
||||||
?>
|
?>
|
||||||
<body>
|
<body>
|
||||||
<div id="page">
|
<div id="page">
|
||||||
|
@ -41,31 +40,31 @@ xhtmlHeaders(__FILE__, translate('Privacy') );
|
||||||
</div>
|
</div>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<form name="contentForm" id="contentForm" method="post" action="?">
|
<form name="contentForm" id="contentForm" method="post" action="?">
|
||||||
<input type="hidden" name="view" value="none"/>
|
<input type="hidden" name="view" value="privacy"/>
|
||||||
<input type="hidden" name="action" value="privacy"/>
|
<input type="hidden" name="action" value="privacy"/>
|
||||||
<h6><?php echo translate('PrivacyAbout') ?></h6>
|
<h6><?php echo translate('PrivacyAbout') ?></h6>
|
||||||
<p><?php echo translate('PrivacyAboutText') ?></p>
|
<p><?php echo translate('PrivacyAboutText') ?></p>
|
||||||
<br>
|
<br/>
|
||||||
|
|
||||||
<h6><?php echo translate('PrivacyContact') ?></h6>
|
<h6><?php echo translate('PrivacyContact') ?></h6>
|
||||||
<p><?php echo translate('PrivacyContactText') ?></p>
|
<p><?php echo translate('PrivacyContactText') ?></p>
|
||||||
<br>
|
<br/>
|
||||||
|
|
||||||
<h6><?php echo translate('PrivacyCookies') ?></h6>
|
<h6><?php echo translate('PrivacyCookies') ?></h6>
|
||||||
<p><?php echo translate('PrivacyCookiesText') ?></p>
|
<p><?php echo translate('PrivacyCookiesText') ?></p>
|
||||||
<br>
|
<br/>
|
||||||
|
|
||||||
<h6><?php echo translate('PrivacyTelemetry') ?></h6>
|
<h6><?php echo translate('PrivacyTelemetry') ?></h6>
|
||||||
<p><?php echo translate('PrivacyTelemetryText') ?></p>
|
<p><?php echo translate('PrivacyTelemetryText') ?></p>
|
||||||
<br>
|
<br/>
|
||||||
|
|
||||||
<p><?php echo translate('PrivacyTelemetryList') ?></p>
|
<p><?php echo translate('PrivacyTelemetryList') ?></p>
|
||||||
<p><?php echo translate('PrivacyMonitorList') ?></p>
|
<p><?php echo translate('PrivacyMonitorList') ?></p>
|
||||||
<p><?php echo translate('PrivacyConclusionText') ?></p>
|
<p><?php echo translate('PrivacyConclusionText') ?></p>
|
||||||
<p><?php echo buildSelect( "option", $options ); ?></p>
|
<p><?php echo htmlSelect('option', $options, ZM_TELEMETRY_DATA); ?></p>
|
||||||
|
|
||||||
<div id="contentButtons">
|
<div id="contentButtons">
|
||||||
<input type="submit" value="<?php echo translate('Apply') ?>" data-on-click-this="submitForm">
|
<button type="submit" value="Apply"><?php echo translate('Apply') ?></button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue