From: <ch...@us...> - 2011-09-25 19:18:37
|
Revision: 37656 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=37656&view=rev Author: chealer Date: 2011-09-25 19:18:30 +0000 (Sun, 25 Sep 2011) Log Message: ----------- [REF] remove lib/setup/compat.php (unused since r33747) Revision Links: -------------- http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=33747&view=rev Modified Paths: -------------- trunk/installer/tiki-installer.php trunk/tiki-setup_base.php Removed Paths: ------------- trunk/lib/setup/compat.php Modified: trunk/installer/tiki-installer.php =================================================================== --- trunk/installer/tiki-installer.php 2011-09-25 18:12:07 UTC (rev 37655) +++ trunk/installer/tiki-installer.php 2011-09-25 19:18:30 UTC (rev 37656) @@ -792,7 +792,6 @@ $tikilib = new TikiLib; require_once 'lib/userslib.php'; $userlib = new UsersLib; - require_once 'lib/setup/compat.php'; require_once 'lib/tikidate.php'; $tikidate = new TikiDate(); } Deleted: trunk/lib/setup/compat.php =================================================================== --- trunk/lib/setup/compat.php 2011-09-25 18:12:07 UTC (rev 37655) +++ trunk/lib/setup/compat.php 2011-09-25 19:18:30 UTC (rev 37656) @@ -1,51 +0,0 @@ -<?php -// (c) Copyright 2002-2011 by authors of the Tiki Wiki CMS Groupware Project -// -// All Rights Reserved. See copyright.txt for details and a complete list of authors. -// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. -// $Id$ - -/* - This file includes soft implementations of functions introduced in new versions of PHP. -*/ - -/* \brief substr with a utf8 string - works only with $start and $length positive or nuls - * This function is the same as substr but works with multibyte - * In a multybyte sequence, the first byte of a multibyte sequence that represents a non-ASCII character is always in the range 0xC0 to 0xFD - * and it indicates how many bytes follow for this character. - * All further bytes in a multibyte sequence are in the range 0x80 to 0xBF. - */ -/* -if ( ! function_exists('mb_substr') ) { - function mb_substr($str, $start, $len = '', $encoding="UTF-8"){ - $limit = strlen($str); - for ($s = 0; $start > 0;--$start) {// found the real start - if ($s >= $limit) - break; - if ($str[$s] <= "\x7F") - ++$s; - else { - ++$s; // skip length - while ($str[$s] >= "\x80" && $str[$s] <= "\xBF") - ++$s; - } - } - if ($len == '') - return substr($str, $s); - else { - for ($e = $s; $len > 0; --$len) {//found the real end - if ($e >= $limit) - break; - if ($str[$e] <= "\x7F") - ++$e; - else { - ++$e;//skip length - while ($str[$e] >= "\x80" && $str[$e] <= "\xBF" && $e < $limit) - ++$e; - } - } - return substr($str, $s, $e - $s); - } - } -} -*/ Modified: trunk/tiki-setup_base.php =================================================================== --- trunk/tiki-setup_base.php 2011-09-25 18:12:07 UTC (rev 37655) +++ trunk/tiki-setup_base.php 2011-09-25 19:18:30 UTC (rev 37656) @@ -33,7 +33,6 @@ ini_set('allow_call_time_pass_reference', 'On'); // --------------------------------------------------------------------- // inclusions of mandatory stuff and setup -require_once ('lib/setup/compat.php'); require_once ('lib/tikiticketlib.php'); require_once ('db/tiki-db.php'); require_once ('lib/tikilib.php'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |