Advertisement
jargon

Linedancer :: "menuGenerator.php" (Partial)

Sep 7th, 2024
480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.74 KB | Gaming | 0 0
  1. $pagedata = "";
  2.  
  3. foreach(['html','meta','css','js'] as $obj){
  4.     $$obj = "";
  5. }
  6.  
  7. foreach(['html'] as $obj){
  8.     if(is_file("{$_SERVER['DOCUMENT_ROOT']}/Shared/scripts/{$obj}/menu.{$obj}")){
  9.         $$obj .= file_get_contents("{$_SERVER['DOCUMENT_ROOT']}/Shared/scripts/{$obj}/menu.{$obj}");
  10.     }
  11. }
  12.  
  13. $pagedata .= $html;
  14.  
  15. include_once("{$GENERATOR_PATH}styles.php");
  16.  
  17. $pagedata = styles($pagedata);
  18.  
  19. foreach(['meta','css','js'] as $obj){
  20.     if(is_file("{$_SERVER['DOCUMENT_ROOT']}/Shared/scripts/{$obj}/menu.{$obj}")){
  21.         $$obj .= file_get_contents("{$_SERVER['DOCUMENT_ROOT']}/Shared/scripts/{$obj}/menu.{$obj}");
  22.     }
  23. }
  24.  
  25. foreach(['html','meta','css','js'] as $obj){
  26.     $pagedata = str_replace("{{ {$obj} }}", $$obj, $pagedata);
  27. }
  28.  
  29. echo $pagedata;
  30. exit;
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement