r4290 redirectIfNecessary(): remove obsolete redirection maps
authorDenis Ovsienko <infrastation@yandex.ru>
Sat, 5 Mar 2011 13:10:47 +0000 (13:10 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Sat, 5 Mar 2011 13:10:47 +0000 (13:10 +0000)
wwwroot/inc/functions.php

index f2fe0e502064474ea9b39321bddaf3b84b30d002..84e9063164fb56e0f67cb8130b4b28b5251ac5db 100644 (file)
@@ -1312,27 +1312,6 @@ function redirectIfNecessary ()
                $trigger,
                $pageno,
                $tabno;
-       $pmap = array
-       (
-               'accounts' => 'userlist',
-               'rspools' => 'ipv4rsplist',
-               'rspool' => 'ipv4rsp',
-               'vservices' => 'ipv4vslist',
-               'vservice' => 'ipv4vs',
-               'objects' => 'depot',
-               'objgroup' => 'depot',
-       );
-       $tmap = array();
-       $tmap['objects']['newmulti'] = 'addmore';
-       $tmap['objects']['newobj'] = 'addmore';
-       $tmap['object']['switchvlans'] = 'livevlans';
-       $tmap['object']['slb'] = 'editrspvs';
-       $tmap['object']['portfwrd'] = 'nat4';
-       $tmap['object']['network'] = 'ipv4';
-       if (isset ($pmap[$pageno]))
-               redirectUser ($pmap[$pageno], $tabno);
-       if (isset ($tmap[$pageno][$tabno]))
-               redirectUser ($pageno, $tmap[$pageno][$tabno]);
 
        if
        (