{% else-1 %}
Lorinz * 1.32
(23 янв 2013, 22:23) (0/0) [0]
K[i]nG, [code]
<?
session_start();
$time = 60;//в минутах

$link[1] = \'<a href=\"#\">1</a>\';

$link[2] = \'<a href=\"#\">2</a>\';

if($_SESSION[\'time\'] == NULL){$_SESSION[\'time\'] = time() + ($time * 60);}
if($_SESSION[\'time1\'] == NULL){$_SESSION[\'time1\'] = time() + (($time * 60) * 2);}
if($_SESSION[\'time\'] >= time()){echo $link[1];} else {if($_SESSION[\'time1\'] >= time()){echo $link[2];} else {session_destroy(); $_SESSION[\'time\'] = time() + ($time * 60); $_SESSION[\'time1\'] = time() + (($time * 60) * 2);}}
?>
[/code]
Lorinz * 1.32
(23 янв 2013, 22:13) (0/0) [0]
ща 2 минутки и напишу
  • 1 из 1