'g_ex_ext_debug', 'value' => false ), array('key' => 'g_ex_compressed_lib', 'value' => true ), array('key' => 'g_ex_viewport', 'value' => false ) ); function getSampleHeader() { return getSampleIncFile("header.inc.html"); }; function getSampleFooter() { return getSampleIncFile("footer.inc.html"); }; function getSampleFile() { return getSampleIncFile("sample.inc.html"); }; function getSampleIncFile($pstrIncFile) { $strSampleDir = dirname($_SERVER['SCRIPT_FILENAME']); $strFile = str_replace('\\','/',realpath($strSampleDir."/".$pstrIncFile)); if (!file_exists($strFile)) { $strFile = str_replace('\\','/',dirname(__FILE__)."/".$pstrIncFile); } return $strFile; }; ?>