mirror of
https://github.com/hakasenyang/osu-tournament-php
synced 2026-08-22 03:03:07 +09:00
Remove junk code
This commit is contained in:
@@ -90,12 +90,8 @@
|
|||||||
*/
|
*/
|
||||||
public function CheckUser($osuid, $mode)
|
public function CheckUser($osuid, $mode)
|
||||||
{
|
{
|
||||||
$osuid = strtolower($osuid);
|
|
||||||
if ($osuid !== $this->OsuID && $osuid !== strtolower($this->RealID))
|
|
||||||
$this->ResetObject();
|
$this->ResetObject();
|
||||||
|
|
||||||
$this->SelectMode($mode);
|
$this->SelectMode($mode);
|
||||||
|
|
||||||
// Transfer osu! ID to Num
|
// Transfer osu! ID to Num
|
||||||
$this->data_profile = $this->Parser->WEBParsing('https://osu.ppy.sh/u/' . $osuid);
|
$this->data_profile = $this->Parser->WEBParsing('https://osu.ppy.sh/u/' . $osuid);
|
||||||
$this->OsuID = $this->Parser->splits($this->data_profile, 'var userId = ', ';');
|
$this->OsuID = $this->Parser->splits($this->data_profile, 'var userId = ', ';');
|
||||||
|
|||||||
Reference in New Issue
Block a user