Advertisement
Guest User

CodeIgniter increase max_input_vars in admin

a guest
Sep 16th, 2013
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement