Advertisement
Shaun_B

tmpl file for Joomla 2.5.x component: My Pictures v1.0.1

Feb 5th, 2013
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.30 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @version     $Id: default.php 74 2013-02-05 13:44:00Z sbebbers $
  4.  * @package     My Pictures v1.0.1
  5.  * @subpackage      Components
  6.  * @copyright       Copyright (C) 2013 Metapps Ltd
  7.  * @author      Shaun Bebbington
  8.  * @link        http://www.metaps.co.uk
  9.  * @license     License GNU General Public License version 2 or later
  10.  *          Use at your own risk - no warranty implied or given
  11.  * @note        This is the default tmpl for the component view :-)
  12.  *          view.html.php file is at http://pastebin.com/Fh4ANMEv
  13.  */
  14. defined('_JEXEC') or die('You do not have the correct permissions to view this page.');
  15. ?>
  16. <div class="another-component">
  17.     <form name="adminForm" method="post" enctype="multipart/form-data"> <!-- action="<?php //$_SERVER['PHP_SELF']; ?> -->
  18.     <h3>Welcome to My Pictures Component 1.0.1</h3>
  19.     <?php
  20.         // Might be a redundant function call:
  21.         session_start();
  22.     ?>
  23.     <label for="file">Filename:</label>
  24.     <input type="file" name="file" id="file" />
  25.     <br />
  26.     <input type="submit" name="submit" value="Submit" />
  27.     <?php
  28.         if(isset($_POST['submit'])) {
  29.             $directoryName = 'myphotos';
  30.             $this->makeDir( $directoryName );
  31.         }
  32.     ?>
  33.     <input type="hidden" name="option" value="com_anotherone" />
  34.     <input type="hidden" name="task" value="" />
  35.     <input type="hidden" name="view" value="anotherone" />
  36.     </form>
  37. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement