Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/esol.redirector/lib/PHPExcel/PHPExcel/ |
Upload File : |
<?php /** * KDAPHPExcel * * Copyright (c) 2006 - 2013 KDAPHPExcel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category KDAPHPExcel * @package KDAPHPExcel * @copyright Copyright (c) 2006 - 2013 KDAPHPExcel (http://www.codeplex.com/KDAPHPExcel) * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL * @version 1.7.9, 2013-06-02 */ KDAPHPExcel_Autoloader_KDA::Register(); // As we always try to run the autoloader before anything else, we can use it to do a few // simple checks and initialisations //KDAPHPExcel_Shared_ZipStreamWrapper::register(); // check mbstring.func_overload /*if (ini_get('mbstring.func_overload') & 2) { throw new KDAPHPExcel_Exception('Multibyte function overloading in PHP must be disabled for string functions (2).'); }*/ KDAPHPExcel_Shared_String::buildCharacterSets(); /** * KDAPHPExcel_Autoloader_KDA * * @category KDAPHPExcel * @package KDAPHPExcel * @copyright Copyright (c) 2006 - 2013 KDAPHPExcel (http://www.codeplex.com/KDAPHPExcel) */ class KDAPHPExcel_Autoloader_KDA { /** * Register the Autoloader with SPL * */ public static function Register() { if (function_exists('__autoload')) { // Register any existing autoloader function with SPL, so we don't get any clashes spl_autoload_register('__autoload'); } // Register ourselves with SPL return spl_autoload_register(array('KDAPHPExcel_Autoloader_KDA', 'Load')); } // function Register() /** * Autoload a class identified by name * * @param string $pClassName Name of the object to load */ public static function Load($pClassName){ if ((class_exists($pClassName,FALSE)) || (strpos($pClassName, 'KDAPHPExcel') !== 0)) { // Either already loaded, or not a KDAPHPExcel class request return FALSE; } $pClassFilePath = KDAPHPEXCEL_ROOT . str_replace('_',DIRECTORY_SEPARATOR,substr($pClassName, 3)) . '.php'; if ((file_exists($pClassFilePath) === FALSE) || (is_readable($pClassFilePath) === FALSE)) { // Can't load return FALSE; } require($pClassFilePath); } // function Load() }