<commit_before><?php
// Site Config:
$hp = $this;
$right = $hp->getright();
$level = $_SESSION['level'];
$get = $hp->get();
$post = $hp->post();
$dbprfix = $hp->getprfix();
$lang = $hp->getlangclass();
$error = $hp->geterror();
$info = $hp->getinfo();
$fp = $hp->fp;


if (isset($post["s"]) or isset($get["s"]))
{
  if (isset($get["s"]))
  {
    $s = $get["s"];
  } else
  {
    $s = $post["s"];  
  }
  
  
  
  $resultSub = array();

  // Frage alle Eintrge im Subpage System ab:
  $sql = "SELECT * FROM `$dbprfix"."subpages` WHERE `name` LIKE '%$s%' OR `content` LIKE '%$s%';";
  $erg = $hp->mysqlquery($sql);
  while ($row = mysql_fetch_array($erg))
  {
   $resultSub[] = $row;  
  }
  
  $resultNews = array();
  
  //Frage alle Newsmeldungen / Projekte ab
  $sql = "SELECT * FROM `$dbprfix"."news` WHERE `text` LIKE '%$s%' OR `titel` LIKE '%$s%';";
  $erg = $hp->mysqlquery($sql);
  while ($row = mysql_fetch_array($erg))
  {
   $resultNews[] = $row;  
  }

  echo "<h2>TestAusgabe</h2>";


  echo "<pre>";
  echo "Ergebnisse Unterseiten:\r\n";
  print_r($resultSub);
  echo "Ergebnisse Newsmeldungen / Projekte:\r\n";
  print_r($resultNews);
  echo "</pre>";
<commit_msg>Serach Fix<commit_after><?php
// Site Config:
$hp = $this;
$right = $hp->getright();
$level = $_SESSION['level'];
$get = $hp->get();
$post = $hp->post();
$dbprfix = $hp->getprfix();
$lang = $hp->getlangclass();
$error = $hp->geterror();
$info = $hp->getinfo();
$fp = $hp->fp;


if (isset($post["s"]) or isset($get["s"]))
{
  if (isset($get["s"]))
  {
    $s = $get["s"];
  } else
  {
    $s = $post["s"];  
  }
  
  $s = str_replace("", "&uuml;", $s);
  $s = str_replace("", "&Uuml;", $s);
  $s = str_replace("", "&ouml;", $s);
  $s = str_replace("", "&Ouml;", $s);
  $s = str_replace("", "&auml;", $s);
  $s = str_replace("", "&Auml;", $s);
  $s = str_replace("", "&szlig;", $s);
  
  $resultSub = array();

  // Frage alle Eintrge im Subpage System ab:
  $sql = "SELECT * FROM `$dbprfix"."subpages` WHERE `name` LIKE '%$s%' OR `content` LIKE '%$s%';";
  $erg = $hp->mysqlquery($sql);
  while ($row = mysql_fetch_array($erg))
  {
   $resultSub[] = $row;  
  }
  
  $resultNews = array();
  
  //Frage alle Newsmeldungen / Projekte ab
  $sql = "SELECT * FROM `$dbprfix"."news` WHERE `text` LIKE '%$s%' OR `titel` LIKE '%$s%';";
  $erg = $hp->mysqlquery($sql);
  while ($row = mysql_fetch_array($erg))
  {
   $resultNews[] = $row;  
  }

  echo "<h2>TestAusgabe</h2>";


  echo "<pre>";
  echo "Ergebnisse Unterseiten:\r\n";
  print_r($resultSub);
  echo "Ergebnisse Newsmeldungen / Projekte:\r\n";
  print_r($resultNews);
  echo "</pre>";

{'fraction_non_alphanumeric': 0.25601834161253345, 'fraction_numerical': 0.0015284677111196026, 'mean_word_length': 3.625441696113074, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 31, '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': '3900029', 'n_tokens_mistral': 1124, 'n_tokens_neox': 1105, 'n_words': 235}