Jump to content

bobl61

New Members
  • Posts

    9
  • Joined

  • Last visited

About bobl61

  • Birthday January 27

Contact Methods

  • Website URL
    http://q3eplus.servequake.com/

Profile Information

  • Gender
    Male
  • Location
    Glendora, NJ

bobl61's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. WOO-HOO! Everything is working perfectly now. The player names are perfect. The country flags are working properly. Thanks so much for your help requinix!
  2. Only the theme. Changed some images and banners. Nothing to do with the processing of the stats. I did see this further down the file. I forgot that I changed this also... //change: special chars if ($this->V93da65a9['xp_version'] <= 103) { // 1.03 special chars $Vaa8af3eb = preg_replace("/\+([\x01-\x7F])#/e", "chr(ord('\\1') + 127)", $Vaa8af3eb); } else { // 1.04 special chars $Vaa8af3eb = preg_replace("/#(#|[0-9a-f]{2})/ie", "'\\1' == '#' ? '#' : chr(hexdec('\\1'))", $Vaa8af3eb); } $Vaa8af3eb = strtr($Vaa8af3eb, $this->V42dfa3a4['char_trans']); //endchange $this->Vae2aeb93->F8405e6ea($this->Va2bbabfe[$V2bfe9d72]['id'], $this->F7212cda9($Vaa8af3eb)); } return true; } return false; } function Fe7c49e90(&$V6438c669) // si descongela (oO, no sabía esto) { To this... //change: special chars if ($this->V93da65a9['xp_version'] <= 103) { // 1.03 special chars $Vaa8af3eb = preg_replace_callback("/\+([\x01-\x7F])#/", function($matches){ foreach($matches as $match){ return chr($match); } }, $Vaa8af3eb ); } else { // 1.04 special chars $Vaa8af3eb = preg_replace_callback("/#(#|[0-9a-f]{2})/", function($matches){ foreach($matches as $match){ return chr($match); } }, $Vaa8af3eb ); Maybe that's causing it?
  3. Okay, got it. Definitely getting closer. Players with special characters in their names are still not displaying properly, though. Here's what I ahve now... //$V70dda5df = array("black", "red", "lime", "yellow", "blue", "aqua", "fuchsia", "white", "orange"); //change: special chars if ($this->V93da65a9['xp_version'] <= 103) { // 1.03 special chars $V341be97d = preg_replace_callback("/\+([\x01-\x7F])#/", fn($matches) => chr(ord($matches[1]) + 127), $V341be97d); } else { // 1.04 special chars $V341be97d = preg_replace_callback('/\^([^\^<])/', fn($matches) => '`' . $V70dda5df[ord($matches[1]) % 8], $V341be97d); } //endchange $V70dda5df = array("#555555", "#e90000", "#00dd24", "#f5d800", "#2e61c8", "#16b4a5", "#f408f1", "#efefef", "#ebbc1b"); $tmp = array("\xde" => "^"); $V341be97d = strtr($V341be97d, array_diff_assoc($this->V42dfa3a4['char_trans'], $tmp)); if ($V341be97d[0] != "^") $V341be97d = "^7" . $V341be97d; $V341be97d = preg_replace('/\^(a[1-9]|[fFrRbBl])/', "", $V341be97d); $V341be97d = preg_replace('/\^s(\^x[a-fA-F0-9]{6}|\^[^\^])/', "\\1", $V341be97d); $V341be97d = preg_replace('/\^s/', "^7", $V341be97d); $V341be97d = preg_replace('/(\^(x[a-fA-F0-9]{6}|[^\^]))\^(x[a-fA-F0-9]{6}|[^\^])/', "\\1", $V341be97d); $V341be97d = preg_replace('/\^x([a-fA-F0-9]{6})/i', "`#\\1", $V341be97d); $V341be97d = preg_replace_callback('/\^([^\^<])/', fn($matches) => '`' . $V70dda5df[ord($matches[1]) % 8], $V341be97d); $V341be97d = strtr($V341be97d, $tmp); return $V341be97d; } function Fa3f5d48d($V341be97d) // parece eliminar efectos del nombre BTW - I really appreciate all your help.
  4. Here's what the code looks like now... //$V70dda5df = array("black", "red", "lime", "yellow", "blue", "aqua", "fuchsia", "white", "orange"); //change: special chars if ($this->V93da65a9['xp_version'] <= 103) { // 1.03 special chars preg_replace_callback("/\+([\x01-\x7F])#/", fn($matches) => chr(ord($matches[1]) + 127), $V341be97d); } else { // 1.04 special chars preg_replace_callback("/#(#|[0-9a-f]{2})/i", fn($matches) => $matches[1] == '#' ? '#' : chr(hexdec($matches[1])), $V341be97d); } //endchange $V70dda5df = array("#555555", "#e90000", "#00dd24", "#f5d800", "#2e61c8", "#16b4a5", "#f408f1", "#efefef", "#ebbc1b"); $tmp = array("\xde" => "^"); $V341be97d = strtr($V341be97d, array_diff_assoc($this->V42dfa3a4['char_trans'], $tmp)); if ($V341be97d[0] != "^") $V341be97d = "^7" . $V341be97d; $V341be97d = preg_replace('/\^(a[1-9]|[fFrRbBl])/', "", $V341be97d); $V341be97d = preg_replace('/\^s(\^x[a-fA-F0-9]{6}|\^[^\^])/', "\\1", $V341be97d); $V341be97d = preg_replace('/\^s/', "^7", $V341be97d); $V341be97d = preg_replace('/(\^(x[a-fA-F0-9]{6}|[^\^]))\^(x[a-fA-F0-9]{6}|[^\^])/', "\\1", $V341be97d); $V341be97d = preg_replace('/\^x([a-fA-F0-9]{6})/i', "`#\\1", $V341be97d); preg_replace_callback('/\^([^\^<])/', fn($matches) => '`' . $V70dda5df[ord($matches[1]) % 8], $V341be97d); $V341be97d = strtr($V341be97d, $tmp); return $V341be97d; } function Fa3f5d48d($V341be97d) // parece eliminar efectos del nombre
  5. I've implemented your fixes and the program runs without errors. Only problem now is all the players have ^ characters in their names.
  6. It's the latest working version of the script. There's supposedly a newer version, but I downloaded it and the files are corrupt. I'm not a coder, but I was able to replace other instances of the /e modifier using research. I replaced: //change: special chars if ($this->V93da65a9['xp_version'] <= 103) { // 1.03 special chars $V341be97d = preg_replace("/\+([\x01-\x7F])#/e", "chr(ord('\\1') + 127)", $V341be97d); } else { // 1.04 special chars $V341be97d = preg_replace("/#(#|[0-9a-f]{2})/ie", "'\\1' == '#' ? '#' : chr(hexdec('\\1'))", $V341be97d); } to this: //change: special chars if ($this->V93da65a9['xp_version'] <= 103) { // 1.03 special chars $V341be97d = preg_replace_callback("/\+([\x01-\x7F])#/", function($matches){ foreach($matches as $match){ return chr($match); } }, $V341be97d ); } else { // 1.04 special chars $V341be97d = preg_replace_callback("/#(#|[0-9a-f]{2})/", function($matches){ foreach($matches as $match){ return chr($match); } }, $V341be97d ); Those changes work without errors. I just can't seem to get the code in my first post to work correctly. Here's a link to the program I'm using.
  7. I'm using a game stats processor for my site called VSP. I've corrected all the /e modifier errors using the preg_replace_callback function except for this one. I'm hoping someone can help. The code is: $V341be97d = preg_replace('/\^([^\^<])/e', "'`' . \$V70dda5df[ord('\\1') % 8]", $V341be97d); I'm attaching the entire php file for reference.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.