mirror of
https://github.com/hakasenyang/osu-tournament-php
synced 2026-08-22 03:03:07 +09:00
Edit comment
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* @file include.php
|
||||||
|
* @author Hakase (contact@hakase.kr)
|
||||||
|
*/
|
||||||
require_once 'include/db.php';
|
require_once 'include/db.php';
|
||||||
require_once 'include/webparser.php';
|
require_once 'include/webparser.php';
|
||||||
require_once 'include/check.php';
|
require_once 'include/check.php';
|
||||||
|
|||||||
+44
-40
@@ -1,52 +1,55 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* @file include/check.php
|
||||||
|
* @author Hakase (contact@hakase.kr)
|
||||||
|
*/
|
||||||
namespace OsuTournament;
|
namespace OsuTournament;
|
||||||
class Check
|
class Check
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* [$Parser Load parser class]
|
* $Parser Load parser class
|
||||||
* @var [class]
|
* @var class
|
||||||
*/
|
*/
|
||||||
private $Parser;
|
private $Parser;
|
||||||
/**
|
/**
|
||||||
* [$RealID transfer osu! UserID to ID]
|
* $RealID transfer osu! UserID to ID
|
||||||
* [$OsuID transfer osu! ID to UserID]
|
* $OsuID transfer osu! ID to UserID
|
||||||
* @var [string]
|
* @var string
|
||||||
*/
|
*/
|
||||||
public $RealID, $OsuID;
|
public $RealID, $OsuID;
|
||||||
/**
|
/**
|
||||||
* [$Playcount User playcount]
|
* $Playcount User playcount
|
||||||
* [$Performance User performance]
|
* $Performance User performance
|
||||||
* [$Rank User ranking]
|
* $Rank User ranking
|
||||||
* [$Occupation Check user occupation]
|
* $Occupation Check User occupation
|
||||||
* [$Occupation_Set Setting user occupation data]
|
* $Occupation_Set Setting user occupation data
|
||||||
* @var [string]
|
* @var string
|
||||||
*/
|
*/
|
||||||
public $Playcount, $Performance, $Rank, $Occupation, $Occupation_Set;
|
public $Playcount, $Performance, $Rank, $Occupation, $Occupation_Set;
|
||||||
/**
|
/**
|
||||||
* [$mode osu! mode
|
* $mode osu! mode
|
||||||
* 0 = osu! standard (standard)
|
* 0 = osu! standard (standard)
|
||||||
* 1 = Taiko (taiko)
|
* 1 = Taiko (taiko)
|
||||||
* 2 = Catch The Beat (ctb)
|
* 2 = Catch The Beat (ctb)
|
||||||
* 3 = osu!mania (mania)
|
* 3 = osu!mania (mania)
|
||||||
* ]
|
* @var int
|
||||||
* @var [int]
|
|
||||||
*/
|
*/
|
||||||
private $mode;
|
private $mode;
|
||||||
/**
|
/**
|
||||||
* [$server osu! server
|
* $server osu! server
|
||||||
* 0 or osu = osu! Server
|
* 0 or osu = osu! Server
|
||||||
* 1 or ripple = Ripple Server
|
* 1 or ripple = Ripple Server
|
||||||
* other = return false
|
* other = return false
|
||||||
*
|
*
|
||||||
* using data : only use osu or ripple (string)]
|
* using data : only use osu or ripple (string)
|
||||||
* @var [int or string]
|
* @var int, string
|
||||||
*/
|
*/
|
||||||
public $server;
|
public $server;
|
||||||
/**
|
/**
|
||||||
* Temp data
|
* Temp data
|
||||||
* [$data_profile description]
|
* $data_profile Temp data
|
||||||
* [$data_userdata description]
|
* $data_userdata Temp data
|
||||||
* @var [string]
|
* @var string
|
||||||
*/
|
*/
|
||||||
private $data_profile, $data_userdata;
|
private $data_profile, $data_userdata;
|
||||||
/**
|
/**
|
||||||
@@ -59,14 +62,13 @@
|
|||||||
$this->Parser = new Parser();
|
$this->Parser = new Parser();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* [SelectMode osu! mode]
|
* SelectMode osu! mode
|
||||||
* [$mode osu! mode
|
* $mode osu! mode
|
||||||
* 0 = osu! standard (standard)
|
* 0 = osu! standard (standard)
|
||||||
* 1 = Taiko (taiko)
|
* 1 = Taiko (taiko)
|
||||||
* 2 = Catch The Beat (ctb)
|
* 2 = Catch The Beat (ctb)
|
||||||
* 3 = osu!mania (mania)
|
* 3 = osu!mania (mania)
|
||||||
* ]
|
* @var int, string
|
||||||
* @var [int]
|
|
||||||
*/
|
*/
|
||||||
private function SelectMode($mode)
|
private function SelectMode($mode)
|
||||||
{
|
{
|
||||||
@@ -95,8 +97,10 @@
|
|||||||
return $this->mode;
|
return $this->mode;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* [CheckUser Get osu! UserID]
|
* CheckUser Check user data
|
||||||
* @param [string] $osuid [osu! ID]
|
* @param string $osuid Input osu! ID
|
||||||
|
* @param int, string $mode Input osu! mode
|
||||||
|
* @param string $server Input osu! server (osu/ripple)
|
||||||
*/
|
*/
|
||||||
public function CheckUser($osuid, $mode, $server='osu')
|
public function CheckUser($osuid, $mode, $server='osu')
|
||||||
{
|
{
|
||||||
@@ -145,7 +149,7 @@
|
|||||||
return $this->OsuID;
|
return $this->OsuID;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* [GetOccupation Get user occupation data]
|
* GetOccupation Get user occupation data
|
||||||
*/
|
*/
|
||||||
private function GetOccupation()
|
private function GetOccupation()
|
||||||
{
|
{
|
||||||
@@ -160,7 +164,7 @@
|
|||||||
return $this->Occupation_Set;
|
return $this->Occupation_Set;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* [GetUserData Get user data!]
|
* GetUserData Get user data!
|
||||||
*/
|
*/
|
||||||
private function GetUserData()
|
private function GetUserData()
|
||||||
{
|
{
|
||||||
@@ -196,7 +200,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* [ResetObject All reset using data]
|
* ResetObject All reset using data
|
||||||
*/
|
*/
|
||||||
private function ResetObject()
|
private function ResetObject()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* @file include/db.php
|
||||||
|
* @author Hakase (contact@hakase.kr)
|
||||||
|
*/
|
||||||
namespace OsuTournament;
|
namespace OsuTournament;
|
||||||
/**
|
/**
|
||||||
* Osu Tournament for PHP
|
* Osu Tournament for PHP
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* @file include/webparser.php
|
||||||
|
* @author Hakase (contact@hakase.kr)
|
||||||
|
*/
|
||||||
namespace OsuTournament;
|
namespace OsuTournament;
|
||||||
class Parser
|
class Parser
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user