Example #1
0
    </script>

	<?php 
// load scripts after globals set
get_scripts_backend();
?>
    <script type="text/javascript">
		jQuery(document).ready(function () {
			// disable page editing during safemode
	       	$('body#edit.safemode :input').prop("disabled", true);
	    });
    </script>

    <?php 
# Plugin hook to allow insertion of stuff into the header
if (!isAuthPage()) {
    exec_action('header');
}
// @hook header backend before html head closes
?>

<noscript>
	<style>
		.tab{ display:block; clear:both;}
		.tab fieldset legend{ display: block; }
		#cm_themeselect, #cm_themeselect_label { display:none;}
		#theme_filemanager ul ul {
			display: block;
		}
	</style>
</noscript>
Example #2
0
/**
 * check if version checking is allowed via GSNOVERCHECK and not an auth page
 * @since 3.4
 * @return bool true is version check is allowed
 */
function allowVerCheck()
{
    return !isAuthPage() && !getDef('GSNOVERCHECK');
}
Example #3
0
/**
 * output a notification
 * @param  str  $msg     the message text
 * @param  string  $type    type of message success, error, info, warn
 * @param  boolean $persist trueto make message not expire and dissapear
 * @param  boolean $force   force the message to show on auth pages
 */
function doNotify($msg, $type = '', $persist = false, $force = false)
{
    // do not output notifications on auth pages to prevent nonce and data leakage, unless force is true
    if (isAuthPage() && !$force) {
        return;
    }
    global $dbn;
    if ($dbn) {
        $persist = true;
    }
    debugLog('notify: ' . $type . " - " . cl($msg));
    echo '<div class="updated notify ' . ($type == '' ? '' : 'notify_' . $type . ' ') . (!$persist ? 'remove' : 'persist') . '"><p>' . $msg . '</p></div>';
}