<commit_before><?php

/**
* Licensed under The Apache License
*
* @copyright Copyright 2012-2013 <NAME>, <NAME>, <NAME> (PaTaGa)
* @link https://github.com/pataga/SAS
* @since SAS v1.0.0
* @license Apache License v2 (http://www.apache.org/licenses/LICENSE-2.0.txt)
* @author <NAME>
*
*/

$connected = false;
$data = $server->getMySQLData();
if (is_array($data)) {
    $connected = true;
    $dbModule = new \Classes\Module\MySQL\DBHandler($data);
}

?>

<h3>MySQL</h3>
<div class="halbe-box">
    <fieldset>
        <legend>Allgemeine Informationen</legend>
        <div class="halbe-box"><span style="font-size: 13px; font-weight: bold;">Status</span></div>
        <div class="halbe-box lastbox"><span style="font-size: 13px; font-weight: bold;"><?=$connected?'Verbunden':'Nicht Verbunden'?></span></div>
        <div class="clearfix"></div>
        <div class="halbe-box"><span style="font-size: 13px; font-weight: bold;">Version</span></div>
        <div class="halbe-box lastbox"><span style="font-size: 13px; font-weight: bold;"><?=$connected?$dbModule->getVersion() :'Unbekannt'?></span></div>
        <div class="clearfix"></div>
        <div class="halbe-box"><span style="font-size: 13px; font-weight: bold;">Datenbankanzahl</span></div>
        <div class="halbe-box lastbox"><span style="font-size: 13px; font-weight: bold;"><?=$connected?$dbModule->getDatabaseCount():'Unbekannt'?></span></div>
        <div class="clearfix"></div>
        <div class="halbe-box"><span style="font-size: 13px; font-weight: bold;">Benutzeranzahl</span></div>
        <div class="halbe-box lastbox"><span style="font-size: 13px; font-weight: bold;"><?=$connected?$dbModule->getUserCount():'Unbekannt'?></span></div>
        <div class="clearfix"></div>
    </fieldset>
</div>

<div class="halbe-box lastbox">
    <fieldset>
        <legend>Konfiguration</legend>
        <div class="halbe-box"><span style="font-size: 13px; font-weight: bold;">Host</span></div>
        <div class="halbe-box lastbox"><span style="font-size: 13px; font-weight: bold;"><?=is_array($data)?$data[\Classes\Server::MYSQL_HOST]:'nicht konfiguriert'?></span></div>
        <div class="clearfix"></div>
        <div class="halbe-box"><span style="font-size: 13px; font-weight: bold;">Port</span></div>
        <div class="halbe-box lastbox"><span style="font-size: 13px; font-weight: bold;"><?=is_array($data)?$data[\Classes\Server::MYSQL_PORT]:'nicht konfiguriert'?></span></div>
        <div class="clearfix"></div>
        <div class="halbe-box"><span style="font-size: 13px; font-weight: bold;">Benutzer</span></div>
        <div class="halbe-box lastbox"><span style="font-size: 13px; font-weight: bold;"><?=is_array($data)?$data[\Classes\Server::MYSQL_USER]:'nicht konfiguriert'?></span></div>
        <div class="clearfix"></div>
    </fieldset>
</div>

<div class="clearfix"></div>
<commit_msg>Module/MySQL: Style Up - Danke Gabriel<commit_after><?php

/**
* Licensed under The Apache License
*
* @copyright Copyright 2012-2013 <NAME>, <NAME>, <NAME>zek (PaTaGa)
* @link https://github.com/pataga/SAS
* @since SAS v1.0.0
* @license Apache License v2 (http://www.apache.org/licenses/LICENSE-2.0.txt)
* @author <NAME>
*
*/

$connected = false;
$data = $server->getMySQLData();
if (is_array($data)) {
    $connected = true;
    $dbModule = new \Classes\Module\MySQL\DBHandler($data);
}

?>

<h3>MySQL</h3>
<div class="halbe-box">
    <fieldset>
        <legend>Allgemeine Informationen</legend>
        <div class="halbe-box"><span style="font-size: 13px; font-weight: bold;">Status</span></div>
        <div class="halbe-box lastbox"><?=$connected?'<span class="aktiv">Verbunden':'<span class="inaktiv">Nicht Verbunden'?></span></div>
        <div class="clearfix"></div>
        <div class="halbe-box"><span style="font-size: 13px; font-weight: bold;">Version</span></div>
        <div class="halbe-box lastbox"><span style="font-size: 13px; font-weight: bold;"><?=$connected?$dbModule->getVersion() :'Unbekannt'?></span></div>
        <div class="clearfix"></div>
        <div class="halbe-box"><span style="font-size: 13px; font-weight: bold;">Datenbankanzahl</span></div>
        <div class="halbe-box lastbox"><span style="font-size: 13px; font-weight: bold;"><?=$connected?$dbModule->getDatabaseCount():'Unbekannt'?></span></div>
        <div class="clearfix"></div>
        <div class="halbe-box"><span style="font-size: 13px; font-weight: bold;">Benutzeranzahl</span></div>
        <div class="halbe-box lastbox"><span style="font-size: 13px; font-weight: bold;"><?=$connected?$dbModule->getUserCount():'Unbekannt'?></span></div>
        <div class="clearfix"></div>
    </fieldset>
</div>

<div class="halbe-box lastbox">
    <fieldset>
        <legend>Konfiguration</legend>
        <div class="halbe-box"><span style="font-size: 13px; font-weight: bold;">Host</span></div>
        <div class="halbe-box lastbox"><span style="font-size: 13px; font-weight: bold;"><?=is_array($data)?$data[\Classes\Server::MYSQL_HOST]:'nicht konfiguriert'?></span></div>
        <div class="clearfix"></div>
        <div class="halbe-box"><span style="font-size: 13px; font-weight: bold;">Port</span></div>
        <div class="halbe-box lastbox"><span style="font-size: 13px; font-weight: bold;"><?=is_array($data)?$data[\Classes\Server::MYSQL_PORT]:'nicht konfiguriert'?></span></div>
        <div class="clearfix"></div>
        <div class="halbe-box"><span style="font-size: 13px; font-weight: bold;">Benutzer</span></div>
        <div class="halbe-box lastbox"><span style="font-size: 13px; font-weight: bold;"><?=is_array($data)?$data[\Classes\Server::MYSQL_USER]:'nicht konfiguriert'?></span></div>
        <div class="clearfix"></div>
    </fieldset>
</div>

<div class="clearfix"></div>

{'fraction_non_alphanumeric': 0.21971537660534537, 'fraction_numerical': 0.014925373134328358, 'mean_word_length': 4.584302325581396, 'pattern_counts': {'":': 0, '<': 200, '<?xml version=': 0, '>': 208, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '511982', 'n_tokens_mistral': 2076, 'n_tokens_neox': 1980, 'n_words': 328}