Advertisement
pbowers

UserSpice: testinput.php - test changes to Input.php (root)

Sep 19th, 2016
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.75 KB | None | 0 0
  1. <?php
  2. /*
  3. UserSpice 4
  4. An Open Source PHP User Management System
  5. by the UserSpice Team at http://UserSpice.com
  6.  
  7. This program is free software: you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation, either version 3 of the License, or
  10. (at your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program.  If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. ?>
  21. <?php
  22. require_once 'users/init.php';
  23. require_once $abs_us_root.$us_url_root.'users/includes/header.php';
  24. require_once $abs_us_root.$us_url_root.'users/includes/navigation.php';
  25. ?>
  26.  
  27. <?php //if (!securePage($_SERVER['PHP_SELF'])){die();} ?>
  28.  
  29. <div id="page-wrapper">
  30.     <div class="container-fluid">
  31.         <!-- Page Heading -->
  32.         <div class="row">
  33.             <div class="col-sm-12">
  34.                 <h1 class="page-header">
  35.                     Welcome to UserSpice
  36.                     <small>An Open Source PHP User Management Framework</small>
  37.                 </h1>
  38.                 <!-- Content goes here -->
  39. <?php
  40. $x = Input::get('x');
  41. echo "DEBUG: x=<pre>".print_r($x,true)."</pre><br />\n";
  42. $y = Input::get('y');
  43. echo "DEBUG: y=<pre>".print_r($y,true)."</pre><br />\n";
  44. $z = Input::get('z');
  45. echo "DEBUG: z=<pre>".print_r($z,true)."</pre><br />\n";
  46.  
  47.  ?>
  48.  <form>
  49.      <input type="text" name="x[a]" value="abc" />
  50.      <input type="text" name="x[b]" value="bc" />
  51.      <input type="text" name="x[c]" value="cd" />
  52.      <input type="text" name="x[d]" value="def" />
  53.      <input type="text" name="x[aLongNameJustForFun]" value="def" />
  54.      <input type="text" name="x[a name with spaces]" value="def" />
  55.      <input type="text" name="x[]" value="empty brackets0" />
  56.      <input type="text" name="x[]" value="empty brackets1" />
  57.      <input type="text" name="x[]" value="empty brackets2" />
  58.      <input type="text" name="x[1]" value="numeric 1 after empty brackets" />
  59.      <input type="text" name="x[14]" value="numeric 14" />
  60.      <input type="text" name="y" value="non-array y" />
  61.      <input type="text" name="z" value="non-array z" />
  62.      <input type="submit" />
  63.  </form>
  64.                 <!-- Content Ends Here -->
  65.             </div> <!-- /.col -->
  66.         </div> <!-- /.row -->
  67.     </div> <!-- /.container -->
  68. </div> <!-- /.wrapper -->
  69.  
  70.  
  71. <?php require_once $abs_us_root.$us_url_root.'users/includes/page_footer.php'; // the final html footer copyright row + the external js calls ?>
  72.  
  73. <!-- Place any per-page javascript here -->
  74.  
  75. <?php require_once $abs_us_root.$us_url_root.'users/includes/html_footer.php'; // currently just the closing /body and /html ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement