mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Исправления ошибок
Окончательное подключение ZF2, ошибки с редиректом, редирект если нет такой темы, проблемы старого аттач-мода. Нужно выложить 4 ALPHA-билд.
This commit is contained in:
parent
449b519f72
commit
c69eec1b41
5 changed files with 8 additions and 5 deletions
|
@ -20,8 +20,10 @@ header('X-Frame-Options: SAMEORIGIN');
|
|||
require(BB_ROOT . 'library/config.php');
|
||||
|
||||
// Load Zend Framework
|
||||
require_once(BB_ROOT . 'library/Zend/Loader/AutoloaderFactory.php');
|
||||
Zend\Loader\AutoloaderFactory::factory(array());
|
||||
use Zend\Loader\StandardAutoloader;
|
||||
require(BB_ROOT . 'library/Zend/Loader/StandardAutoloader.php');
|
||||
$loader = new StandardAutoloader(array('autoregister_zf' => true));
|
||||
$loader->register();
|
||||
|
||||
$server_protocol = ($bb_cfg['cookie_secure']) ? 'https://' : 'http://';
|
||||
$server_port = (in_array($bb_cfg['server_port'], array(80, 443))) ? '' : ':' . $bb_cfg['server_port'];
|
||||
|
|
|
@ -972,7 +972,7 @@ class attach_parent
|
|||
$this->attach_filename = str_replace(array(',', '.', '!', '?', 'ь', 'Ь', 'ц', 'Ц', 'д', 'Д', ';', ':', '@', "'", '"', '&'), array('', '', '', '', 'ue', 'ue', 'oe', 'oe', 'ae', 'ae', '', '', '', '', '', 'and'), $this->attach_filename);
|
||||
$this->attach_filename = str_replace(array('$', 'Я', '>','<','§','%','=','/','(',')','#','*','+',"\\",'{','}','[',']'), array('dollar', 'ss','greater','lower','paragraph','percent','equal','','','','','','','','','','',''), $this->attach_filename);
|
||||
// Remove non-latin characters
|
||||
$this->attach_filename = preg_replace("/([\xC2\xC3])([\x80-\xBF])/e", "chr(ord('\\1')<<6&0xC0|ord('\\2')&0x3F)", $this->attach_filename);
|
||||
$this->attach_filename = preg_replace('#([\xC2\xC3])([\x80-\xBF])#', 'chr(ord(\'$1\')<<6&0xC0|ord(\'$2\')&0x3F)', $this->attach_filename);
|
||||
$this->attach_filename = rawurlencode($this->attach_filename);
|
||||
$this->attach_filename = preg_replace("/(%[0-9A-F]{1,2})/i", '', $this->attach_filename);
|
||||
$this->attach_filename = trim($this->attach_filename);
|
||||
|
|
|
@ -73,7 +73,7 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
|
|||
|
||||
// Version info
|
||||
$bb_cfg['tp_version'] = '2.1.4';
|
||||
$bb_cfg['tp_release_date'] = '**-11-2014';
|
||||
$bb_cfg['tp_release_date'] = '26-11-2014';
|
||||
$bb_cfg['tp_release_state'] = 'ALPHA';
|
||||
$bb_cfg['tp_zf_version'] = '2.3.3';
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@ if ($watch_count > 0)
|
|||
}
|
||||
else
|
||||
{
|
||||
meta_refresh(BB_ROOT, '3');
|
||||
meta_refresh('index.php', 3);
|
||||
bb_die($lang['NO_WATCHED_TOPICS']);
|
||||
}
|
||||
|
||||
|
|
|
@ -114,6 +114,7 @@ else
|
|||
|
||||
if (!$t_data = DB()->fetch_row($sql))
|
||||
{
|
||||
meta_refresh('index.php' , 10);
|
||||
bb_die($lang['TOPIC_POST_NOT_EXIST']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue