\n"; foreach ( $sheets as $sheet ) { $extrasheets .= " \n"; } require 'htmlheader.php'; } // // This function outputs the HTML header along with adding a string // of text to the page title. This is for pages without side navigation. // function includeHTMLHeaderBasic($headertext = "", ...$sheets) { global $currentuser; if ($headertext != "") $fullpagetitle = htmlspecialchars($headertext); $extrasheets = " \n"; foreach ( $sheets as $sheet ) { $extrasheets .= " \n"; } require 'htmlheader-basic.php'; } // // This function outputs the HTML footer along with adding script tags // for any script files passed to the function. These files are assumed // to be in the js/ folder. // function includeHTMLFooter(...$scripts) { require 'htmlfooter.php'; foreach ( $scripts as $script ) { echo "\n"; } echo " \n"; echo " \n"; } // // This function outputs the HTML footer along with adding script tags // for any script files passed to the function. These files are assumed // to be in the js/ folder. This is for pages without side navigation. // function includeHTMLFooterBasic(...$scripts) { require 'htmlfooter-basic.php'; foreach ( $scripts as $script ) { echo "\n"; } echo " \n"; echo " \n"; } function isValidIPAddress($address) { $octets = explode(".", $address); if ( count($octets) != 4 ) return false; foreach ( $octets as $octet ) { if ( !is_numeric($octet) || ($octet < 0) || ($octet > 255) ) return false; } return true; }