Guest User

Untitled

a guest
Jan 27th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.0.8.0
  8. * @ Author : DeZender
  9. * @ Release on : 25.09.2017
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. defined( 'BASEPATH' ) || exit( 'No direct script access allowed' );
  15.  
  16. if (!(function_exists( 'form_open' ))) {
  17. function form_open($action = '', $attributes = array( ), $hidden = array( ))
  18. {
  19. $CI = &get_instance( );
  20.  
  21. if (!($action)) {
  22. $action = $CI->config->site_url( $CI->uri->uri_string( ) );
  23. }
  24. else if (strpos( $action, '://' ) === false) {
  25. $action = $CI->config->site_url( $action );
  26. }
  27.  
  28. $attributes = _attributes_to_string( $attributes );
  29.  
  30. if (stripos( $attributes, 'method=' ) === false) {
  31. $attributes .= ' method="post"';
  32. }
  33.  
  34. if (stripos( $attributes, 'accept-charset=' ) === false) {
  35. $attributes .= ' accept-charset="' . strtolower( config_item( 'charset' ) ) . '"';
  36. }
  37.  
  38. $form = '<form action="' . $action . '"' . $attributes . '>' . "\n";
  39.  
  40. if (is_array( $hidden )) {
  41. ............................................................
  42. .........................
  43. .....
Advertisement
Add Comment
Please, Sign In to add comment