function echoStyle() { echo "<style type='text/css'>"; echo "h1 {color:red; text-align:center;}"; echo "</style>"; echoJavaScript(); }
<?php /** * include php classes, css, js * * @author Brody */ error_reporting(E_ALL); ini_set('display_errors', '1'); getIncludes(); //dont echo if an ajax call if (!isset($_POST['AJAX'])) { echoJavaScript(); echoCSS(); displayHeader(); } //php includes function getIncludes() { include_once "php/database.class.php"; include_once "php/authentication.class.php"; include_once "php/appliance.class.php"; include_once "php/lightbulb.class.php"; include_once "php/lock.class.php"; include_once "php/user.class.php"; include_once "php/lights.class.php"; //test class include_once "php/navigation_menu.class.php"; include_once "php/thermostat.class.php"; include_once "php/lightGroup.class.php"; }