| 25 | | global $currentcomponent; |
|---|
| 26 | | |
|---|
| 27 | | $action = isset($_REQUEST['action'])?$_REQUEST['action']:null; |
|---|
| 28 | | $extdisplay = isset($_REQUEST['extdisplay'])?$_REQUEST['extdisplay']:null; |
|---|
| 29 | | $extension = isset($_REQUEST['extension'])?$_REQUEST['extension']:null; |
|---|
| 30 | | $tech_hardware = isset($_REQUEST['tech_hardware'])?$_REQUEST['tech_hardware']:null; |
|---|
| 31 | | // We only want to hook 'users' or 'extensions' pages. |
|---|
| 32 | | if ($pagename != 'users' && $pagename != 'extensions') |
|---|
| 33 | | return true; |
|---|
| 34 | | // On a 'new' user, 'tech_hardware' is set, and there's no extension. Hook into the page. |
|---|
| 35 | | if ($tech_hardware != null || $pagename == 'users') { |
|---|
| 36 | | rp_applyhooks(); |
|---|
| 37 | | $currentcomponent->addprocessfunc('rp_configprocess', 5); |
|---|
| 38 | | } elseif ($action=="add") { |
|---|
| 39 | | // We don't need to display anything on an 'add', but we do need to handle returned data. |
|---|
| 40 | | $currentcomponent->addprocessfunc('rp_configprocess', 5); |
|---|
| 41 | | } elseif ($extdisplay != '') { |
|---|
| 42 | | // We're now viewing an extension, so we need to display _and_ process. |
|---|
| 43 | | rp_applyhooks(); |
|---|
| 44 | | $currentcomponent->addprocessfunc('rp_configprocess', 5); |
|---|
| 45 | | } |
|---|
| | 25 | global $currentcomponent; |
|---|
| | 26 | |
|---|
| | 27 | $action = isset($_REQUEST['action'])?$_REQUEST['action']:null; |
|---|
| | 28 | $extdisplay = isset($_REQUEST['extdisplay'])?$_REQUEST['extdisplay']:null; |
|---|
| | 29 | $extension = isset($_REQUEST['extension'])?$_REQUEST['extension']:null; |
|---|
| | 30 | $tech_hardware = isset($_REQUEST['tech_hardware'])?$_REQUEST['tech_hardware']:null; |
|---|
| | 31 | // We only want to hook 'users' or 'extensions' pages. |
|---|
| | 32 | if ($pagename != 'users' && $pagename != 'extensions') |
|---|
| | 33 | return true; |
|---|
| | 34 | // On a 'new' user, 'tech_hardware' is set, and there's no extension. Hook into the page. |
|---|
| | 35 | if ($tech_hardware != null || $pagename == 'users') { |
|---|
| | 36 | rp_applyhooks(); |
|---|
| | 37 | $currentcomponent->addprocessfunc('rp_configprocess', 5); |
|---|
| | 38 | } elseif ($action=="add") { |
|---|
| | 39 | // We don't need to display anything on an 'add', but we do need to handle returned data. |
|---|
| | 40 | $currentcomponent->addprocessfunc('rp_configprocess', 5); |
|---|
| | 41 | } elseif ($extdisplay != '') { |
|---|
| | 42 | // We're now viewing an extension, so we need to display _and_ process. |
|---|
| | 43 | rp_applyhooks(); |
|---|
| | 44 | $currentcomponent->addprocessfunc('rp_configprocess', 5); |
|---|
| | 45 | } |
|---|
| 91 | | global $currentcomponent; |
|---|
| 92 | | |
|---|
| 93 | | // Add Allow/Deny options |
|---|
| 94 | | $currentcomponent->addoptlistitem('rpyn', 'YES', _('yes')); |
|---|
| 95 | | $currentcomponent->addoptlistitem('rpyn', 'NO', _('no')); |
|---|
| 96 | | $currentcomponent->setoptlistopts('rpyn', 'sort', false); |
|---|
| 97 | | |
|---|
| 98 | | // Add the 'process' function |
|---|
| 99 | | $currentcomponent->addguifunc('rp_configpageload'); |
|---|
| | 91 | global $currentcomponent; |
|---|
| | 92 | |
|---|
| | 93 | // Add Allow/Deny options |
|---|
| | 94 | $currentcomponent->addoptlistitem('rpyn', 'YES', _('yes')); |
|---|
| | 95 | $currentcomponent->addoptlistitem('rpyn', 'NO', _('no')); |
|---|
| | 96 | $currentcomponent->setoptlistopts('rpyn', 'sort', false); |
|---|
| | 97 | |
|---|
| | 98 | // Add the 'process' function |
|---|
| | 99 | $currentcomponent->addguifunc('rp_configpageload'); |
|---|
| 103 | | global $currentcomponent; |
|---|
| 104 | | |
|---|
| 105 | | // Init vars from $_REQUEST[] |
|---|
| 106 | | $action = isset($_REQUEST['action'])?$_REQUEST['action']:null; |
|---|
| 107 | | $extdisplay = isset($_REQUEST['extdisplay'])?$_REQUEST['extdisplay']:null; |
|---|
| 108 | | |
|---|
| 109 | | // Don't display if this is a 'This xtn has been deleted' page. |
|---|
| 110 | | if ($action != 'del') { |
|---|
| 111 | | $section = _('Outbound Route Permssions'); |
|---|
| | 103 | global $currentcomponent; |
|---|
| | 104 | |
|---|
| | 105 | // Init vars from $_REQUEST[] |
|---|
| | 106 | $action = isset($_REQUEST['action'])?$_REQUEST['action']:null; |
|---|
| | 107 | $extdisplay = isset($_REQUEST['extdisplay'])?$_REQUEST['extdisplay']:null; |
|---|
| | 108 | |
|---|
| | 109 | // Don't display if this is a 'This xtn has been deleted' page. |
|---|
| | 110 | if ($action != 'del') { |
|---|
| | 111 | $section = _('Outbound Route Permssions'); |
|---|
| 122 | | $action = isset($_REQUEST['action'])?$_REQUEST['action']:null; |
|---|
| 123 | | $extdisplay = isset($_REQUEST['extdisplay'])?$_REQUEST['extdisplay']:null; |
|---|
| 124 | | if(isset($_REQUEST['extension'])){ |
|---|
| 125 | | $extdisplay=$_REQUEST['extension']; |
|---|
| 126 | | } |
|---|
| | 122 | $action = isset($_REQUEST['action'])?$_REQUEST['action']:null; |
|---|
| | 123 | $extdisplay = isset($_REQUEST['extdisplay'])?$_REQUEST['extdisplay']:null; |
|---|
| | 124 | if(isset($_REQUEST['extension']) ){ |
|---|
| | 125 | $extdisplay=$_REQUEST['extension']; |
|---|
| | 126 | } |
|---|