Version 2.3.6

This commit is contained in:
Neo committed 2025-12-19 00:26:08 -08:00
1 parent a3bb603c96
commit 19b38c7c74
764 files changed
+143731 -118164

No files matched your search

+15 -22
View File
@@ -2,22 +2,15 @@
/*
+---------------------------------------------------------------------------
| Invision Power Board 2.2.2
| =============================================
| Invision Power Board
| ========================================
| by Matthew Mecham
| (c) 2001 - 2006 Invision Power Services, Inc.
| (c) 2004 Invision Power Services
| http://www.invisionpower.com
| =============================================
| Web: http://www.invisionboard.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Monday 05th of March 2007 10:10:55 PM
| Release: e3790216629e5a2aaf37070b32237f06
| Licence Info: http://www.invisionboard.com/?license
| http://www.ibresource.ru/license
| ========================================
+---------------------------------------------------------------------------
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
| INVISION POWER BOARD IS NOT FREE SOFTWARE!
| http://www.invisionboard.com
+---------------------------------------------------------------------------
|
| > File Management Functions
@@ -145,7 +138,7 @@ class class_file_management
if ( ! file_exists( $file_location ) )
{
$this->errors[] = "Ôàéë '$file_location' íå ñóùåñòâóåò, ïðîâåðüòå ïóòü.";
$this->errors[] = "File '$file_location' does not exist, please check the path.";
return;
}
@@ -228,7 +221,7 @@ class class_file_management
if ( ! $url_parts['host'] )
{
$this->errors[] = "Íå íàéäåí õîñò â çàäàííîì URL '$file_location'!";
$this->errors[] = "No host found in the URL '$file_location'!";
return FALSE;
}
@@ -237,7 +230,7 @@ class class_file_management
//-------------------------------
$host = $url_parts['host'];
$port = ( isset($url_parts['port']) ) ? $url_parts['port'] : 80;
$port = ( isset($url_parts['port']) ) ? $url_parts['port'] : ( $url_parts['scheme'] == 'https' ? 443 : 80 );
//-------------------------------
// Tidy up path
@@ -261,9 +254,9 @@ class class_file_management
// Open connection
//-------------------------------
if ( ! $fp = @fsockopen( $host, $port, $errno, $errstr, $fsocket_timeout ) )
if ( ! $fp = @fsockopen( $port == 443 ? "ssl://" . $host : $host, $port, $errno, $errstr, $fsocket_timeout ) )
{
$this->errors[] = "Ñîåäèíåíèå ïðåðâàíî óäàëåííûì ñåðâåðîì $host";
$this->errors[] = "Could not establish a connection with $host";
return FALSE;
}
@@ -278,7 +271,7 @@ class class_file_management
if ( ! fputs( $fp, "GET $path HTTP/1.0\r\nHost:$host\r\nConnection: Keep-Alive\r\n{$final_carriage}" ) )
{
$this->errors[] = "Íå âîçìîæíî îòïðàâèòü çàïðîñ óäàëåííîìó ñåðâåðó $host!";
$this->errors[] = "Unable to send request to $host!";
return FALSE;
}
@@ -290,7 +283,7 @@ class class_file_management
if ( ! fputs( $fp, $header ) )
{
$this->errors[] = "Íå óäàëîñü àâòîðèçîâàòüñÿ!";
$this->errors[] = "Authorization Failed!";
return FALSE;
}
}
@@ -375,7 +368,7 @@ class class_file_management
if ( ! is_dir( $from_path ) )
{
$this->errors[] = "Íå âîçìîæíî íàéòè äèðåêòîðèþ '$from_path'";
$this->errors[] = "Could not locate directory '$from_path'";
return FALSE;
}
@@ -383,7 +376,7 @@ class class_file_management
{
if ( ! @mkdir( $to_path, $mode ) )
{
$this->errors[] = "Íå âîçìîæíî ñîçäàòü äèðåêòîðèþ '$to_path' ïðîâåðüòå ïðàâà äîñòóïà (CHMOD) è ïîïðîáóéòå ñíîâà";
$this->errors[] = "Could not create directory '$to_path' please check the CHMOD permissions and re-try";
return FALSE;
}
else