0;*/ $_t4StyleInternal = $internal; if($_t4StyleInPreview){ $_t4StyleBaseServer = 'https://t4.gla.ac.uk'; echo ''; } else { $_t4StyleBaseServer = 'https://www.gla.ac.uk'; } if($_SERVER['SERVER_NAME'] == 'udcf.gla.ac.uk') { $_t4StyleBaseServer = 'https://udcf.gla.ac.uk'; } elseif($_SERVER['SERVER_NAME'] == 'www2.gla.ac.uk') { $_t4StyleBaseServer = 'https://www2.gla.ac.uk'; } elseif(($_SERVER['SERVER_NAME'] == 'www.gla.ac.uk')&&($_SERVER['REQUEST_SCHEME'] == 'https')) { $_t4StyleBaseServer = 'https://www.gla.ac.uk'; } elseif($_SERVER['SERVER_NAME'] == 'localhost'){ $_t4StyleBaseServer = 'http://localhost'; } ?> edit in t4', $internal); ?>

Disciplinary - Frequently Asked Questions

array( 'method'=>"GET", 'header'=>"Authorization: rest_api_key=".$kbapikey."\r\n" . "Cookie: SID=\r\n" ) ); $context = stream_context_create($opts); $category = rawurlencode(trim('HR')); $subcategory = rawurlencode(trim('Policy/Theme')); $subsubcategory = rawurlencode(trim('Discipline')); //%20and%20AA_SubCategory2%20eq%20%27'.$subsubcategory.'%27'; $subsubcatfilter = $subsubcategory !== '' ? '%20and%20AA_SubCategory2%20eq%20%27'.$subsubcategory.'%27' : ''; echo ''; $feed = 'https://glasgow.saasiteu.com//api/odata/businessobject/frs_knowledges?$filter=Category%20eq%20%27'.$category.'%27%20and%20Status%20eq%20%27Published%27%20and%20SubCategory%20eq%20%27'.$subcategory.'%27'.$subsubcatfilter.'%20and%20%28Collection%20Ne%20%27Analysts%27%20and%20Collection%20Ne%20%27Internal%27%29'; echo ''; //check if cache directory exists. If not make it $cacheDir = '/export/org/includes/services/webteam/CachedFiles/'; if ($_SERVER['SERVER_NAME'] == 't4.gla.ac.uk' || !$_SERVER['SERVER_NAME']) { $includesBaseDir = '/www3/org/includes/'; $cacheDir = '/www3/org/includes/services/webteam/CachedFiles/'; } if ($_SERVER['SERVER_ADDR'] == '130.209.16.143') { $includesBaseDir = '/isilonwww/org/includes/'; $cacheDir = '/isilonwww/org/includes/services/webteam/CachedFiles/'; } if (!file_exists($cacheDir.'ivantikb')) { mkdir($cacheDir.'ivantikb', 0777, true); } $cacheFile = $cacheDir.'ivantikb/'.md5($feed).'.cac'; $response = file_get_contents($feed, false, $context); if ($response === false ) { if (file_exists($cacheFile)){ $feedContent = file_get_contents($cacheFile); $contentarr = json_decode($feedContent); } } else{ if (file_exists($cacheFile) && ((time() - filemtime($cacheFile)) < 600)) { $feedContent = file_get_contents($cacheFile); } else { $feedContent = $response; if ($response) { $feedcache = fopen($cacheFile, "w"); fwrite($feedcache, $response); fclose($feedcache); } } $contentarr = json_decode($feedContent); } $posts = false; if (is_array($contentarr->value) || is_object($contentarr->value)){ foreach($contentarr->value as $item){ echo '
'; echo '

'.$item->AlternativeTitle.'

'; echo '

Last updated: '.date("D M j G:i", strtotime($item->LastModDateTime)).'

'; echo '
'.$item->Details.'
'; echo '
'; $posts = true; } } if(!$posts){ echo '
'; echo '
'; echo '
'; } ?>
array("location" => "/3t4/css/dev.css?_=", "timestamp" => $isportal ? "" : filemtime('/info/www/3t4/css/dev.css')), "livecss"=>array("location" => "/3t4/css/main.css?_=", "timestamp" => $isportal ? "" : filemtime('/info/www/3t4/css/main.css')), "devjs"=>array("location" => "/3t4/js/main.js?_=", "timestamp" => $isportal ? "" : filemtime('/info/www/3t4/js/main.js')), "livejs"=>array("location" => "/3t4/js/main.min.js?_=", "timestamp" => $isportal ? "" : filemtime('/info/www/3t4/js/main.min.js')), ); switch(isset($_COOKIE['gu-testing']) && $_COOKIE['gu-testing'] == "true"){ case true: ?>