<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Время отображения системных собщений</title>
		<link>https://www.cotonti.com</link>
		<description>Neueste Themenbeiträge</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Thu, 09 Apr 2026 21:53:06 -0000</pubDate>

		<item>
			<title>VladisOK</title>
			<description><![CDATA[<p>/messege.php<br />
У меня так:</p>

<p>/* ======== Users ======== */<br />
$rd = 2; (строка 57)<br />
меняем на<br />
$rd = '7';</p>

<p>/* ============= */<br />
$rd = '5'; (строка 144)<br />
меняем на<br />
$rd = '20';</p>

<p> </p>

<p>Спасибо всё работает!!!</p>
]]></description>
			<pubDate>Sa, 04 Nov 2017 11:10:06 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=8464&d=0#post43078]]></link>
		</item>
		<item>
			<title>foxss</title>
			<description><![CDATA[<p>/messege.php</p>

<p>сравните со своим (здесь время увеличено)</p>

<pre class="brush:php;gutter:false;toolbar:false;">
define('COT_CORE', TRUE);
require_once './datas/config.php';
require_once $cfg['system_dir'] . '/functions.php';

$env['location'] = 'messages';
$env['ext'] = 'message';

require_once $cfg['system_dir'] . '/cotemplate.php';
require_once $cfg['system_dir'] . '/common.php';

// This trick allows message strings to be overriden in theme langfiles
$temp_L = $L;
require_once cot_langfile('message', 'core');
$L = array_merge($L, $temp_L);
unset($temp_L);

if (defined('COT_ADMIN'))
{
	require_once cot_incfile('admin', 'module');
}

list($usr['auth_read'], $usr['auth_write'], $usr['isadmin']) = cot_auth('message', 'a');
//cot_block($usr['auth_read']);

$msg = cot_import('msg', 'G', 'INT');
$num = cot_import('num', 'G', 'INT');
$rc = cot_import('rc', 'G', 'INT');

unset($r, $rd, $ru);

$title = $L['msg' . $msg . '_title'];
$body = $L['msg' . $msg . '_body'];

/* === Hook === */
foreach (cot_getextplugins('message.first') as $pl)
{
	include $pl;
}
/* ===== */

switch ($msg)
{
	/* ======== Users ======== */

	case '100':
		$rd = 7;
		$ru = cot_url('login', (empty($redirect) ? '' : "redirect=$redirect"));
		break;

	case '102':
		$r = 1;
		$rd = 2;
		break;

	case '153':
		if ($num &gt; 0)
		{
			$body .= cot_rc('msg_code_153_date', array('date' =&gt; cot_date('datetime_medium', $num)));
		}
		break;

	/* ======== Error Pages ========= */

	case '400':
	case '401':
	case '403':
	case '404':
	case '500':
		$rd = 5;
		$ru = empty($redirect) ? '' : str_replace('&amp;', '&amp;amp;', base64_decode($redirect));
		break;

	/* ======== System messages ======== */

	case '916':
		$rd = 2;
		$ru = cot_url('admin');
		break;

	case '920':
		if (!empty($m))
		{
			// Load module or plugin langfile
			if (file_exists(cot_langfile($m, 'module')))
			{
				include cot_langfile($m, 'module');
			}
			elseif (file_exists(cot_langfile($m, 'plug')))
			{
				include cot_langfile($m, 'plug');
			}
		}
		$lng = cot_import('lng', 'G', 'ALP');
		if (!empty($lng))
		{
			// Assign custom message
			if (isset($L[$lng]))
			{
				$body = $L[$lng];
			}
		}
		$rc = '920';
		break;

	case '930':
		if ($usr['id'] &gt; 0)
		{
			break;
		}
		$rd = 2;
		if (!empty($redirect))
		{
			$uri_redirect = base64_decode($redirect);
			if (mb_strpos($uri_redirect, '&amp;x=') !== false || mb_strpos($uri_redirect, '?x=') !== false)
			{
				// xg, not redirect to form action/GET or to command from GET
				break;
			}
		}
		$ru = cot_url('login', (empty($redirect) ? '' : "redirect=$redirect"));
		break;
}

/* ============= */
if (empty($title) || empty($body))
{
	$title = $L['msg950_title'];
	$body = $L['msg950_body'];
	unset($rc, $rd);
}
if (empty($rc) &amp;&amp; empty($rd))
{
	$rd = '20';
}

switch ($rc)
{
	case '100':
		$r['100'] = cot_url('admin', 'm=plug');
		break;

	case '101':
		$r['101'] = cot_url('admin', 'm=hitsperday');
		break;

	case '102':
		$r['102'] = cot_url('admin', 'm=polls');
		break;

	case '103':
		$r['103'] = cot_url('admin', 'm=forums');
		break;

	case '200':
		$r['200'] = cot_url('users');
		break;

	default:
		$rc = '';
		break;
}

if ($rc != '')
{
	if (mb_strpos($r["$rc"], '://') === false)
	{
		$r["$rc"] = COT_ABSOLUTE_URL . $r["$rc"];
	}
	$out['head'] .= cot_rc('msg_code_redir_head', array('delay' =&gt; 2, 'url' =&gt; $r["$rc"]));
	$body .= $R['code_error_separator'] . $L['msgredir'];
}
elseif ($rd != '')
{
	if (mb_strpos($ru, '://') === false)
	{
		$ru = COT_ABSOLUTE_URL . ltrim($ru, '/');
	}
	$out['head'] .= cot_rc('msg_code_redir_head', array('delay' =&gt; $rd, 'url' =&gt; $ru));
	$body .= $R['code_error_separator'] . $L['msgredir'];
}

/* === Hook === */
foreach (cot_getextplugins('message.main') as $pl)
{
	include $pl;
}
/* ===== */

$out['head'] .= $R['code_noindex'];
$out['subtitle'] = $title;
require_once $cfg['system_dir'] . '/header.php';

$tpl_type = defined('COT_ADMIN') ? 'core' : 'module';
$t = new XTemplate(cot_tplfile('message', $tpl_type));

if (COT_AJAX)
{
	$t-&gt;assign('AJAX_MODE', true);
}

$errmsg = $title;
$title .= ($usr['isadmin']) ? ' (#' . $msg . ')' : '';

$t-&gt;assign('MESSAGE_TITLE', $title);
$t-&gt;assign('MESSAGE_BODY', $body);

if ($msg == '920')
{
	$confirm_no_url = preg_match("/^.+".preg_quote($sys['domain']."/"), $_SERVER['HTTP_REFERER']) ? str_replace('&amp;', '&amp;amp;', $_SERVER['HTTP_REFERER']) : cot_url('index');

	if (preg_match('#[ "\':]#', base64_decode($redirect)))
	{
		$redirect = '';
	}

	$t-&gt;assign(array(
		'MESSAGE_CONFIRM_YES' =&gt; base64_decode($redirect),
		'MESSAGE_CONFIRM_NO' =&gt; $confirm_no_url
	));
	$t-&gt;parse('MAIN.MESSAGE_CONFIRM');
}

/* === Hook === */
foreach (cot_getextplugins('message.tags') as $pl)
{
	include $pl;
}
/* ===== */

$t-&gt;parse('MAIN');
$t-&gt;out('MAIN');

require_once $cfg['system_dir'] . '/footer.php';
</pre>

<p> </p>
]]></description>
			<pubDate>Sa, 04 Nov 2017 01:34:10 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=8464&d=0#post43075]]></link>
		</item>
		<item>
			<title>VladisOK</title>
			<description><![CDATA[<p>Привет всем,</p>

<p>После регистрации нового пользователя, выбрасывает на страницу с системным сообщением :</p>

<p> -  Первый шаг сделан, проверьте свой емайл ....</p>

<p>Время показа этого сообщение очень мало и идёт редирект на главную страницу, так и не успев до читать сообщение!</p>

<p>Как увеличить это время, и где находится этот таймер?</p>
]]></description>
			<pubDate>Do, 02 Nov 2017 19:05:37 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=8464&d=0#post43074]]></link>
		</item>
	</channel>
</rss>