21 include __DIR__ .
'/header.php';
30 $bg =
$xoops->getModuleConfig(
'qrcode_bgcolor',
'qrcode');
33 $fg =
$xoops->getModuleConfig(
'qrcode_fgcolor',
'qrcode');
42 } elseif ((
$bg-
$fg) < 100) {
63 $brightness = ($rgb[
'r']*0.2126 + $rgb[
'g']*0.7152 + $rgb[
'b']*0.0722);
64 return $brightness + 0.00001;
76 $color = preg_replace(
'/[^a-fA-F0-9]+/',
'', $color);
77 $color = substr(
'000000'.$color, -6);
79 'r' => hexdec(substr($color, 0, 2)),
80 'g' => hexdec(substr($color, 2, 2)),
81 'b' => hexdec(substr($color, 4, 2)),
const _MI_QRCODE_CONTRAST_OK
const _MI_QRCODE_CONTRAST_ERROR
const _MI_QRCODE_CONTRAST_INVERSE
if(file_exists($mainfile)) elseif(file_exists(__DIR__. '/install/index.php')) $xoops