コード例 #1
0
function showAdminPane($vars)
{
    if ($vars['pane'] == "adminhome") {
        display_admin_home_text();
    } else {
        $pane = "includes/adminpanes/pane_" . stripspaces_andlower($vars['pane']) . ".php";
        include_once $pane;
    }
}
コード例 #2
0
		<?php 
        }
        $content = ob_get_clean();
    }
    switch ($reporttype) {
        case "html":
        case "csv":
            file_put_contents($cachefilename, $content);
            break;
    }
    file_put_contents($cachefilename . ".config", time());
    mysql_close($con);
}
$content = file_get_contents($cachefilename);
$date = date("d-m-Y");
$outfilename = strtolower($site_title_text) . "_report_" . stripspaces_andlower($reports[$report]) . "_{$date}";
switch ($reporttype) {
    case "html":
        if ($directout == "Yes") {
            header('Content-Type: text/html');
            header('Content-Length: ' . strlen($content));
            header('Content-Disposition: attachment; filename="' . $outfilename . '.html"');
        }
        print $content;
        break;
    case "csv":
        header('Content-Type: text/csv');
        header('Content-Length: ' . strlen($content));
        header('Content-Disposition: attachment; filename="' . $outfilename . '.csv"');
        print $content;
        break;
コード例 #3
0
    }
}
?>
];
var adminpanes = [<?php 
for ($i = 0; $i < count($adminpanes); $i++) {
    print "'" . $adminpanes[$i] . "'";
    if ($i != count($adminpanes) - 1) {
        print ", ";
    }
}
?>
];
var reports = [<?php 
for ($i = 0; $i < count($reports); $i++) {
    print "'" . stripspaces_andlower($reports[$i]) . "'";
    if ($i != count($reports) - 1) {
        print ", ";
    }
}
?>
];
var session_timer_length = <?php 
print $session_time * 60;
?>
;
//var queue_polling_timeout = <?php 
print $queue_polling_timeout;
?>
;
コード例 #4
0
function add_meta($pagetitle = false)
{
    require "includes/config.php";
    ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr" >
<head>
  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Accept-Encoding" content="gzip, deflate" />
  <meta name="keywords" content="booking,activity,week,events,<?php 
    print $site_title_text;
    ?>
" />
  <meta name="description" content="A booking system for activity week events." />
  <meta name="generator" content="<?php 
    print $site_title_text;
    ?>
" />
<title>
<?php 
    print $site_title_text;
    if ($pagetitle != "") {
        print " - " . $pagetitle;
    }
    ?>
</title>
<link rel="icon" href="./images/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="./images/favicon.ico" type="image/x-icon" />
<script type="text/javascript" src="js/config.js.php"></script>
<?php 
    if ($_SERVER["HTTP_HOST"] == "localhost") {
        ?>
	<link href="css/<?php 
        print stripspaces_andlower($site_title_text);
        ?>
.css" rel="stylesheet" type="text/css" />
	<link href="css/jquery-ui-1.8.17.custom.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="js/json2.js"></script>
	<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="js/jquery-ui-1.8.17.custom.min.js"></script>
	<script type="text/javascript" src="js/<?php 
        print stripspaces_andlower($site_title_text);
        ?>
.js"></script>
	<script type="text/javascript" src="js/admin.js"></script> 
<?php 
    } else {
        ?>
	<link href="min/g=awsome_css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="min/g=awsome_js"></script>
<?php 
    }
    if ($pagetitle == "Browse") {
        ?>
<script type="text/javascript">
$(document).ready(function(){
	$( "#day_tabs" ).tabs();
});
</script>
<?php 
    }
    ?>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-19314151-12']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>
<body onload="checkJavaScriptValidity();">
<?php 
}