-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.DOMDocument.php
More file actions
33 lines (23 loc) · 824 Bytes
/
Copy pathindex.DOMDocument.php
File metadata and controls
33 lines (23 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
// If the client can accept gzipped content, do it
if( substr_count( $_SERVER[ 'HTTP_ACCEPT_ENCODING' ], 'gzip' ) ) { ob_start( "ob_gzhandler" ); } else { ob_start(); }
session_start();
require_once( "PHP.Classes/User.class.php" );
require_once( "PHP.Classes/Employee.class.php" );
require_once( "PHP.Classes/Student.class.php" );
require_once( "PHP.Classes/Subject.class.php" );
require_once( "PHP.Classes/Stream.class.php" );
require_once( "PHP.Classes/Test.class.php" );
{ // Data
$genders = Array( "male", "female" );
$testTypes = Array( "CAT", "exam" );
}
$doc = new DOMDocument();
$doc -> validateOnParse = true;
$doc -> loadHTML( file_get_contents( 'template.xhtml' ) );
/*
$mainColumn = $doc -> getElementById( "mainColumn" );
*/
header( 'Content-type: text/html' );
echo $doc -> saveHTML();
?>