Steam

Steam

Not enough ratings
Steam Related PHP Coding by AK87:
By AK87
AK87 & The J-Neg Crew!
   
Award
Favorite
Favorited
Unfavorite
PHP: Steam64IDs to Steam32IDS By AK87
/* _______________________ By AK87 & The J-Neg Crew _______________________ Steam64IDs Conversion to Steam32IDs */ <?php function Steam64IDsToSteam32IDs($Steam64ID) { $offset = $Steam64ID - 76561197960265728; $id = ($offset/2); if($offset%2 != 0) { $Steam32ID = 'STEAM_0:1:' . bcsub($id, '0.5'); } else { $Steam32ID = "STEAM_0:0:" . $id; } echo '<pre>'; echo $Steam32ID; } $file = explode("\n",file_get_contents('AK87Steam64IDs.txt')); foreach ($file as $Steam32ID) { Steam64IDsToSteam32IDs($Steam32ID); } ?> /* _______________________ By AK87 & The J-Neg Crew _______________________ Steam64IDs Conversion to Steam32IDs */

/* * AK87Steam64IDs.txt contains the a list of Steam64ids * Example: */ 76561198008217263 76561197961786669 76561197991899002 76561197967653490 76561197960951084 76561197961408648 76561197981702609
PHP: Steam32IDs to Steam64IDS By AK87
/* ________________________________________________ By AK87 & The J-Neg Crew | Original code from voogru | http://forums.alliedmods.net/showthread.php?t=60899 ________________________________________________ Steam32IDs Conversion to Steam64IDs */ <?php function steamid32ToSteamid64($steamid32) { $iServer = "0"; $iAuthID = "0"; $szTmp = strtok($steamid32, ":"); while(($szTmp = strtok(":")) !== false) { $szTmp2 = strtok(":"); if($szTmp2 !== false) { $iServer = $szTmp; $iAuthID = $szTmp2; } } if($iAuthID == "0") return "0"; $steamId64 = bcmul($iAuthID, "2"); $steamId64 = bcadd($steamId64, bcadd("76561197960265728", $iServer)); echo '<pre>'; echo $steamId64; } $file = explode("\n",file_get_contents('AK87Steam32IDs.txt')); foreach ($file as $steamid32) { steamid32ToSteamid64($steamid32); } ?> /* ________________________________________________ By AK87 & The J-Neg Crew | Original code from voogru | http://forums.alliedmods.net/showthread.php?t=60899 ________________________________________________ Steam32IDs Conversion to Steam64IDs */

/* * AK87Steam32IDs.txt contains the a list of Steam32ids * Example: */ STEAM_0:0:12224129 STEAM_0:1:23975767 STEAM_0:1:760470 STEAM_0:0:15816637 STEAM_0:0:3693881 STEAM_0:0:342678 STEAM_0:0:571460 STEAM_0:1:10718440 STEAM_0:1:7699566 STEAM_0:0:6313598 STEAM_0:1:17183506 STEAM_0:0:12224129
PHP: Steam64IDs to UserIDS By AK87
/* _______________________ By AK87 & The J-Neg Crew _______________________ Steam64IDs Conversion to UserIDs */ <?php function steam64IDsToUserIDs($steamId64) { echo bcsub($steamId64, "76561197960265728", 0); echo '<pre>'; echo $steamId64; $UserID = $steamId64; if($UserID) { echo '<pre>'; echo 'U:1:'; } } $file = explode("\n",file_get_contents('AK87Steam64IDs.txt')); foreach ($file as $steamId64) { steam64IDsToUserIDs($steamId64); } ?> /* _______________________ By AK87 & The J-Neg Crew _______________________ Steam64IDs Conversion to UserIDs */

/* * AK87Steam64IDs.txt contains the a list of Steam6ids * Example: */ AK87 76561197984713986 76561198008217263 76561197961786669 76561197991899002 76561197967653490 76561197960951084 76561197961408648 76561197981702609

/* * Output is going to look like this: * Example: */ -76561197960265728 // base 64ID from steam AK87 // added this as an seperator u can write whatever u want U:1:24448258 76561197984713986 U:1:47951535 76561198008217263 U:1:1520941 76561197961786669 U:1:31633274 76561197991899002 U:1:7387762 76561197967653490 U:1:685356 76561197960951084 U:1:1142920 76561197961408648 U:1:21436881 76561197981702609 U:1: // ignore the last line
PHP: Steam64ID || Steam32ID || UserID Conversion: By AK87
/* __________________________________ By AK87 & The J-Neg Crew __________________________________ Steam64ID || Steam32ID || UserID Conversion */ <?php echo '<pre>'; echo '----------------------'; echo '<pre>'; echo 'steam64IDsToUserIDs'; echo '<pre>'; echo '----------------------'; echo '<pre>'; if( @file_get_contents('AK87Steam64IDs2.txt')) { $file = explode("\n",file_get_contents('AK87Steam64IDs2.txt')); foreach ($file as $steamId64AK87) { steam64IDsToUserIDs($steamId64AK87); } } else { echo '<pre>'; echo '*********************'; echo '<pre>'; echo '*AK87Steam64IDs2.txt*'; echo '<pre>'; echo '*file aint here AK87*'; echo '<pre>'; echo '*********************'; echo '<pre>'; } function steam64IDsToUserIDs($steamId64AK87) { echo bcsub($steamId64AK87, "76561197960265728", 0); echo '<pre>'; echo $steamId64AK87; $UserID = $steamId64AK87; if($UserID) { echo '<pre>'; echo 'U:1:'; } } echo '<pre>'; echo '----------------------'; echo '<pre>'; echo 'steamid32ToSteamid64'; echo '<pre>'; echo '----------------------'; echo '<pre>'; if( @file_get_contents('AK87Steam32IDs.txt')) { $file = explode("\n",file_get_contents('AK87Steam32IDs.txt')); foreach ($file as $steamid32) { steamid32ToSteamid64($steamid32); } } else { echo '<pre>'; echo '*********************'; echo '<pre>'; echo '*AK87Steam32IDs.txt *'; echo '<pre>'; echo '*file aint here AK87*'; echo '<pre>'; echo '*********************'; echo '<pre>'; } function steamid32ToSteamid64($steamid32) { $iServer = "0"; $iAuthID = "0"; $szTmp = strtok($steamid32, ":"); while(($szTmp = strtok(":")) !== false) { $szTmp2 = strtok(":"); if($szTmp2 !== false) { $iServer = $szTmp; $iAuthID = $szTmp2; } } if($iAuthID == "0") return "0"; $steamId64 = bcmul($iAuthID, "2"); $steamId64 = bcadd($steamId64, bcadd("76561197960265728", $iServer)); echo '<pre>'; echo $steamId64; } echo '<pre>'; echo '----------------------'; echo '<pre>'; echo 'Steam64IDsToSteam32IDs'; echo '<pre>'; echo '----------------------'; echo '<pre>'; if( @file_get_contents('AK87Steam64IDs.txt')) { $file = explode("\n",file_get_contents('AK87Steam64IDs.txt')); foreach ($file as $Steam32ID) { Steam64IDsToSteam32IDs($Steam32ID); } } else { echo '<pre>'; echo '*********************'; echo '<pre>'; echo '*AK87Steam64IDs.txt *'; echo '<pre>'; echo '*file aint here AK87*'; echo '<pre>'; echo '*********************'; echo '<pre>'; } function Steam64IDsToSteam32IDs($Steam64ID) { $offset = $Steam64ID - 76561197960265728; $id = ($offset/2); if($offset%2 != 0) { $Steam32ID = 'STEAM_0:1:' . bcsub($id, '0.5'); } else { $Steam32ID = "STEAM_0:0:" . $id; } echo '<pre>'; echo $Steam32ID; } ?> /* __________________________________ By AK87 & The J-Neg Crew __________________________________ Steam64ID || Steam32ID || UserID Conversion */

Create 3 text files : AK87Steam64IDs.txt // <--- add 64IDs u want to convert <-- Converts to 32IDS AK87Steam64IDs2.txt // <--- add 64IDs u want to convert <-- Converts to UserIDS AK87Steam32IDs.txt // <--- add 32IDs u want to convert <-- Converts to 64IDS
2 Comments
FreshFrozen ScriptSector.com 28 Sep, 2015 @ 12:54pm 
Thanks a lot this is rly working! You are awsome!
Suh Dude 23 Jul, 2015 @ 8:29am 
Thank you man! The best functions which really working.