Баг :SEO ready URL's, (SEF URL's)
Статус :Исправлено
Серьёзность :Улучшение
Репортер :Antony 27-06-13 01:17
Обновил :Amro 16-07-13 14:16
КатегорияGeneral
Версия :173
Частота :Постоянно
Пофиксено в :175
Детали :
Preparation of the engine to the SEF urls. New function sed_url();

The functions of the blind stopper.

function sed_url($section, $param = '', $anchor = '', $header = false, $path = '', $alias = '')
	{	
  global $cfg, $sys;
  
  $section = ($header || $cfg['absurls']) ? $sys['abs_url'].$section : $section;    
  $param = ($header) ? $param : str_replace('&', '&', $param); 
  
  if (!empty($param)) 
		{ $res = $section.".php?".$param.$anchor; }
	else
		{ $res = $section.".php"; }

	return $res;
	}
Затронутые части :functions.php

История и комментарии :

16-07-13 14:23   Amro

Final blind stopper function:
/* ------------------ */  // new in 175

function sed_url($section, $param = '', $anchor = '', $header = false, $enableabs = true, $path = '', $alias = '')
	{	
  global $cfg, $sys;
  
  $param = preg_replace('/&$/', '', $param); //fix $more in PFS
  
  $section = ($header || ($cfg['absurls'] && $enableabs)) ? $sys['abs_url'].$section : $section;    
  $param = ($header || !$enableabs) ? $param : str_replace('&', '&', $param); 
  
  if (!empty($param)) 
		{ $res = $section.".php?".$param.$anchor; }
	else
		{ $res = $section.".php"; }

	return $res;
	}

/* ------------------ */
Also, the parallel implementation sed_url () throughout the code of the engine have been replaced by inserting 
header ("Location:*****

on

sed_redirect (sed_url****