-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6956bac
commit 105ef55
Showing
6 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
namespace wcf\util; | ||
|
||
require_once WCF_DIR . 'lib/system/api/nitrapi-php/autoload.php'; | ||
|
||
class Nitrapi extends \Nitrapi\Nitrapi | ||
{ | ||
public function __construct($options = array(), $url = NITRAPI_LIVE_URL) | ||
{ | ||
parent::__construct(NITRAPI_ACCESS_TOKEN, $options, $url); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<language xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com https://www.woltlab.com/XSD/tornado/language.xsd" languagecode="de"> | ||
|
||
<category name="wcf.acp.option"> | ||
<item name="wcf.acp.option.category.nitrapi"><![CDATA[NitrAPI]]></item> | ||
|
||
<item name="wcf.acp.option.nitrapi_access_token"><![CDATA[Langzeit Token]]></item> | ||
<item name="wcf.acp.option.nitrapi_access_token.description"><![CDATA[Langzeit Token können unter <a href="https://server.nitrado.net/deu/developer/tokens" class="externalURL" rel="noopener noreferrer" style="">https://server.nitrado.net/deu/developer/tokens</a> erstellt werden.]]></item> | ||
</category> | ||
|
||
</language> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<language xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com https://www.woltlab.com/XSD/tornado/language.xsd" languagecode="en"> | ||
|
||
<category name="wcf.acp.option"> | ||
<item name="wcf.acp.option.category.nitrapi"><![CDATA[NitrAPI]]></item> | ||
|
||
<item name="wcf.acp.option.nitrapi_access_token"><![CDATA[Long Term Token]]></item> | ||
<item name="wcf.acp.option.nitrapi_access_token.description"><![CDATA[Long term tokens can be created at <a href="https://server.nitrado.net/deu/developer/tokens" class="externalURL" rel="noopener noreferrer" style="">https://server.nitrado.net/deu/developer/tokens</a>]]></item> | ||
</category> | ||
|
||
</language> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/tornado/option.xsd"> | ||
<import> | ||
<categories> | ||
<category name="nitrapi"> | ||
<parent>general.system</parent> | ||
<showorder>101</showorder> | ||
</category> | ||
</categories> | ||
|
||
<options> | ||
<option name="nitrapi_access_token"> | ||
<categoryname>nitrapi</categoryname> | ||
<showorder>1</showorder> | ||
<optiontype>text</optiontype> | ||
</option> | ||
</options> | ||
</import> | ||
|
||
</data> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters