19 defined(
'XOOPS_ROOT_PATH') or die('Restricted access');
23 function eventCoreIncludeFunctionsRedirectheader($args)
27 if (preg_match(
"/[\\0-\\31]|about:|script:/i",
$url)) {
28 if (!preg_match(
'/^\b(java)?script:([\s]*)history\.go\(-[0-9]*\)([\s]*[;]*[\s]*)$/si',
$url)) {
32 if (!headers_sent() && isset($xoopsConfig[
'redirect_message_ajax']) && $xoopsConfig[
'redirect_message_ajax']) {
34 header(
"Location: " . preg_replace(
"/[&]amp;/i",
'&',
$url));
39 function eventCoreHeaderCheckcache($args)
41 if (!empty(
$_SESSION[
'redirect_message'])) {
42 $GLOBALS[
'xoTheme']->contentCacheLifetime = 0;
47 function eventCoreHeaderAddmeta($args)
49 if (!empty(
$_SESSION[
'redirect_message'])) {
50 $GLOBALS[
'xoTheme']->addStylesheet(
'xoops.css');
51 $GLOBALS[
'xoTheme']->addScript(
'browse.php?Frameworks/jquery/jquery.js');
52 $GLOBALS[
'xoTheme']->addScript(
'browse.php?Frameworks/jquery/plugins/jquery.jgrowl.js');
53 $GLOBALS[
'xoTheme']->addScript(
'', array(
'type' =>
'text/javascript'),
'
55 $(document).ready(function(){
56 $.jGrowl("' .
$_SESSION[
'redirect_message'] .
'", { life:3000 , position: "center", speed: "slow" });
63 function eventSystemClassGuiHeader($args)
65 if (!empty(
$_SESSION[
'redirect_message'])) {
66 $GLOBALS[
'xoTheme']->addStylesheet(
'xoops.css');
67 $GLOBALS[
'xoTheme']->addScript(
'browse.php?Frameworks/jquery/jquery.js');
68 $GLOBALS[
'xoTheme']->addScript(
'browse.php?Frameworks/jquery/plugins/jquery.jgrowl.js');
69 $GLOBALS[
'xoTheme']->addScript(
'', array(
'type' =>
'text/javascript'),
'
71 $(document).ready(function(){
72 $.jGrowl("' .
$_SESSION[
'redirect_message'] .
'", { life:3000 , position: "center", speed: "slow" });