This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:dev:284:security [24.03.2016 20:37] – [Available Methodes] correct typo mrbaseman | en:dev:284:security [24.03.2016 21:41] (current) – finished translation and removed fixme mrbaseman | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// | ||
- | |||
====== System Security ====== | ====== System Security ====== | ||
(A whole package of individual elements. From password encryption to measurements to protect against cross-site scripting.) | (A whole package of individual elements. From password encryption to measurements to protect against cross-site scripting.) | ||
Line 47: | Line 45: | ||
=== ::getFTAN === | === ::getFTAN === | ||
**Prototype: | **Prototype: | ||
- | Gibt die FTAN des aktuellen Requests zurück. Beim ersten Aufruf von getFTAN() | + | Returns the FTAN for the current request. During the first call to getFTAN() |
- | Das Argument | + | The argument |
- | * ' | + | * ' |
- | * ' | + | * ' |
- | * ' | + | * ' |
=== ::checkFtan === | === ::checkFtan === | ||
**Prototype: | **Prototype: | ||
- | Es wird überprüft, | + | It is checked whether a valid FTAN was passed in the current request. The argument |
- | Bei gültiger | + | If the FTAN is valid the return value is TRUE or FALSE otherwise. |
=== ::getIDKEY === | === ::getIDKEY === | ||
**Prototype: | **Prototype: | ||
- | Der an die Methode übergebene Wert wird gesichert und dafür ein einmaliger, 16-stelliger, alphanumerischer Schlüsselwert zurückgegeben. | + | The value passed to the method is saved and instead a value for a one-time, 16-digit alphanumeric key is returned. |
- | Es können folgende Datentypen übergeben werden: **// | + | The following data types can be passed: **// |
=== :: | === :: | ||
**Prototype: | **Prototype: | ||
- | * **// | + | * **// |
- | * **// | + | * **// |
=== :: | === :: | ||
**Prototype: | **Prototype: | ||
- | Ein übergebener Integer-Wert wird auf eine verfügbare Intervallstufe zwischen | + | The supplied integer value is corrected to an available interval between |
=== :: | === :: | ||
**Prototype: | **Prototype: | ||
- | Gibt ein Array mit folgenden Schlüsseln zurück: | + | Returns an array with the following keys: |
- | ^Schlüssel | + | ^Key ^ Description |
- | | min | minimale Lebensdauer | + | | min | minimum lifetime |
- | | max | maximale Lebensdauer | + | | max | maximum lifetime |
- | | step | Schrittweite | + | | step | Increment |
- | | value| | + | | value| |
- | Wozu werden diese Werte benötigt? An das Template übergeben, lässt sich z.B. eine Fortschrittsanzeige realisieren, | + | What are these values needed for? Transfered to the template, one can for instance implement a progress bar that visually displays the time until timeout. |
---- | ---- | ||
- | ==== Anwendungsbeispiele | + | ==== Examples |
- | :!: **Achtung:** Requests | + | :!: **Warning** Requests |
- | === Formular | + | === Form === |
<PHP> | <PHP> | ||
$sOutput = '< | $sOutput = '< | ||
Line 93: | Line 91: | ||
echo $sOutput; | echo $sOutput; | ||
- | // Auswertung | + | // Evaluation |
- | if ($oReg-> | + | if ($oReg-> |
$iRecordId = $oReg-> | $iRecordId = $oReg-> | ||
Line 105: | Line 103: | ||
echo $sOutput; | echo $sOutput; | ||
- | // Auswertung | + | // Evaluation |
- | if ($oReg-> | + | if ($oReg-> |
$iRecordId = $oReg-> | $iRecordId = $oReg-> | ||
Line 122: | Line 120: | ||
twig-template | twig-template | ||
- | // Beispiel | + | // Example |
< | < | ||
< | < | ||
Line 129: | Line 127: | ||
</ | </ | ||
- | // Beispiel | + | // Example |
- | <a href=" | + | <a href=" |
</ | </ | ||
<PHP> | <PHP> | ||
save-script | save-script | ||
- | // Beispiel | + | // Example |
if ($oReg-> | if ($oReg-> | ||
$record_id = $oReg-> | $record_id = $oReg-> | ||
[...] | [...] | ||
} | } | ||
- | // Beispiel | + | // Example |
if ($oReg-> | if ($oReg-> | ||
$record_id = $oReg-> | $record_id = $oReg-> |