Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @version $Id: default.php 74 2013-02-05 13:44:00Z sbebbers $
- * @package My Pictures v1.0.1
- * @subpackage Components
- * @copyright Copyright (C) 2013 Metapps Ltd
- * @author Shaun Bebbington
- * @link http://www.metaps.co.uk
- * @license License GNU General Public License version 2 or later
- * Use at your own risk - no warranty implied or given
- * @note This is the default tmpl for the component view :-)
- * view.html.php file is at http://pastebin.com/Fh4ANMEv
- */
- defined('_JEXEC') or die('You do not have the correct permissions to view this page.');
- ?>
- <div class="another-component">
- <form name="adminForm" method="post" enctype="multipart/form-data"> <!-- action="<?php //$_SERVER['PHP_SELF']; ?> -->
- <h3>Welcome to My Pictures Component 1.0.1</h3>
- <?php
- // Might be a redundant function call:
- session_start();
- ?>
- <label for="file">Filename:</label>
- <input type="file" name="file" id="file" />
- <br />
- <input type="submit" name="submit" value="Submit" />
- <?php
- if(isset($_POST['submit'])) {
- $directoryName = 'myphotos';
- $this->makeDir( $directoryName );
- }
- ?>
- <input type="hidden" name="option" value="com_anotherone" />
- <input type="hidden" name="task" value="" />
- <input type="hidden" name="view" value="anotherone" />
- </form>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement