From e17392e46259e6f2e012017987cf7c31c171488f Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sun, 28 Oct 2018 19:56:27 +0100 Subject: abstract config NWY --- w/fn/w.fn.php | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) (limited to 'w/fn') diff --git a/w/fn/w.fn.php b/w/fn/w.fn.php index fe3ea48..558ae67 100644 --- a/w/fn/w.fn.php +++ b/w/fn/w.fn.php @@ -135,42 +135,7 @@ function str_clean(string $string) return str_replace(' ', '_', strtolower(strip_tags($string))); } -function sumparser($text) -{ - preg_match_all('#(.+)#iU', $text, $out); - - - $sum = []; - foreach ($out[2] as $key => $value) { - $sum[$value][$out[1][$key]] = $out[3][$key]; - } - - - $sumstring = ''; - $last = 0; - foreach ($sum as $title => $list) { - foreach ($list as $h => $link) { - if($h > $last) { - for ($i = 1; $i <= ($h - $last); $i++) { - $sumstring .= ''; - } - $sumstring .= '
  • '.$link.'
  • ' ; - } elseif ($h = $last) { - $sumstring .= '
  • '.$link.'
  • ' ; - } - $last = $h; - } - } - for ($i = 1; $i <= ($last); $i++) { - $sumstring .= ''; - } - return $sumstring; -} + ?> \ No newline at end of file -- cgit v1.2.3