[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/administrator/components/com_installer/template/ -> template.php (source)

   1  <?php
   2  /**
   3  * @package Mambo
   4  * @subpackage Installer
   5  * @author Mambo Foundation Inc see README.php
   6  * @copyright (C) 2000 - 2009 Mambo Foundation Inc.
   7  * See COPYRIGHT.php for copyright notices and details.
   8  * @license GNU/GPL Version 2, see LICENSE.php
   9  *
  10  * Redistributions of files must retain the above copyright notice.
  11  *
  12  * Mambo is free software; you can redistribute it and/or
  13  * modify it under the terms of the GNU General Public License
  14  * as published by the Free Software Foundation; version 2 of the License.
  15  */
  16  
  17  /** ensure this file is being included by a parent file */
  18  defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
  19  
  20  // ensure user has access to this function
  21  if ( !$acl->acl_check( 'administration', 'install', 'users', $my->usertype, $element . 's', 'all' ) ) {
  22      mosRedirect( 'index2.php', T_('You are not authorized to view this resource.') );
  23  }
  24  
  25  $client = mosGetParam( $_REQUEST, 'client', '' );
  26  
  27  $userfile = mosGetParam( $_REQUEST, 'userfile', dirname( __FILE__ ) );
  28  $userfile = mosPathName( $userfile );
  29  
  30  HTML_installer::showInstallForm( T_('Install new Template').' <small><small>[ ' . ($client == 'admin' ? T_('Administrator') : T_('Site')) .' ]</small></small>',
  31      $option, 'template', $client, $userfile,
  32      '<a href="index2.php?option=com_templates&client='.$client.'">'.T_('Back to Templates').'</a>'
  33  );
  34  ?>
  35  <table class="content">
  36  <?php
  37  writableCell( 'media' );
  38  writableCell( 'administrator/templates' );
  39  writableCell( 'templates' );
  40  writableCell( 'images/stories' );
  41  ?>
  42  </table>