Advertisement
jargon

LD3 Core Class PHP

Dec 8th, 2024
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.81 KB | Gaming | 0 0
  1. /* Warning: Undefined variable $_SERVER['DOCUMENT_ROOT'] in C:\xampp-8.1.6-0\projects\test.puzzlum.org.6.test\public\LD3\Linedancer\scripts\php\LD3 Framework\LD3 Classes\LD3 Core Class.php on line 222 */
  2.  
  3.                         if
  4.                         (
  5.                             preg_match_all
  6.                             (
  7.                                 '/\{\$(?<key>[^{}]+)\}/xi',
  8.                                 $lines[$index],
  9.                                 $matches,
  10.                                 PREG_SET_ORDER
  11.                             )
  12.                         )
  13.                         {
  14.                             if(isset($_GET['track']))
  15.                             {
  16.                                 print_r("Key match on line: {$index}\r\n");
  17.                             }
  18.                             foreach($matches as $match)
  19.                             {
  20.                                 if(isset($match['key']))
  21.                                 {
  22.                                         $key = $match['key'];
  23.                                         $lines[$index] = str_replace($key,$$key,$lines[$index]); // line 222
  24.                                     if(isset($_GET['track']))
  25.                                     {
  26.                                         print_r("{$key} = {$$key}");
  27.                                     }
  28.                                 }
  29.                             }
  30.                         }
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement