> 16) & 0xFF; $g = ($rgb >> 8) & 0xFF; $b = $rgb & 0xFF; $lum = ($r+$r+$b+$g+$g+$g)/6; $total_lum += $lum; $sample_no++; } } $avg_lum = $total_lum / $sample_no; file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/cache/banner.mtd", ($avg_lum / 255) * 100); return ($avg_lum / 255) * 100; } } function asciiComp($a, $b) { $at = iconv('UTF-8', 'ASCII//TRANSLIT', $a); $bt = iconv('UTF-8', 'ASCII//TRANSLIT', $b); return strcmp($at, $bt); } ?> list; foreach ($widgets as $widget): ?> class) && is_string($data->class)) { require $_SERVER['DOCUMENT_ROOT'] . "/widgets/" . $widget . "/source.php"; } ?> ") ?> location.href = '/';"); } ?> '); echo(''); echo(''); echo(''); } else { echo(''); } ?> <?php if (isset($MPCMSRendererPageMarkup)) { echo($MPCMSRendererPageMarkupDN . " - " . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/sitename")); } else { echo(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/" . $pagename . "/pagename") . " - " . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/sitename")); } ?> \nvar pushbar = new Pushbar({\nblur:true,\noverlay:true,\n});\n"); rlgps("Banner generation"); if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/resources/upload/banner.jpg")) { $banner = "/resources/upload/banner.jpg"; if (getAvgLuminance($_SERVER['DOCUMENT_ROOT'] . "/resources/upload/banner.jpg") > 50) { $blackBannerText = true; } else { $blackBannerText = false; } } else { $banner = "/resources/image/default.jpg"; if (getAvgLuminance($_SERVER['DOCUMENT_ROOT'] . "/resources/image/default.jpg") > 50) { $blackBannerText = true; } else { $blackBannerText = false; } } rlgps("Branding"); ?>
Neutron Neutron

hiddenPages)) { echo("" . file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/" . $page . "/pagename") . ""); } } } } } if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/galery/enabled")) {echo("" . $lang["viewer"]["gallery"] . "");} ?>
]*>.*?<\/h[1-6]>#',$html_string,$results); $toc = implode("\n",$results[0]); $toc = preg_replace('#

#','
  • ',$toc); $toc = preg_replace('#<\/h2>#','
  • ',$toc); $toc = preg_replace('#

    #','
  • ',$toc); $toc = preg_replace('#<\/h3>#','
  • ',$toc); $toc = preg_replace('#

    #','
  • ',$toc); $toc = preg_replace('#<\/h4>#','
  • ',$toc); $toc = preg_replace('#

    #','
  • ',$toc); $toc = preg_replace('#<\/h5>#','
  • ',$toc); $toc = preg_replace('#
    #','
  • ',$toc); $toc = preg_replace('#<\/h6>#','
  • ',$toc); $toc = '

    ' . $lang["viewer"]["toc"] . '

      '.$toc.'

    '; if (false) { echo($toc); } } ?>