Computational Linguistics Colloquium
template_dir='../Smarty/templates/';
$tpl->compile_dir='../Smarty/templates_c/';
$tpl->cache_dir='../Smarty/cache/';
$tpl->config_dir='../Smarty/config/';
function is_readable_for_others($file) {
return ( (fileperms($file) & 0004) == 4 );
};
// import_request_variables("g");
// the above function deprecated
extract($_GET);
clearstatcache();
if ( empty($s) || ! is_readable_for_others("$s.content") ) {
$s = "index";
if ( ! is_readable_for_others("$s.content") ) $s = "placeholder";
};
$whoami = "$s.content";
if ( is_readable_for_others($whoami) ) { // is_readable only checks if the _owner_ of the file can read it
// The replacement assumes that the httpd user is not owner or group member
if ( $s != "index" && $s != "placeholder" ) {
include $whoami;
$tpl->display('talk-noemail.tpl');
} else {
include $whoami;
};
} else {
echo "There seems to be a problem with these pages.
Please send a mail to the address below.";
};
?>