jargon

ini.php

Sep 28th, 2021
962
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. // declare initialization scope
  4. $nen = array();
  5.  
  6. // include initialization data
  7. include_once( 'nen.php' );
  8.  
  9. // configure initialization data
  10. nen_ini();
  11.  
  12. $nen[ 'src' ] = 'R11-SRC';
  13. $nen[ 'emojis' ] = 'emojis/';
  14.  
  15. // include Tim Keal's token library
  16. include_once ( $nen[ 'root' ]. 'TRK Library/trk tok.php');
  17.  
  18. // include Tim Keal's memory trace library
  19. include_once ( $nen[ 'root' ]. 'TRK Library/trk echo.php');
  20.  
  21. // include Tim Keal's table of contents library
  22. include_once ( $nen[ 'root' ]. 'TRK Library/fasttoc.php' );
  23.  
  24. function me_shorthand($me)
  25. {
  26.     $pattern = '/(mk)(11|45|71)([A-Z]+)(\.php)/';
  27.     if( preg_match($pattern, $me, $matches) )
  28.     {
  29.         return array( 'mk' => $matches[ 2 ], 'me'=> $matches[ 3 ] );
  30.     }
  31.     else
  32.     {
  33.         return null;
  34.     }
  35.    
  36. }
  37.  
  38. ?>
RAW Paste Data