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

/www/admin/admin-generate.php

https://bitbucket.org/blackriver/openx
PHP | 77 lines | 23 code | 18 blank | 36 comment | 3 complexity | a0c9f309f5474f6aacbb3005a06a74d3 MD5 | raw file
  1. <?php
  2. /*
  3. +---------------------------------------------------------------------------+
  4. | OpenX v2.8 |
  5. | ========== |
  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: admin-generate.php 81772 2012-09-11 00:07:29Z chris.nutting $
  25. */
  26. // Require the initialisation file
  27. require_once '../../init.php';
  28. // Required files
  29. require_once MAX_PATH . '/www/admin/config.php';
  30. require_once MAX_PATH . '/www/admin/lib-statistics.inc.php';
  31. require_once MAX_PATH . '/www/admin/lib-zones.inc.php';
  32. require_once MAX_PATH . '/lib/max/Admin/Invocation.php';
  33. // Security check
  34. OA_Permission::enforceAccount(OA_ACCOUNT_ADMIN, OA_ACCOUNT_MANAGER);
  35. /*-------------------------------------------------------*/
  36. /* HTML framework */
  37. /*-------------------------------------------------------*/
  38. $oHeader = new OA_Admin_UI_Model_PageHeaderModel($GLOBALS['strGenerateBannercode'], 'iconDirectSelectionLarge');
  39. phpAds_PageHeader(null, $oHeader);
  40. if (OA_Permission::isAccount(OA_ACCOUNT_ADMIN)) {
  41. $sections = array("4.1", "4.3");
  42. } else {
  43. $sections = array("4.1", "4.2", "4.3");
  44. }
  45. if (OA_Permission::hasPermission(OA_PERM_SUPER_ACCOUNT)) {
  46. $sections[] = '4.4';
  47. }
  48. phpAds_ShowSections($sections);
  49. /*-------------------------------------------------------*/
  50. /* Main code */
  51. /*-------------------------------------------------------*/
  52. $tabindex = 1;
  53. $maxInvocation = new MAX_Admin_Invocation();
  54. echo $maxInvocation->placeInvocationForm();
  55. /*-------------------------------------------------------*/
  56. /* HTML framework */
  57. /*-------------------------------------------------------*/
  58. phpAds_PageFooter();
  59. ?>