PageRenderTime 53ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/templates/system/offline.php

https://github.com/joebushi/joomla
PHP | 58 lines | 51 code | 1 blank | 6 comment | 3 complexity | eacb68a23a7ad23ca971f0aed21fc4be MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
  1. <?php
  2. /**
  3. * @version $Id$
  4. * @package Joomla.Site
  5. * @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
  6. * @license GNU General Public License version 2 or later; see LICENSE.txt
  7. */
  8. defined('_JEXEC') or die;
  9. $app = &JFactory::getApplication();
  10. ?>
  11. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  12. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
  13. <head>
  14. <jdoc:include type="head" />
  15. <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/offline.css" type="text/css" />
  16. <?php if ($this->direction == 'rtl') : ?>
  17. <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/offline_rtl.css" type="text/css" />
  18. <?php endif; ?>
  19. <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
  20. </head>
  21. <body>
  22. <jdoc:include type="message" />
  23. <div id="frame" class="outline">
  24. <img src="images/joomla_logo_black.jpg" alt="Joomla! Logo" align="middle" />
  25. <h1>
  26. <?php echo $app->getCfg('sitename'); ?>
  27. </h1>
  28. <p>
  29. <?php echo $app->getCfg('offline_message'); ?>
  30. </p>
  31. <?php if (JPluginHelper::isEnabled('authentication', 'openid')) : ?>
  32. <?php JHtml::_('script', 'openid.js'); ?>
  33. <?php endif; ?>
  34. <form action="index.php" method="post" name="login" id="form-login">
  35. <fieldset class="input">
  36. <p id="form-login-username">
  37. <label for="username"><?php echo JText::_('Username') ?></label>
  38. <input name="username" id="username" type="text" class="inputbox" alt="<?php echo JText::_('Username') ?>" size="18" />
  39. </p>
  40. <p id="form-login-password">
  41. <label for="passwd"><?php echo JText::_('Password') ?></label>
  42. <input type="password" name="passwd" class="inputbox" size="18" alt="<?php echo JText::_('Password') ?>" id="passwd" />
  43. </p>
  44. <p id="form-login-remember">
  45. <label for="remember"><?php echo JText::_('REMEMBER_ME') ?></label>
  46. <input type="checkbox" name="remember" class="inputbox" value="yes" alt="<?php echo JText::_('REMEMBER_ME') ?>" id="remember" />
  47. </p>
  48. <input type="submit" name="Submit" class="button" value="<?php echo JText::_('LOGIN') ?>" />
  49. </fieldset>
  50. <input type="hidden" name="option" value="com_users" />
  51. <input type="hidden" name="task" value="login" />
  52. <input type="hidden" name="return" value="<?php echo base64_encode(JURI::base()) ?>" />
  53. <?php echo JHtml::_('form.token'); ?>
  54. </form>
  55. </div>
  56. </body>
  57. </html>