Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

CodeIgniter increase max_input_vars in admin

By: a guest on Sep 16th, 2013  |  syntax: None  |  size: 0.50 KB  |  views: 79  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. admin.php file content:
  2.  
  3. <?php
  4.  
  5. require 'index.php';
  6.  
  7.  
  8.  
  9. .htaccess content
  10.  
  11. <FilesMatch "^admin\.php">
  12.     php_value max_input_vars 20000
  13. </FilesMatch>
  14.  
  15. ... rest of the code ...
  16.  
  17. RewriteCond %{REQUEST_FILENAME} !-f
  18. RewriteCond %{REQUEST_FILENAME} !-d
  19. RewriteCond $1 ^admin/
  20. RewriteCond $1 !^(admin\.php)
  21. RewriteRule ^(.*)$ admin.php/$1 [L,QSA]
  22.  
  23. RewriteCond %{REQUEST_FILENAME} !-f
  24. RewriteCond %{REQUEST_FILENAME} !-d
  25. RewriteCond $1 !^(index\.php)
  26. RewriteRule ^(.*)$ index.php/$1 [L,QSA]