<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>
*
*/


if(isset($_POST['stop']))
{
	$ssh->openConnection();
	$ssh->execute('service smbd stop');
}
if(isset($_POST['restart']))
{
	$ssh->openConnection();
	$ssh->execute('service smbd restart');
}

$ssh->openConnection();
$line=$ssh->execute('pdbedit -L',2);
foreach($line as $value)
{
	$pdbedit=explode(":",$value);
}


?>

<h3>Samba Übersicht</h3>
<fieldset>
<div class ="drittel-box">
	<h5>Aktuell angelegte User:</h5>
</div>
<div class ="zweidrittel-box lastbox">
	<h5><?=$pdbedit[0]."<br>"?></h5> 
</div>
</fieldset>

<fieldset>
<form action="index.php?p=samba" method="POST">
<div class ="drittel-box"> 
<h5>Stop</h5>
<p><b>Stoppt den Dienst sofort</b></p>
	<br><input type="submit" class="button pink" name="stop" value="stop"> 
</div>
<div class ="drittel-box lastbox">
<h5>Restart</h5>
<p><b>Startet den Dienst neu</b></p>
	<br><input type="submit" class="button black" name="restart" value="neustarten">
</div>
</div>
</form>
</fieldset>
<commit_msg>fixed: Ausgabe der aktuell angelegten User funktioniert jetzt richtig<commit_after><?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>
*
*/


if(isset($_POST['stop']))
{
	$ssh->openConnection();
	$ssh->execute('service smbd stop');
}
if(isset($_POST['restart']))
{
	$ssh->openConnection();
	$ssh->execute('service smbd restart');
}

$ssh->openConnection();
$line=$ssh->execute('pdbedit -L',2);
$ausgabe = "";
foreach($line as $value)
{
	$pdbedit=explode(":",$value);
	$ausgabe .=$pdbedit[0]."<br>";
}


?>

<h3>Samba Übersicht</h3>
<fieldset>
<div class ="drittel-box">
	<h5>Aktuell angelegte User:</h5>
</div>
<div class ="zweidrittel-box lastbox">
	<h5><?=$ausgabe."<br>"?></h5> 
</div>
</fieldset>

<fieldset>
<form action="index.php?p=samba" method="POST">
<div class ="drittel-box"> 
<h5>Stop</h5>
<p><b>Stoppt den Dienst sofort</b></p>
	<br><input type="submit" class="button pink" name="stop" value="stop"> 
</div>
<div class ="drittel-box lastbox">
<h5>Restart</h5>
<p><b>Startet den Dienst neu</b></p>
	<br><input type="submit" class="button black" name="restart" value="neustarten">
</div>
</div>
</form>
</fieldset>

{'fraction_non_alphanumeric': 0.23452012383900928, 'fraction_numerical': 0.020123839009287926, 'mean_word_length': 5.714285714285714, 'pattern_counts': {'":': 2, '<': 92, '<?xml version=': 0, '>': 104, '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': '3303658', 'n_tokens_mistral': 1091, 'n_tokens_neox': 1072, 'n_words': 205}