//Dziela1and2InTranslation/index.php //path to php files $MYPHP = "../../php_functions/"; //includes $include_handle = opendir($MYPHP); while(false !== ($file = readdir($include_handle))) { if (!(preg_match("/^\.$|^\.\.$/",$file)) && (preg_match("/php$/",$file))) { if (!is_dir($file)) { include $MYPHP . $file; } } } $tail = dir_tail(); // extract the view and poem variables, if they exist, // from the cgi query string in the url in order to pass // to various places - the title, the menu chooser, the // opening paragraph. $view = get_view_from_url(); $poem = get_poem_from_url(); if(strcmp($poem,0)!=0) { echo "