fwrite($file, "\t<galleryData>\n"); fwrite($file, "\t\t<name>" . $_SESSION['step_gall_5']['gall_name_data'] . "</name>\n"); fwrite($file, "\t\t<person>\n"); fwrite($file, "\t\t\t<fullName>" . $_SESSION['step_gall_5']['user_name_data'] . "</fullName>\n"); fwrite($file, "\t\t</person>\n"); fwrite($file, "\t\t<collections>\n"); fwrite($file, "\t\t\t<collection>\n"); fwrite($file, "\t\t\t\t<title>" . correctOutput($_SESSION['step_gall_5']['gall_name_data']) . "</title>\n"); fwrite($file, "\t\t\t\t<rowPhotos>" . correctOutput($_SESSION['step_gall_5']['gall_photo_count_row'][$pom]) . "</rowPhotos>\n"); fwrite($file, "\t\t\t\t<date>" . date("d. m. Y") . "</date>\n"); fwrite($file, "\t\t\t\t<photos>\n"); $pom = 0; while (!empty($_SESSION['step_gall_5']['gall_photo_alt_data'][$pom])) { if ($_SESSION['step_gall_5']['gall_photo_type_data'] == "a") { fwrite($file, "\t\t\t\t\t<photo>\n"); fwrite($file, "\t\t\t\t\t\t<url>" . correctOutput(addHttp($_SESSION['step_gall_5']['gall_photo_src_data'][$pom])) . "</url>\n"); fwrite($file, "\t\t\t\t\t\t<alt>" . correctOutput($_SESSION['step_gall_5']['gall_photo_alt_data'][$pom]) . "</alt>\n"); fwrite($file, "\t\t\t\t\t</photo>\n"); } else { } $pom++; } fwrite($file, "\t\t\t\t</photos>\n"); fwrite($file, "\t\t\t</collection>\n"); fwrite($file, "\t\t</collections>\n"); fwrite($file, "\t</galleryData>\n"); fwrite($file, "</presentation>\n"); fclose($file); chmod($fname, 0777); // ***************** KOPIROVANI SOUBORU ************************************ // ikonky informujici o validite stranky
fwrite($file, "\t\t\t\t</otherSkills>\n"); } fwrite($file, "\t\t\t</personalSkills>\n"); } if (!empty($_SESSION['step_pp_14']['other_cv_data'])) { fwrite($file, "\t\t\t<otherInformation>" . correctOutput($_SESSION['step_pp_14']['other_cv_data']) . "</otherInformation>\n"); } fwrite($file, "\t\t</cv>\n"); } // ******** Aplikace ************ if (isset($_SESSION['step_pp_5']['features'])) { fwrite($file, "\t\t<applications>\n"); if (!empty($_SESSION['step_pp_17']['favphoto_alt_data'])) { fwrite($file, "\t\t\t<photoGATE>\n"); if ($_SESSION['step_pp_5']['favphoto_file'] == "url") { fwrite($file, "\t\t\t\t<url>" . addHttp($_SESSION['step_pp_17']['favphoto_src_data']) . "</url>\n"); fwrite($file, "\t\t\t\t<alt>" . $_SESSION['step_pp_17']['favphoto_alt_data'] . "</alt>\n"); } else { fwrite($file, "\t\t\t\t<url>img/" . correctOutput($_SESSION['step_pp_17']['photo_file_upload']['favphoto_copy_data']['name']) . "</url>\n"); fwrite($file, "\t\t\t\t<alt>" . correctOutput($_SESSION['step_pp_17']['favphoto_alt_data']) . "</alt>\n"); if (is_dir("./tmp/" . $_SESSION['step_all_2']['user_name'] . "/" . $_SESSION['step_all_4']['presentation_name'])) { recurse_copy("./tmp/" . $_SESSION['step_all_2']['user_name'] . "/" . $_SESSION['step_all_4']['presentation_name'], $dirname . "/img"); recursive_remove_directory("./tmp/" . correctOutput($_SESSION['step_all_2']['user_name'])); } } fwrite($file, "\t\t\t</photoGATE>\n"); } if (isset($_SESSION['step_pp_5']['features_discus']) || $_SESSION['step_pp_5']["featuresIsAllFalse"]) { fwrite($file, "\t\t\t<guestbook>\n"); fwrite($file, "\t\t\t\t<type>classic</type>\n"); fwrite($file, "\t\t\t</guestbook>\n");