<commit_before><?php 
define("MODULE_ADMIN_HEADLINE", "Newsletter versenden");

$required_permission = getconfig("newsletter_required_permission");

if($required_permission === false){
   $required_permission = 20;
}

define("MODULE_ADMIN_REQUIRED_PERMISSION", $required_permission);

define("DATE_FORMAT", getconfig("date_format"));

include getModulePath("newsletter")."newsletter_install.php";
newsletter_check_install();


function newsletter_admin(){

?>
<a href="<?php echo getModuleAdminSelfPath()?>&newsletter_action=send_newsletter">Newsletter senden</a> | 
<a href="<?php echo getModuleAdminSelfPath()?>&newsletter_action=show_subscribers">Abonnenten anzeigen</a>
<br/>
<?php
if($_GET["newsletter_action"] == "show_subscribers"){
   $query = mysql_query("SELECT * FROM ".tbname("newsletter_subscribers"). " ORDER by email");
   echo "<p>Dieser Newsletter wurde ".mysql_num_rows($query). "x abonniert.";
   if(mysql_num_rows($query) > 0){
     
     echo "<table border=1>";
     echo "<tr style=\"font-weight:bold;\"><td>E-Mail:</td>";
     echo "<td>Abonnent seit:</td>";
     echo "</tr>";
     
     while($row = mysql_fetch_assoc($query)){
        echo "<tr>".
        "<td>".
        $row["email"].
        "</td>".
        "<td>".
        date(DATE_FORMAT, $row["subscribe_date"]).
        "</td></tr>";
             
     }     
     
     echo "</table>";
   
   
   }<commit_msg>Newsletter-Modul: Link zu "Vorlage bearbeiten" hinzugefügt. Noch ohne Funktion<commit_after><?php 
define("MODULE_ADMIN_HEADLINE", "Newsletter versenden");

$required_permission = getconfig("newsletter_required_permission");

if($required_permission === false){
   $required_permission = 40;
}

define("MODULE_ADMIN_REQUIRED_PERMISSION", $required_permission);

define("DATE_FORMAT", getconfig("date_format"));

include getModulePath("newsletter")."newsletter_install.php";
newsletter_check_install();


function newsletter_admin(){

?>
<a href="<?php echo getModuleAdminSelfPath()?>&newsletter_action=send_newsletter">Newsletter senden</a> | 
<a href="<?php echo getModuleAdminSelfPath()?>&newsletter_action=show_subscribers">Abonnenten anzeigen</a> | 
<a href="<?php echo getModuleAdminSelfPath()?>&newsletter_action=edit_template">Vorlage bearbeiten</a>
<br/>
<?php
if($_GET["newsletter_action"] == "show_subscribers"){
   $query = mysql_query("SELECT * FROM ".tbname("newsletter_subscribers"). " ORDER by email");
   echo "<p>Dieser Newsletter wurde ".mysql_num_rows($query). "x abonniert.";
   if(mysql_num_rows($query) > 0){
     
     echo "<table border=1>";
     echo "<tr style=\"font-weight:bold;\"><td>E-Mail:</td>";
     echo "<td>Abonnent seit:</td>";
     echo "</tr>";
     
     while($row = mysql_fetch_assoc($query)){
        echo "<tr>".
        "<td>".
        $row["email"].
        "</td>".
        "<td>".
        date(DATE_FORMAT, $row["subscribe_date"]).
        "</td></tr>";
             
     }     
     
     echo "</table>";
   
   
   }
{'fraction_non_alphanumeric': 0.17795753286147623, 'fraction_numerical': 0.002696326255476913, 'mean_word_length': 4.234567901234568, 'pattern_counts': {'":': 0, '<': 54, '<?xml version=': 0, '>': 54, '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': '4214846', 'n_tokens_mistral': 966, 'n_tokens_neox': 979, 'n_words': 159}