示例#1
0
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
copy("./icons/xhtml.png", $dirname . "/img/xhtml.png");
示例#2
0
fwrite($file, "\t\t<css>" . $_SESSION['step_blog_7']['css_choice'] . ".css</css>\n");
fwrite($file, "\t\t<xsl>blog.xslt</xsl>\n");
fwrite($file, "\t</style>\n\n");
fwrite($file, "\t<blogData>\n");
fwrite($file, "\t\t<title>" . $_SESSION['step_blog_5']['blog_name_data'] . "</title>\n");
fwrite($file, "\t\t<person>\n");
fwrite($file, "\t\t\t<fullName>" . $_SESSION['step_blog_5']['user_name_data'] . "</fullName>\n");
fwrite($file, "\t\t</person>\n");
fwrite($file, "\t\t<articles>\n");
$pom = 0;
while (!empty($_SESSION['step_blog_6']['article_text_data'][$pom])) {
    fwrite($file, "\t\t\t<article>\n");
    fwrite($file, "\t\t\t\t\t\t<title>" . correctOutput($_SESSION['step_blog_6']['article_name_data'][$pom]) . "</title>\n");
    fwrite($file, "\t\t\t\t\t\t<author>" . correctOutput($_SESSION['step_blog_6']['article_author_data'][$pom]) . "</author>\n");
    fwrite($file, "\t\t\t\t\t\t<date>" . date("d. m. Y") . "</date>\n");
    fwrite($file, "\t\t\t\t\t\t<text>" . correctOutput($_SESSION['step_blog_6']['article_text_data'][$pom]) . "</text>\n");
    fwrite($file, "\t\t\t</article>\n");
    $pom = $pom + 1;
}
fwrite($file, "\t\t</articles>\n");
fwrite($file, "\t</blogData>\n");
fwrite($file, "</presentation>\n");
fclose($file);
chmod($fname, 0777);
// ***************** Funkce ************************************************
// ***************** KOPIROVANI SOUBORU ************************************
// ikonky informujici o validite stranky
copy("./icons/xhtml.png", $dirname . "/img/xhtml.png");
chmod($dirname . "/img/xhtml.png", 0777);
copy("./icons/css.png", $dirname . "/img/css.png");
chmod($dirname . "/img/css.png", 0777);
示例#3
0
             copy("./apps/gb_en/gb_data.txt", $dirname . "/page_files/gb_data.txt");
         }
     }
     chmod($dirname . "/page_files/gb.php", 0744);
     chmod($dirname . "/page_files/gb.css", 0777);
     chmod($dirname . "/page_files/gb.js", 0777);
     chmod($dirname . "/page_files/gb_add.php", 0777);
     chmod($dirname . "/page_files/gb_data.txt", 0777);
 }
 if (isset($_SESSION['step_pp_5']['features_quest']) || $_SESSION['step_pp_5']["featuresIsAllFalse"]) {
     fwrite($file, "\t\t\t<poll>\n");
     fwrite($file, "\t\t\t\t<question>" . correctOutput($_SESSION['step_pp_18']['features_quest_question']) . "</question>\n");
     fwrite($file, "\t\t\t\t<answers>\n");
     $pom = 0;
     while (!empty($_SESSION['step_pp_18']['features_quest_answer'][$pom])) {
         fwrite($file, "\t\t\t\t\t<answer>" . correctOutput($_SESSION['step_pp_18']['features_quest_answer'][$pom]) . "</answer>\n");
         $pom++;
     }
     fwrite($file, "\t\t\t\t</answers>\n");
     fwrite($file, "\t\t\t</poll>\n");
 }
 if (isset($_SESSION['step_pp_5']['features_calendar']) || $_SESSION['step_pp_5']["featuresIsAllFalse"]) {
     fwrite($file, "\t\t\t<application>\n");
     fwrite($file, "\t\t\t\t<name>calendar</name>\n");
     fwrite($file, "\t\t\t</application>\n");
 }
 if (isset($_SESSION['step_pp_5']['features_hour']) || $_SESSION['step_pp_5']["featuresIsAllFalse"]) {
     fwrite($file, "\t\t\t<application>\n");
     fwrite($file, "\t\t\t\t<name>hour</name>\n");
     if (isset($_SESSION['step_pp_18']['features_hour_que'])) {
         switch ($_SESSION['step_pp_18']['features_hour_que']) {