Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.62 KB | None | 0 0
  1.     public function Avatar($steamid,$name=""){
  2.         $steam64 = $this->Steam_64($steamid);
  3.         $cacheFile = "cache/".$steam64.".txt";
  4.         if(file_exists($cacheFile)){
  5.             $handle = fopen($cacheFile, "r");
  6.             while (!feof($handle)) {
  7.                 $buffer = fgets($handle, 4096);
  8.             }
  9.             fclose($handle);
  10.             $info = explode(',', $buffer);
  11.             $return = [
  12.                 'Avatar'=>$info[0],
  13.                 'Name'=>$info[1],
  14.                 'Profileurl'=>'href="'.$info[2].'" target="_blank"', //в этой строке ошибка
  15.             ];
  16.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement