<commit_before><?php
#  Copyright 2003-2015 Opmantek Limited (www.opmantek.com)
#
#  ALL CODE MODIFICATIONS MUST BE SENT TO <EMAIL>
#
#  This file is part of Open-AudIT.
#
#  Open-AudIT is free software: you can redistribute it and/or modify
#  it under the terms of the GNU Affero General Public License as published
#  by the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  Open-AudIT 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 Affero General Public License for more details.
#
#  You should have received a copy of the GNU Affero General Public License
#  along with Open-AudIT (most likely in a file named LICENSE).
#  If not, see <http://www.gnu.org/licenses/>
#
#  For further information on Open-AudIT or for a license other than AGPL please see
#  www.opmantek.com or email <EMAIL>
#
# *****************************************************************************

/**
 * @author <NAME> <<EMAIL>>
 *
 * @version 1.10
 *
 * @copyright Copyright (c) 2014, Opmantek
 * @license http://www.gnu.org/licenses/agpl-3.0.html aGPL v3
 */
$images_directory = $_SERVER['DOCUMENT_ROOT'].$oa_theme_images.'/';
?>
<!-- v_display_computer -->
    <?php if (count($windows) > 0) {
    ?>
    <div id="view_summary_windows" style="float: left; width: 100%;">
    <br />
    <form action="#" method="post" class='niceforms'>
        <fieldset id="summary_windows_details" class='niceforms'>
            <legend><span style='font-size: 12pt;'>&nbsp;<?php echo __('Windows Details')?></span></legend>
            <div style="float:right; width: 100px;">
                <img class='section_image' src='<?php echo $oa_theme_images; ?>/48_<?php echo $icon; ?>.png' alt='' title='' />
            </div>
            <?php foreach ($windows as $key): ?>
                <div>
                    <div style="float:left; width:50%;">
                        <p><label for="windows_registered_user"><?php echo __('Registered User')?>: </label><span id="windows_registered_user"><?php echo print_something($key->registered_user)?></span></p>
                        <p><label for="windows_organisation"><?php echo __('Registered Org')?>: </label><span id="windows_organisation"><?php echo print_something($key->organisation)?></span></p>
                        <p><label for="windows_language"><?php echo __('Language')?>: </label><span id="windows_language"><?php echo print_something($key->language)?></span></p>
                        <p><label for="windows_country_code"><?php echo __('Country')?>: </label><span id="windows_country_code"><?php echo print_something(ucfirst(mb_strtolower($key->country_code)))?></span></p>
                        <p><label for="windows_time_caption"><?php echo __('Time (caption)')?>: </label><span id="windows_time_caption"><?php echo print_something($key->time_caption)?></span></p>
                        <p><label for="windows_time_daylight"><?php echo __('Time (daylight)')?>: </label><span id="windows_time_daylight"><?php echo print_something($key->time_daylight)?></span></p>
                        <p><label for="windows_part_of_domain"><?php echo __('Part of Domain')?>: </label><span id="windows_part_of_domain"><?php echo print_something($key->part_of_domain)?></span></p>
                        <p><label for="windows_domain_role"><?php echo __('Domain Role')?>: </label><span id="windows_domain_role"><?php echo print_something($key->domain_role)?></span></p>
                        <p><label for="os_install_date"><?php echo __('OS Install Date')?>: </label><span id="os_install_date"><?php echo print_something($system[0]->pc_date_os_installation)?></span></p>
                    </div>
                    <div style="float:left; width:40%;">
                        <p><label for="windows_workgroup"><?php echo __('Workgroup')?>: </label><span id="windows_workgroup"><?php echo print_something($key->workgroup)?></span></p>
                        <p><label for="windows_domain_short"><?php echo __('Domain')?>: </label><span id="windows_domain_short"><?php echo print_something($key->domain_short)?></span></p>
                        <p><label for="windows_domain_controller_address"><?php echo __('DC Address')?>: </label><span id="windows_domain_controller_address"><?php echo print_something($key->domain_controller_address)?></span></p>
                        <p><label for="windows_domain_controller_name"><?php echo __('DC Name')?>: </label><span id="windows_domain_controller_name"><?php echo print_something($key->domain_controller_name)?></span></p>
                        <p><label for="windows_boot_device"><?php echo __('Boot Device')?>: </label><span id="windows_boot_device"><?php echo print_something($key->boot_device)?></span></p>
                        <p><label for="windows_install_directory"><?php echo __('Install Directory')?>: </label><span id="windows_install_directory"><?php echo print_something($key->install_directory)?></span></p>
                        <p><label for="windows_service_pack"><?php echo __('Service Pack')?>: </label><span id="windows_service_pack"><?php echo print_something($key->service_pack)?></span></p>
                        <p><label for="windows_version"><?php echo __('Version')?>: </label><span id="windows_version"><?php echo print_something($key->version)?></span></p>
                        <p><label for="windows_build_number"><?php echo __('Build Number')?>: </label><span id="windows_build_number"><?php echo print_something($key->build_number)?></span></p>
                    </div>
                </div>
                <?php
                if ($key->active_directory_ou > "") { ?>
                <div style="float:left; width:90%;">
                    <label for="windows_active_directory_ou"><?php echo __('Active Directory OU')?>: </label><span id="windows_active_directory_ou"><?php echo print_something(str_replace(",", ", ", $key->active_directory_ou))?></span>
                </div>
                <?php }
                if ($key->user_name > "") { ?>
                    <div style="float:left; width:90%;">
                        <p><label for="windows_user_name"><?php echo __('Last Logged on User')?>: </label><span id="windows_user_name"><?php echo str_replace("&", "&amp;", print_something($key->user_name))?></span></p>
                    </div>
                <?php }
                $windows_service_pack = $key->service_pack;
            endforeach;
            echo display_custom_field('view_summary_windows',  $additional_fields_data, $edit);
            ?>
        </fieldset>
    </form>
    </div> <!-- end of view_summary_windows -->
    <?php } ?>

    <div id="view_hardware_processor" style="float: left; width: 100%;">
    <?php if (count($processor) > 0) {
    ?>
        <br />
        <br />
        <form action="#" method="post" class='niceforms'>
            <fieldset id="processor_details">
                <legend><span style='font-size: 12pt;'>&nbsp;<?php echo __('Processor Details')?></span></legend>
                <?php foreach ($processor as $key):
                    ?>
                    <img class='section_image' src='<?php echo $oa_theme_images.'/48_component_cpu.png'; ?>' alt='' title='' />
                    <p><label for="processor_description"><?php echo __('Description')?>: </label><span id="processor_description" class="form_field"><?php echo print_something($key->description)?></span></p>
                    <p><label for="processor_speed"><?php echo __('Speed')?>: </label><span id="processor_speed" class="form_field"><?php echo print_something($key->speed)?> MHz</span></p>
                    <p><label for="processor_count"><?php echo __('Physical Processors')?>: </label><span id="processor_count" class="form_field"><?php echo print_something($key->physical_count)?></span></p><commit_msg>Rename a html id from windows_active_directory_ou to active_directory_ou.<commit_after><?php
#  Copyright 2003-2015 Opmantek Limited (www.opmantek.com)
#
#  ALL CODE MODIFICATIONS MUST BE SENT TO <EMAIL>
#
#  This file is part of Open-AudIT.
#
#  Open-AudIT is free software: you can redistribute it and/or modify
#  it under the terms of the GNU Affero General Public License as published
#  by the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  Open-AudIT 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 Affero General Public License for more details.
#
#  You should have received a copy of the GNU Affero General Public License
#  along with Open-AudIT (most likely in a file named LICENSE).
#  If not, see <http://www.gnu.org/licenses/>
#
#  For further information on Open-AudIT or for a license other than AGPL please see
#  www.opmantek.com or email <EMAIL>
#
# *****************************************************************************

/**
 * @author <NAME> <<EMAIL>>
 *
 * @version 1.10
 *
 * @copyright Copyright (c) 2014, Opmantek
 * @license http://www.gnu.org/licenses/agpl-3.0.html aGPL v3
 */
$images_directory = $_SERVER['DOCUMENT_ROOT'].$oa_theme_images.'/';
?>
<!-- v_display_computer -->
    <?php if (count($windows) > 0) {
    ?>
    <div id="view_summary_windows" style="float: left; width: 100%;">
    <br />
    <form action="#" method="post" class='niceforms'>
        <fieldset id="summary_windows_details" class='niceforms'>
            <legend><span style='font-size: 12pt;'>&nbsp;<?php echo __('Windows Details')?></span></legend>
            <div style="float:right; width: 100px;">
                <img class='section_image' src='<?php echo $oa_theme_images; ?>/48_<?php echo $icon; ?>.png' alt='' title='' />
            </div>
            <?php foreach ($windows as $key): ?>
                <div>
                    <div style="float:left; width:50%;">
                        <p><label for="windows_registered_user"><?php echo __('Registered User')?>: </label><span id="windows_registered_user"><?php echo print_something($key->registered_user)?></span></p>
                        <p><label for="windows_organisation"><?php echo __('Registered Org')?>: </label><span id="windows_organisation"><?php echo print_something($key->organisation)?></span></p>
                        <p><label for="windows_language"><?php echo __('Language')?>: </label><span id="windows_language"><?php echo print_something($key->language)?></span></p>
                        <p><label for="windows_country_code"><?php echo __('Country')?>: </label><span id="windows_country_code"><?php echo print_something(ucfirst(mb_strtolower($key->country_code)))?></span></p>
                        <p><label for="windows_time_caption"><?php echo __('Time (caption)')?>: </label><span id="windows_time_caption"><?php echo print_something($key->time_caption)?></span></p>
                        <p><label for="windows_time_daylight"><?php echo __('Time (daylight)')?>: </label><span id="windows_time_daylight"><?php echo print_something($key->time_daylight)?></span></p>
                        <p><label for="windows_part_of_domain"><?php echo __('Part of Domain')?>: </label><span id="windows_part_of_domain"><?php echo print_something($key->part_of_domain)?></span></p>
                        <p><label for="windows_domain_role"><?php echo __('Domain Role')?>: </label><span id="windows_domain_role"><?php echo print_something($key->domain_role)?></span></p>
                        <p><label for="os_install_date"><?php echo __('OS Install Date')?>: </label><span id="os_install_date"><?php echo print_something($system[0]->pc_date_os_installation)?></span></p>
                    </div>
                    <div style="float:left; width:40%;">
                        <p><label for="windows_workgroup"><?php echo __('Workgroup')?>: </label><span id="windows_workgroup"><?php echo print_something($key->workgroup)?></span></p>
                        <p><label for="windows_domain_short"><?php echo __('Domain')?>: </label><span id="windows_domain_short"><?php echo print_something($key->domain_short)?></span></p>
                        <p><label for="windows_domain_controller_address"><?php echo __('DC Address')?>: </label><span id="windows_domain_controller_address"><?php echo print_something($key->domain_controller_address)?></span></p>
                        <p><label for="windows_domain_controller_name"><?php echo __('DC Name')?>: </label><span id="windows_domain_controller_name"><?php echo print_something($key->domain_controller_name)?></span></p>
                        <p><label for="windows_boot_device"><?php echo __('Boot Device')?>: </label><span id="windows_boot_device"><?php echo print_something($key->boot_device)?></span></p>
                        <p><label for="windows_install_directory"><?php echo __('Install Directory')?>: </label><span id="windows_install_directory"><?php echo print_something($key->install_directory)?></span></p>
                        <p><label for="windows_service_pack"><?php echo __('Service Pack')?>: </label><span id="windows_service_pack"><?php echo print_something($key->service_pack)?></span></p>
                        <p><label for="windows_version"><?php echo __('Version')?>: </label><span id="windows_version"><?php echo print_something($key->version)?></span></p>
                        <p><label for="windows_build_number"><?php echo __('Build Number')?>: </label><span id="windows_build_number"><?php echo print_something($key->build_number)?></span></p>
                    </div>
                </div>
                <?php
                if ($key->active_directory_ou > "") { ?>
                <div style="float:left; width:90%;">
                    <label for="active_directory_ou"><?php echo __('Active Directory OU')?>: </label><span id="active_directory_ou"><?php echo print_something(str_replace(",", ", ", $key->active_directory_ou))?></span>
                </div>
                <?php }
                if ($key->user_name > "") { ?>
                    <div style="float:left; width:90%;">
                        <p><label for="windows_user_name"><?php echo __('Last Logged on User')?>: </label><span id="windows_user_name"><?php echo str_replace("&", "&amp;", print_something($key->user_name))?></span></p>
                    </div>
                <?php }
                $windows_service_pack = $key->service_pack;
            endforeach;
            echo display_custom_field('view_summary_windows',  $additional_fields_data, $edit);
            ?>
        </fieldset>
    </form>
    </div> <!-- end of view_summary_windows -->
    <?php } ?>

    <div id="view_hardware_processor" style="float: left; width: 100%;">
    <?php if (count($processor) > 0) {
    ?>
        <br />
        <br />
        <form action="#" method="post" class='niceforms'>
            <fieldset id="processor_details">
                <legend><span style='font-size: 12pt;'>&nbsp;<?php echo __('Processor Details')?></span></legend>
                <?php foreach ($processor as $key):
                    ?>
                    <img class='section_image' src='<?php echo $oa_theme_images.'/48_component_cpu.png'; ?>' alt='' title='' />
                    <p><label for="processor_description"><?php echo __('Description')?>: </label><span id="processor_description" class="form_field"><?php echo print_something($key->description)?></span></p>
                    <p><label for="processor_speed"><?php echo __('Speed')?>: </label><span id="processor_speed" class="form_field"><?php echo print_something($key->speed)?> MHz</span></p>
                    <p><label for="processor_count"><?php echo __('Physical Processors')?>: </label><span id="processor_count" class="form_field"><?php echo print_something($key->physical_count)?></span></p>
{'fraction_non_alphanumeric': 0.18648614923883206, 'fraction_numerical': 0.005864736710756177, 'mean_word_length': 3.354523227383863, 'pattern_counts': {'":': 0, '<': 479, '<?xml version=': 0, '>': 539, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, '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': '3228324', 'n_tokens_mistral': 4640, 'n_tokens_neox': 4531, 'n_words': 992}