mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
text align tag + update/edit get desc + rating improve
This commit is contained in:
@@ -34,3 +34,16 @@ function attendanceRetroactive($params)
|
||||
return $rep->retroactive($CURUSER['id'], $params['timestamp']);
|
||||
}
|
||||
|
||||
function getPtGen($params)
|
||||
{
|
||||
$rep = new Nexus\PTGen\PTGen();
|
||||
$result = $rep->generate($params['url']);
|
||||
if ($rep->isRawPTGen($result)) {
|
||||
return $result['format'];
|
||||
} elseif ($rep->isIyuu($result)) {
|
||||
return $result['data']['format'];
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user