| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/system/overloads/AdminMenuControl/ |
Upload File : |
<?php
/* --------------------------------------------------------------
PayPal3AdminMenuControl.inc.php 2015-04-13
Gambio GmbH
http://www.gambio.de
Copyright (c) 2015 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
*/
/**
* This class modifies the admin menu so that the old entries for paypalng do not show.
* For convenience only, not required by paypal3.
*/
class PayPal3AdminMenuControl extends PayPal3AdminMenuControl_parent
{
public function get_menu_array($p_customers_id)
{
$menu_array = parent::get_menu_array($p_customers_id);
foreach($menu_array as $idx => $menu_block)
{
if($menu_block['id'] == 'BOX_HEADING_MODULES')
{
foreach($menu_block['menuitems'] as $item_idx => $menu_item)
{
if(
strpos($menu_item['link'], 'paypal.php') !== false || // PayPal 1 IPN overview
strpos($menu_item['link'], 'paypal_config.php') !== false || // PayPal 2 configuration
strpos($menu_item['link'], 'paypal_logs.php') !== false // PayPal 2 IPN overview
)
{
unset($menu_array[$idx]['menuitems'][$item_idx]);
}
}
}
}
return $menu_array;
}
}