Verzeichnisstruktur phpBB-3.2.0


Veröffentlicht
06.01.2017

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

iconv.php

Zuletzt modifiziert: 09.10.2024, 12:58 - Dateigröße: 2.90 KiB


01  <?php
02   
03  /*
04   * Copyright (C) 2016 Nicolas Grekas - p@tchwork.com
05   *
06   * This library is free software; you can redistribute it and/or modify it
07   * under the terms of the (at your option):
08   * Apache License v2.0 (http://apache.org/licenses/LICENSE-2.0.txt), or
09   * GNU General Public License v2.0 (http://gnu.org/licenses/gpl-2.0.txt).
10   */
11   
12  use Patchwork\PHP\Shim as s;
13   
14  const ICONV_IMPL = 'Patchwork';
15  const ICONV_VERSION = '1.0';
16  const ICONV_MIME_DECODE_STRICT = 1;
17  const ICONV_MIME_DECODE_CONTINUE_ON_ERROR = 2;
18   
19  @trigger_error('You are using a fallback implementation of the iconv extension. Installing the native one is highly recommended instead.', E_USER_DEPRECATED);
20   
21  function iconv($from, $to, $s) {return s\Iconv::iconv($from, $to, $s);}
22  function iconv_get_encoding($type = 'all') {return s\Iconv::iconv_get_encoding($type);}
23  function iconv_set_encoding($type, $charset) {return s\Iconv::iconv_set_encoding($type, $charset);}
24  function iconv_mime_encode($name, $value, $pref = null) {return s\Iconv::iconv_mime_encode($name, $value, $pref);}
25  function ob_iconv_handler($buffer, $mode) {return s\Iconv::ob_iconv_handler($buffer, $mode);}
26  function iconv_mime_decode_headers($encoded_headers, $mode = 0, $enc = null) {return s\Iconv::iconv_mime_decode_headers($encoded_headers, $mode, $enc);}
27   
28  if (extension_loaded('mbstring'))
29  {
30      function iconv_strlen($s, $enc = null)                               {null === $enc and $enc = s\Iconv::$internal_encoding; return mb_strlen($s, $enc);}
31      function iconv_strpos($s, $needle, $offset = 0, $enc = null)         {null === $enc and $enc = s\Iconv::$internal_encoding; return mb_strpos($s, $needle, $offset, $enc);}
32      function iconv_strrpos($s, $needle, $enc = null)                     {null === $enc and $enc = s\Iconv::$internal_encoding; return mb_strrpos($s, $needle, 0, $enc);}
33      function iconv_substr($s, $start, $length = 2147483647, $enc = null) {null === $enc and $enc = s\Iconv::$internal_encoding; return mb_substr($s, $start, $length, $enc);}
34      function iconv_mime_decode($encoded_headers, $mode = 0, $enc = null) {null === $enc and $enc = s\Iconv::$internal_encoding; return mb_decode_mimeheader($encoded_headers, $mode, $enc);}
35  }
36  else
37  {
38      if (extension_loaded('xml'))
39      {
40          function iconv_strlen($s, $enc = null) {return s\Iconv::strlen1($s, $enc);}
41      }
42      else
43      {
44          function iconv_strlen($s, $enc = null) {return s\Iconv::strlen2($s, $enc);}
45      }
46   
47      function iconv_strpos($s, $needle, $offset = 0, $enc = null)         {return s\Iconv::iconv_strpos($s, $needle, $offset, $enc);}
48      function iconv_strrpos($s, $needle, $enc = null)                     {return s\Iconv::iconv_strrpos($s, $needle, $enc);}
49      function iconv_substr($s, $start, $length = 2147483647, $enc = null) {return s\Iconv::iconv_substr($s, $start, $length, $enc);}
50      function iconv_mime_decode($encoded_headers, $mode = 0, $enc = null) {return s\Iconv::iconv_mime_decode($encoded_headers, $mode, $enc);}
51  }
52