Source for file template.php

Documentation is available at template.php

  1. <?php
  2. /**
  3. @package Mambo
  4. @subpackage Installer
  5. @copyright  Refer to copyright.php
  6. @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
  7. @author Mambo Foundation Inc see README.php
  8. */
  9.  
  10. /** ensure this file is being included by a parent file */
  11. defined'_VALID_MOS' or die'Direct Access to this location is not allowed.' );
  12.  
  13. // ensure user has access to this function
  14. if !$acl->acl_check'administration''install''users'$my->usertype$element 's''all' ) ) {
  15.     mosRedirect'index2.php'T_('You are not authorized to view this resource.') );
  16. }
  17.  
  18. $client mosGetParam$_REQUEST'client''' );
  19.  
  20. $userfile mosGetParam$_REQUEST'userfile'dirname__FILE__ ) );
  21. $userfile mosPathName$userfile );
  22.  
  23. HTML_installer::showInstallFormT_('Install new Template').' <small><small>[ ' ($client == 'admin' T_('Administrator'T_('Site')) .' ]</small></small>',
  24.     $option'template'$client$userfile,
  25.     '<a href="index2.php?option=com_templates&client='.$client.'">'.T_('Back to Templates').'</a>'
  26. );
  27. ?>
  28. <table class="content">
  29. <?php
  30. writableCell'media' );
  31. writableCell'administrator/templates' );
  32. writableCell'templates' );
  33. writableCell'images/stories' );
  34. ?>
  35. </table>

Documentation generated on Mon, 05 May 2008 16:23:06 +0400 by phpDocumentor 1.4.0