documentation.php
File documentation.php
has 453 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
include __DIR__.'/assets/header.php';
require_once __DIR__.'/authenticatron.php';
Line exceeds 120 characters; contains 126 characters Open
Open
echo '<p>The required image functions don\'t seem to exist, so we\'re falling back to Google Charts.</p>';
- Exclude checks
Line exceeds 120 characters; contains 121 characters Wontfix
Wontfix
<p>This returns a simple boolean value to prevent data-leakage and zero-equivalent values from codes or keys.</p>
- Exclude checks
Line exceeds 120 characters; contains 183 characters Open
Open
<p><strong>QR Code</strong> (Quick Response Code) is a type of 2D matrix barcodes with built in redundancy, commonly used to scan links into mobile phones through cameras.</p>
- Exclude checks
Line exceeds 120 characters; contains 138 characters Open
Open
<p><code>$Variance</code> is an integer indicating the adjustment of codes with a 30 second value. Defaults to 2, or 1 minute.</p>
- Exclude checks
Line exceeds 120 characters; contains 124 characters Open
Open
<p>Outputs an OTPAuth URL that gives people their Secret along with a passed Member Name and an optional Issuer.</p>
- Exclude checks
Line exceeds 120 characters; contains 124 characters Open
Open
<p><strong>Base32</strong> is an encoding, effectively an alphabet, that computers use made up of 32 characters.</p>
- Exclude checks
Line exceeds 120 characters; contains 128 characters Open
Open
<p>Note the indexes, which can be used to determine the time difference, and perhaps warn users on the outer bounds.</p>
- Exclude checks
Line exceeds 120 characters; contains 179 characters Wontfix
Wontfix
<p>Outputs an array, where <code>Secret</code> is the Secret for the member, <code>URL</code> is an OTPAuth URL, and <code>QR</code> is the Data64 URI for the QR code.</p>
- Exclude checks
Line exceeds 120 characters; contains 141 characters Wontfix
Wontfix
<p><code>$Code</code> is what the user enters to authenticate. A 6 digit string, usually numeric, but not necessarily an integer.</p>
- Exclude checks
Line exceeds 120 characters; contains 209 characters Open
Open
<p><strong>OATH</strong> is the short name for the <a href="https://openauthentication.org/">Initiative for Open Authentication</a>, an organisation dedicated to keeping secure authentication free.</p>
- Exclude checks
Line exceeds 120 characters; contains 197 characters Open
Open
<p><strong>TOTP</strong> abbreviates Time-based One-time Password Algorithm. TOTP Algorithms generate passwords from a given secret that are only valid over a very specific time period.</p>
- Exclude checks
Line exceeds 120 characters; contains 150 characters Open
Open
<p><code>$Variance</code> is an integer indicating the adjustment of codes with a 30 second value. Defaults to 2 either side, or 1 minute.</p>
- Exclude checks
Line exceeds 120 characters; contains 175 characters Open
Open
<p><strong>HOTP</strong> is HMAC-based one-time password algorithm. HOTP Algorithms generate passwords from a given secret that do not expose the secret over time.</p>
- Exclude checks
Line exceeds 120 characters; contains 123 characters Open
Open
<p>All parameters should be strings, with the optional issuer defaulting to the configured value if not passed.</p>
- Exclude checks
Line exceeds 120 characters; contains 131 characters Open
Open
<p><code>$Secret</code> is the first result from <code>Authenticatron_Check</code>, that you securely stored for later.</p>
- Exclude checks
Line exceeds 120 characters; contains 155 characters Open
Open
<p>Returns a <code>$Length</code> long string with 32bit only Characters, or <code>false</code> on failure (usually due to a lack of security).</p>
- Exclude checks
Line exceeds 120 characters; contains 129 characters Open
Open
echo '<p><img src="https://chart.googleapis.com/chart?chs=200x200&chld=M|0&cht=qr&chl='.urlencode($URL).'"></p>';
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
if ( function_exists('openssl_random_pseudo_bytes') ) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
if ( $MCrypt ) {
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
Open
} else if ( $OpenSSL ) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
Open
if ( $Strong ) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
if ( function_exists('mcrypt_create_iv') ) {
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
Open
if ( !extension_loaded('gd') || !function_exists('gd_info') ) {
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
Open
if ( isset($_GET['googlechart']) ) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
} else if ( $OpenSSL ) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
if (
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
} else {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
if (
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
Open
} else {
- Exclude checks