<commit_before><?php
include_once "init.php";
function generateSysReport(){
  $str .= "<h1 style='text-align:center;'>";
  $str .= "sysreport für ";
  $str .= "UliCMS ". cms_version();
  $str .= "</h1>";
  $str .= "\n";
  $str .= "PHP Version ".phpversion()."\n";
  $str .= "<h3>Module</h3>";
  $extensions = get_loaded_extensions();
  $str .= "<ol>";
  foreach($extensions as $extension)
    $str .= "<li>".$extension."</li>";
  $str .= "</ol>";
  
  $str .= "<h2>Betriebssystem des Servers</h2>";
  $str .= php_uname()."\n";
  $str .= "<h2>Client</h2>"
  $str .= $_SERVER['HTTP_USER_AGENT']
    <commit_msg>upload tmp dir<commit_after><?php
include_once "init.php";

@session_start();
function generateSysReport(){
  $str .= "<h1 style='text-align:center;'>";
  $str .= "sysreport für ";
  $str .= "UliCMS ". cms_version();
  $str .= "</h1>";
  $str .= "\n";
  $str .= "PHP Version ".phpversion()."\n";
  $tmp_dir = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir();

  $str .= "upload_tmp_dir: " . $tmp_dir."\n";
  $str .= "<h3>Module</h3>";
  $extensions = get_loaded_extensions();
  $str .= "<ol>";
  foreach($extensions as $extension)
    $str .= "<li>".htmlspecialchars($extension)."</li>";
  $str .= "</ol>";
  
  $str .= "<h2>Betriebssystem des Servers</h2>";
  $str .= php_uname()."\n";
  $str .= "<h2>Client</h2>";
  $str .= "Useragent: " . htmlspecialchars($_SERVER['HTTP_USER_AGENT'])."\n";
  
  $str.= "<h2>MySQL</h2>";
  $query = db_query("SELECT @@VERSION as version");
  $result = db_fetch_object($query);
  $str .= "Server Version: ". htmlspecialchars($result->version)."\n";
  
  $str .= "<h2>Derzeit angemeldete Benutzer</h2>";
  $users_online = db_query("SELECT * FROM " . tbname("users") . " WHERE last_action > " . (time() - 300) . " ORDER BY username");
  $str .= "<ol>";
  while($row = db_fetch_object($users_online)){
     $str .= "<li>".htmlspecialchars($row -> username)."</li>";
  }
    
  $str .= "</ol>";
{'fraction_non_alphanumeric': 0.2530612244897959, 'fraction_numerical': 0.01173469387755102, 'mean_word_length': 3.736714975845411, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 38, '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': '4763323', 'n_tokens_mistral': 746, 'n_tokens_neox': 740, 'n_words': 138}