26 if (preg_match(
"/[\\0-\\31]|about:|script:/i",
$url)) {
27 if (!preg_match(
'/^\b(java)?script:([\s]*)history\.go\(-[0-9]*\)([\s]*[;]*[\s]*)$/si',
$url)) {
31 if (!headers_sent() &&
$xoops->getConfig(
'redirect_message_ajax')
32 &&
$xoops->getConfig(
'redirect_message_ajax')
35 header(
"Location: " . preg_replace(
"/[&]amp;/i",
'&',
$url));
42 if (!empty(
$_SESSION[
'redirect_message'])) {
44 $xoops->theme()->contentCacheLifetime = 0;
51 if (!empty(
$_SESSION[
'redirect_message'])) {
53 $xoops->theme()->addBaseStylesheetAssets(
'xoops.css');
54 $xoops->theme()->addBaseScriptAssets(
'@jquery');
55 $xoops->theme()->addBaseScriptAssets(
'@jgrowl');
56 $xoops->theme()->addScript(
'', array(
'type' =>
'text/javascript'),
'
58 $(document).ready(function(){
59 $.jGrowl("' .
$_SESSION[
'redirect_message'] .
'", { life:3000 , position: "center", speed: "slow" });
68 if (!empty(
$_SESSION[
'redirect_message'])) {
70 $xoops->theme()->addBaseStylesheetAssets(
'xoops.css');
71 $xoops->theme()->addBaseScriptAssets(
'@jquery');
72 $xoops->theme()->addBaseScriptAssets(
'@jgrowl');
73 $xoops->theme()->addScript(
'', array(
'type' =>
'text/javascript'),
'
75 $(document).ready(function(){
76 $.jGrowl("' .
$_SESSION[
'redirect_message'] .
'", { life:3000 , position: "center", speed: "slow" });
93 if (is_a($provider,
'\Xoops\Core\Service\Provider')) {
94 $path = dirname(__DIR__) .
'/class/CountryFlagProvider.php';
$_SESSION['RF']["verify"]
static eventCoreHeaderCheckcache($args)
static eventCoreHeaderAddmeta($args)
static eventCoreIncludeFunctionsRedirectheader($args)
static eventCoreServiceLocateCountryflag(Provider $provider)
static eventSystemClassGuiHeader($args)