<commit_before><?php
    if (isset($_POST['install'])) {
        $ssh->openConnection();
        $ssh->execute('apt-get install samba -yf');
        $smbconf = "
[global]
   workgroup = WORKGROUP
   server string = %h server (Samba, Ubuntu)
   wins support = no
   dns proxy = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog only = no
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
   encrypt passwords = true
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no

        ";

        $ssh->execute('echo '.$smbconf.' > /etc/samba/smb.conf');
        $mysql->Query("UPDATE sas_server_data SET samba=1 WHERE id = ".$_SESSION['server_id']);
        //$loader->reload();
    }
?>

<fieldset>
    <h5>Samba wurde noch nicht von SAS eingerichtet. Bitte klicken Sie auf "Samba Installation" um Samba in SAS verf&uuml;gbar zu machen.</h5>
    <form action="?p=samba&s=install" method="post">
        <input type="submit" name="install" value="Samba Installation" class="button black">
    </form>
</fieldset><commit_msg>Module/Samba: Behebe Fehler in der Samba Installation<commit_after><?php
    if (isset($_POST['install'])) {
        $ssh->openConnection();
        $ssh->execute('apt-get install samba -yf');
        $smbconf = "
[global]
   workgroup = WORKGROUP
   server string = %h server (Samba, Ubuntu)
   wins support = no
   dns proxy = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog only = no
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
   encrypt passwords = true
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no

        ";

        $ssh->execute('echo '.$smbconf.' > /etc/samba/smb.conf');
        $mysql->Query("UPDATE sas_server_data SET samba=1 WHERE id = ".$session->GetServerID());
        //$loader->reload();
    }
?>

<fieldset>
    <h5>Samba wurde noch nicht von SAS eingerichtet. Bitte klicken Sie auf "Samba Installation" um Samba in SAS verf&uuml;gbar zu machen.</h5>
    <form action="?p=samba&s=install" method="post">
        <input type="submit" name="install" value="Samba Installation" class="button black">
    </form>
</fieldset>
{'fraction_non_alphanumeric': 0.1322570630239056, 'fraction_numerical': 0.007451102142191866, 'mean_word_length': 2.83115338882283, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 32, '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': '4611178', 'n_tokens_mistral': 1147, 'n_tokens_neox': 1114, 'n_words': 307}