//Dziela1and2InTranslation/poem-being-worked-on/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 "
\n"; echo "\n"; echo "\n"; echo ""; build_title_hash_dziela2("../Works-index-by-page"); build_details_table_working($files); echo "
\n"; echo "\n"; echo "\n"; echo ""; echo ""; } else { build_poem_html($poem); echo ""; } ?>