First commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
if (!function_exists('gzopen') && function_exists('gzopen64'))
|
||||
{
|
||||
function gzopen(string $filename , string $mode, int $use_include_path = null)
|
||||
{
|
||||
return gzopen64($filename, $mode, $use_include_path);
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | This file is part of Piwigo. |
|
||||
// | |
|
||||
// | For copyright and license information, please view the COPYING.txt |
|
||||
// | file that was distributed with this source code. |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
// Recursive call
|
||||
$url = '../';
|
||||
header( 'Request-URI: '.$url );
|
||||
header( 'Content-Location: '.$url );
|
||||
header( 'Location: '.$url );
|
||||
exit();
|
||||
?>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
if (!function_exists('str_starts_with'))
|
||||
{
|
||||
function str_starts_with(string $haystack, string $needle): bool
|
||||
{
|
||||
return strlen($needle) === 0 || strpos($haystack, $needle) === 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user