<commit_before><?php
//
// ZoneMinder web options view file, $Date: 2009-02-19 14:17:33 +0000 (Thu, 19 Feb 2009) $, $Revision: 2782 $
// Copyright (C) 2001-2008 <NAME>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//

if ( !canView( 'System' ) )
{
    $view = "error";
    return;
}

$canEdit = canEdit( 'System' );

$tabs = array();
$tabs['skins'] = $SLANG['Display']; // change me to be supported by SLANG...
$tabs['system'] = $SLANG['System'];
$tabs['config'] = $SLANG['Config'];
$tabs['paths'] = $SLANG['Paths'];
$tabs['web'] = $SLANG['Web'];
$tabs['images'] = $SLANG['Images'];
$tabs['debug'] = $SLANG['Debug'];
$tabs['network'] = $SLANG['Network'];
$tabs['mail'] = $SLANG['Email'];
$tabs['ftp'] = $SLANG['FTP'];
$tabs['x10'] = $SLANG['X10'];
$tabs['highband'] = $SLANG['HighBW'];
$tabs['medband'] = $SLANG['MediumBW'];
$tabs['lowband'] = $SLANG['LowBW'];
$tabs['phoneband'] = $SLANG['PhoneBW'];
if ( ZM_OPT_USE_AUTH )
    $tabs['users'] = $SLANG['Users'];

if ( isset($_REQUEST['tab']) )
    $tab = validHtmlStr($_REQUEST['tab']);
else
    $tab = "system";

$focusWindow = true;

xhtmlHeaders( __FILE__, $SLANG['Options'] );
?>
<body>
    <?php require("header.php"); ?>
    <div id="content">
      <ul class="tabList">
<?php
foreach ( $tabs as $name=>$value )
{
    if ( $tab == $name )
    {
?>
        <li class="active"><?= $value ?></li>
<?php
    }
    else
    {
?>
        <li><a href="?view=<?= $view ?>&tab=<?= $name ?>"><?= $value ?></a></li>
<?php
    }
}
?>
      </ul>
      <div class="clear"></div>
<?php 
if($tab == 'skins') {
	$current_skin = $_COOKIE['zmSkin'];
	$current_aspect = @$_COOKIE['zmAspectRatio'];
	if(isset($_GET['skin-choice'],$_GET['aspectratio'])) {
		setcookie('zmSkin',$_GET['skin-choice'],time()+3600*24*30);
		//header("Location: index.php?view=options&tab=skins&reset_parent=1");
		//echo '<script type="text/javascript">window.opener.location.reload();window.close();</script>';
	
		setCookie('zmAspectRatio',$_GET['aspectratio'],time()+3600*24*30);

		header("Location: index.php");
		exit;
	}

?>
	<form name="optionsForm" method="get" action="<?= $_SERVER['PHP_SELF'] ?>">
        <input type="hidden" name="view" value="<?= $view ?>"/><commit_msg>Classes added for styling<commit_after><?php
//
// ZoneMinder web options view file, $Date: 2009-02-19 14:17:33 +0000 (Thu, 19 Feb 2009) $, $Revision: 2782 $
// Copyright (C) 2001-2008 <NAME>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//

if ( !canView( 'System' ) )
{
    $view = "error";
    return;
}

$canEdit = canEdit( 'System' );

$tabs = array();
$tabs['skins'] = $SLANG['Display']; // change me to be supported by SLANG...
$tabs['system'] = $SLANG['System'];
$tabs['config'] = $SLANG['Config'];
$tabs['paths'] = $SLANG['Paths'];
$tabs['web'] = $SLANG['Web'];
$tabs['images'] = $SLANG['Images'];
$tabs['debug'] = $SLANG['Debug'];
$tabs['network'] = $SLANG['Network'];
$tabs['mail'] = $SLANG['Email'];
$tabs['ftp'] = $SLANG['FTP'];
$tabs['x10'] = $SLANG['X10'];
$tabs['highband'] = $SLANG['HighBW'];
$tabs['medband'] = $SLANG['MediumBW'];
$tabs['lowband'] = $SLANG['LowBW'];
$tabs['phoneband'] = $SLANG['PhoneBW'];
if ( ZM_OPT_USE_AUTH )
    $tabs['users'] = $SLANG['Users'];

if ( isset($_REQUEST['tab']) )
    $tab = validHtmlStr($_REQUEST['tab']);
else
    $tab = "system";

$focusWindow = true;

xhtmlHeaders( __FILE__, $SLANG['Options'] );
?>
<body class="zm zm-options">
    <?php require("header.php"); ?>
    <div id="content">
      <ul class="tabList">
<?php
foreach ( $tabs as $name=>$value )
{
    if ( $tab == $name )
    {
?>
        <li class="active ui-corner-top ui-tabs-active ui-state-active"><?= $value ?></li>
<?php
    }
    else
    {
?>
        <li class="ui-corner-top"><a href="?view=<?= $view ?>&tab=<?= $name ?>"><?= $value ?></a></li>
<?php
    }
}
?>
      </ul>
      <div class="clear"></div>
<?php 
if($tab == 'skins') {
	$current_skin = $_COOKIE['zmSkin'];
	$current_aspect = @$_COOKIE['zmAspectRatio'];
	if(isset($_GET['skin-choice'],$_GET['aspectratio'])) {
		setcookie('zmSkin',$_GET['skin-choice'],time()+3600*24*30);
		//header("Location: index.php?view=options&tab=skins&reset_parent=1");
		//echo '<script type="text/javascript">window.opener.location.reload();window.close();</script>';
	
		setCookie('zmAspectRatio',$_GET['aspectratio'],time()+3600*24*30);

		header("Location: index.php");
		exit;
	}

?>
	<form name="optionsForm" method="get" action="<?= $_SERVER['PHP_SELF'] ?>">
        <input type="hidden" name="view" value="<?= $view ?>"/>
{'fraction_non_alphanumeric': 0.21794213319637049, 'fraction_numerical': 0.02465331278890601, 'mean_word_length': 4.37442502299908, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1501393', 'n_tokens_mistral': 2119, 'n_tokens_neox': 1993, 'n_words': 523}