Advertisement
jargon

php script does not swap in error 403 message data.

Jul 20th, 2021
1,942
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1. <?php
  2.  
  3. function e403_handler()
  4. {
  5.     global $nen;
  6.        
  7.     $nen[ 'e403' ] = $nen[ 'root' ] . 'e403/';
  8.    
  9.     $nen[ 'pagedata' ] = file_get_contents( $nen[ 'e403' ] . 'e403.html' );
  10.    
  11.     $e403msg = file_get_contents( $nen[ 'e403' ] . 'e403msg.txt' );
  12.  
  13.     str_replace('{{e403msg}}',$e403msg,$nen[ 'pagedata' ]);
  14.  
  15.     $e403vid = file_get_contents( $nen[ 'e403' ] . 'e403vid.txt' );
  16.    
  17.     str_replace('{{e403vid}}',$e403vid,$nen[ 'pagedata' ]);
  18.    
  19.     echo $nen[ 'pagedata' ];
  20.    
  21.     exit;
  22. }
  23.  
  24. ?>
  25. (edited)
  26.  
  27. Message #📃│js
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement