Esempio n. 1
0
		// check to see if core update is needed
		jQuery(document).ready(function() { 
			<?php 
    $data = get_api_details();
    if ($data) {
        $apikey = json_decode($data);
        if (isset($apikey->status)) {
            $verstatus = $apikey->status;
            ?>
				var verstatus = <?php 
            echo $verstatus;
            ?>
;
				if(verstatus != 1) {
					<?php 
            if (isBeta()) {
                ?>
 $('a.support').parent('li').append('<span class="info">i</span>');
					<?php 
            } else {
                ?>
 $('a.support').parent('li').append('<span class="warning">!</span>'); <?php 
            }
            ?>
					$('a.support').attr('href', 'health-check.php');
				}
			<?php 
        }
    }
    ?>
		});
Esempio n. 2
0
" ><?php 
i18n('TAB_SUPPORT');
?>
</a></li>

	<?php 
// nav status labels
if (isDebug()) {
    echo '<li class="rightnav"><a class="label label-error label_4_80" href="' . $debugInfoUrl . '" target="_blank" title="' . i18n_r('DEBUG_MODE') . ' - ' . i18n_r('ON') . '"><span><span class="fa fa-fw fa-wrench"></span></span></a></li>';
}
if (allowVerCheck()) {
    $verstatus = getVerCheck()->status;
    if ($verstatus == 0) {
        // update available newer than current
        echo '<li class="rightnav"><a class="label label-gold" href="health-check.php" title="' . i18n_r('UPG_NEEDED') . '"><span class="fa fa-fw fa-lg fa-cloud-download"></span></a></li>';
    }
}
if (isBeta() || isAlpha()) {
    echo '<li class="rightnav"><a class="label label-ghost" href="health-check.php" title="' . (isAlpha() ? i18n_r('ALPHA') : i18n_r('BETA')) . ' - ' . i18n_r('WEB_HEALTH_CHECK') . '"><span><span class="fa fa-fw fa-flask"></span> ' . (isAlpha() ? i18n_r('ALPHA') : i18n_r('BETA')) . '</span></a></li>';
}
?>

</ul>

</div>
</div>

<div class="wrapper">

<?php 
include 'template/error_checking.php';
Esempio n. 3
0
function writeToWiki($filename, $contents)
{
    global $LOGO;
    $write = $LOGO;
    if (preg_match("/⚠️/", $contents)) {
        $write .= "# ⚠️ Function {$filename}\r\n\r\n";
    } elseif (preg_match("/🚧/", $contents)) {
        $write .= "# 🚧 Function {$filename}\r\n\r\n";
    } elseif (preg_match("/📝/", $contents)) {
        $write .= "# 📝 Function {$filename}\r\n\r\n";
    } elseif (preg_match("/💡/", $contents)) {
        $write .= "# 💡 Function {$filename}\r\n\r\n";
    } else {
        $write .= "# Function {$filename}\r\n\r\n";
    }
    $write .= $contents;
    // Update wiki! (Only if finial (final = one version behind.))
    if (!isBeta()) {
        file_put_contents("../_.js.wiki/functions/function_{$filename}.md", $write);
    } else {
        file_put_contents("../_.js.wiki/functions/flbeta_function_{$filename}.md", $write);
    }
}