Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2015
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
  6. *
  7. * @ Version : 1.1.6.0
  8. * @ Author : DeZender
  9. * @ Release on : 02.06.2013
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. public function smartslashes($string) {
  15. return (get_magic_quotes_gpc( ) ? $string : addslashes( $string ));
  16. }
  17.  
  18. public function my_array_shift($array) {
  19. array_push( $array, $array[0] );
  20. reset( $array );
  21. $i = 0;
  22. $newArray = array( );
  23.  
  24. while (list( $key, $val ) = each( $array )) {
  25. if (0 < $i) {
  26. $newArray[$key] = $val;
  27. } else {
  28. $toReturn = $array[$key];
  29. }
  30.  
  31. ++$i;
  32. }
  33.  
  34. $array = $newArray;
  35. asort( $array );
  36. reset( $array );
  37. return (!is_array( $toReturn ) ? array( 1 => $toReturn ) : $toReturn);
  38. }
  39.  
  40. public function get_dir_array($path) {
  41. $handle = opendir( $path );
  42.  
  43. while ($file = readdir( $handle )) {
  44. if (( ( ( $file != '.' && $file != '..' ) && $file != 'CVS' ) && $file != 'index.html' )) {
  45. $file = explode( '.', $file );
  46. $array[$file[0]] = ucwords( $file[0] );
  47. ....................................................................
  48. ..................................
  49. ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement