PageRenderTime 43ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/plugins_repo/openXMarket/www/admin/plugins/oxMarket/market-campaigns-settings.php

https://github.com/orchestra-io/sample-openx
PHP | 70 lines | 24 code | 18 blank | 28 comment | 1 complexity | eac2fb269a51d1e1bf2d79a8dd51635a MD5 | raw file
  1. <?php
  2. /*
  3. +---------------------------------------------------------------------------+
  4. | OpenX v${RELEASE_MAJOR_MINOR} |
  5. | =======${RELEASE_MAJOR_MINOR_DOUBLE_UNDERLINE} |
  6. | |
  7. | Copyright (c) 2003-2009 OpenX Limited |
  8. | For contact details, see: http://www.openx.org/ |
  9. | |
  10. | This program is free software; you can redistribute it and/or modify |
  11. | it under the terms of the GNU General Public License as published by |
  12. | the Free Software Foundation; either version 2 of the License, or |
  13. | (at your option) any later version. |
  14. | |
  15. | This program is distributed in the hope that it will be useful, |
  16. | but WITHOUT ANY WARRANTY; without even the implied warranty of |
  17. | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
  18. | GNU General Public License for more details. |
  19. | |
  20. | You should have received a copy of the GNU General Public License |
  21. | along with this program; if not, write to the Free Software |
  22. | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
  23. +---------------------------------------------------------------------------+
  24. $Id: market-campaigns-settings.php 55262 2010-06-19 01:04:04Z chris.nutting $
  25. */
  26. require_once 'market-common.php';
  27. require_once MAX_PATH .'/lib/OA/Admin/UI/component/Form.php';
  28. require_once MAX_PATH .'/lib/OX/Admin/Redirect.php';
  29. require_once MAX_PATH .'/lib/OA/Admin/UI/component/rule/DecimalPlaces.php';
  30. require_once MAX_PATH .'/lib/pear/HTML/QuickForm/Rule/Regex.php';
  31. require_once MAX_PATH .'/lib/OA/Admin/UI/component/rule/Max.php';
  32. require_once OX_MARKET_LIB_PATH . '/OX/oxMarket/UI/CampaignsSettings.php';
  33. // Security check
  34. OA_Permission::enforceAccount(OA_ACCOUNT_MANAGER);
  35. $handler = new OX_oxMarket_UI_CampaignsSettings();
  36. $template = $handler->handle();
  37. if ($template) {
  38. // Header
  39. $oUI = OA_Admin_UI::getInstance();
  40. $oUI->registerStylesheetFile(MAX::constructURL(
  41. MAX_URL_ADMIN, 'plugins/oxMarket/css/ox.market.css.php?v=' . htmlspecialchars($handler->getPluginVersion()) . '&b=' . $oMarketComponent->aBranding['key']));
  42. $oMenu = OA_Admin_Menu::singleton();
  43. $oCurrentSection = $oMenu->get("market-campaigns-settings");
  44. phpAds_PageHeader("market-campaigns-settings", new OA_Admin_UI_Model_PageHeaderModel(
  45. $oCurrentSection->getName(), "iconMarketLarge"), '../../', true, true, true, false);
  46. $oMarketComponent = OX_Component::factory('admin', 'oxMarket');
  47. $template->assign('aBranding', $oMarketComponent->aBranding);
  48. // Content
  49. $template->display();
  50. //footer
  51. phpAds_PageFooter();
  52. }