Revert "Added polyfills (#214)"

This reverts commit 82dfc414da.
This commit is contained in:
Roman Kelesidis 2023-08-07 23:50:57 +07:00
parent 1c23790442
commit 43cf31a439
4 changed files with 7 additions and 72 deletions

View File

@ -1,13 +1,5 @@
# 📖 Change Log # 📖 Change Log
## [v2.1.5-2023.08](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.08) (2023-09-04) (В разработке)
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.07...v2.1.5-2023.08)
**Merged pull requests:**
- Release v2.1.5-2023.08 🎉
- Added polyfills [\#214](https://github.com/torrentpier/torrentpier-lts/pull/214) ([belomaxorka](https://github.com/belomaxorka))
## [v2.1.5-2023.07](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.07) (2023-08-04) ## [v2.1.5-2023.07](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.07) (2023-08-04)
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.06...v2.1.5-2023.07) [Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.06...v2.1.5-2023.07)

View File

@ -28,9 +28,6 @@ if (isset($_SERVER['HTTP_CF_CONNECTING_IP']))
// Get initial config // Get initial config
require(BB_ROOT . 'library/config.php'); require(BB_ROOT . 'library/config.php');
// Load polyfills
require(BB_ROOT . 'library/includes/polyfills.php');
// Load Zend Framework // Load Zend Framework
use Zend\Loader\StandardAutoloader; use Zend\Loader\StandardAutoloader;
require(BB_ROOT . 'library/Zend/Loader/StandardAutoloader.php'); require(BB_ROOT . 'library/Zend/Loader/StandardAutoloader.php');
@ -74,6 +71,11 @@ define('TOR_TYPE_SILVER', 2);
define('GUEST_UID', -1); define('GUEST_UID', -1);
define('BOT_UID', -746); define('BOT_UID', -746);
function sqlite3_escape_string ($str)
{
return SQLite3::escapeString($str);
}
/** /**
* Database * Database
*/ */

View File

@ -15,8 +15,8 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
$domain_ssl = false; $domain_ssl = false;
// Version info // Version info
$bb_cfg['tp_version'] = '2.1.5-2023.08'; $bb_cfg['tp_version'] = '2.1.5-2023.07';
$bb_cfg['tp_release_date'] = '04-09-2023'; $bb_cfg['tp_release_date'] = '04-08-2023';
$bb_cfg['tp_release_state'] = 'LTS'; $bb_cfg['tp_release_state'] = 'LTS';
$bb_cfg['tp_zf_version'] = '2.4.13'; $bb_cfg['tp_zf_version'] = '2.4.13';

View File

@ -1,59 +0,0 @@
<?php
if (!defined('BB_ROOT')) die(basename(__FILE__));
function sqlite3_escape_string($str)
{
return SQLite3::escapeString($str);
}
if (!function_exists('boolval')) {
function boolval($val)
{
return (bool)$val;
}
}
if (!function_exists('trait_exists')) {
function trait_exists($class, $autoload = true)
{
return $autoload && \class_exists($class, $autoload) && false;
}
}
if (!function_exists('class_uses')) {
function class_uses($class, $autoload = true)
{
if (\is_object($class) || \class_exists($class, $autoload) || \interface_exists($class, false)) {
return array();
}
return false;
}
}
if (50509 === PHP_VERSION_ID && 4 === PHP_INT_SIZE) {
// Missing functions in PHP 5.5.9 - affects 32 bit builds of Ubuntu 14.04LTS
// See https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1315888
if (!function_exists('gzopen') && function_exists('gzopen64')) {
function gzopen($filename, $mode, $use_include_path = 0)
{
return gzopen64($filename, $mode, $use_include_path);
}
}
if (!function_exists('gzseek') && function_exists('gzseek64')) {
function gzseek($fp, $offset, $whence = SEEK_SET)
{
return gzseek64($fp, $offset, $whence);
}
}
if (!function_exists('gztell') && function_exists('gztell64')) {
function gztell($fp)
{
return gztell64($fp);
}
}
}