PageRenderTime 27ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/application/games/dashboard/empty.php

https://code.google.com/p/php-blackops-rcon/
PHP | 55 lines | 13 code | 5 blank | 37 comment | 0 complexity | bf251b2f8f1d1ba98c0a8545dd106972 MD5 | raw file
  1. <?php defined('SYSPATH') or die('No direct script access.');
  2. /**
  3. * Empty dashboard (no servers available0
  4. *
  5. * Copyright (c) 2010, EpicLegion
  6. * All rights reserved.
  7. *
  8. * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
  9. *
  10. * * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  11. * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation
  12. * and/or other materials provided with the distribution.
  13. *
  14. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
  15. * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  16. * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
  17. * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
  18. * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  20. * POSSIBILITY OF SUCH DAMAGE.
  21. *
  22. * @author EpicLegion
  23. * @package rcon
  24. * @subpackage controller
  25. * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
  26. */
  27. class Controller_Dashboard extends Controller_Dashboard_Core {
  28. /**
  29. * Sets action to index
  30. *
  31. * @see blackops/application/classes/controller/Controller_Main::before()
  32. */
  33. public function before()
  34. {
  35. // Parent
  36. parent::before();
  37. // Always index
  38. $this->request->action = 'index';
  39. }
  40. /**
  41. * Index action
  42. */
  43. public function action_index()
  44. {
  45. // Title
  46. $this->title = __('No servers');
  47. // View
  48. $this->view = new View('noservers');
  49. }
  50. }