Ejemplo n.º 1
0
$xml->load($fname);
// naètení stylu XSLT dle vybraneho jazyka
$xsl = new DomDocument();
if ('czech' == $_SESSION['step_all_1']['language']) {
    $xsl->load("./xml/xslt/blog_cz.xsl");
} else {
    $xsl->load("./xml/xslt/blog_en.xsl");
}
// vytvoøení procesoru XSLT
$proc = new xsltprocessor();
$proc->registerPhpFunctions();
$proc->importStylesheet($xsl);
// provedení transformace a vypsání výsledku
$newdom = $proc->transformToDoc($xml);
$newdom->save($dirname . "/" . $_SESSION['step_all_4']['presentation_name'] . ".php");
deleteXmlHeading($dirname . "/" . $_SESSION['step_all_4']['presentation_name'] . ".php");
chmod($dirname . "/" . $_SESSION['step_all_4']['presentation_name'] . ".php", 0744);
// ***************** ZJISTI URL VYSLEDNE STRANKY ****************************************************
$url = getUrl($_SESSION['step_all_2']['user_name'], $_SESSION['step_all_4']['presentation_name'], $fname);
$_SESSION['step_blog_8']['page_url'] = $url;
?>

<form action="<?php 
echo $_SERVER['REQUEST_URI'];
?>
" method="post">
    
    <ul class="clear">
        <li>
            <label>
                <?php 
Ejemplo n.º 2
0
if (isset($_SESSION['step_pp_5']['cv'])) {
    // naètení stylu XSLT
    $xsl = new DomDocument();
    if ('czech' == $_SESSION['step_all_1']['language']) {
        $xsl->load("./xml/xslt/cv_cz.xsl");
    } else {
        $xsl->load("./xml/xslt/cv_en.xsl");
    }
    // vytvoøení procesoru XSLT
    $proc = new xsltprocessor();
    $proc->registerPhpFunctions();
    $proc->importStylesheet($xsl);
    // provedení transformace a vypsání výsledku
    $newdom = $proc->transformToDoc($xml);
    $newdom->save($dirname . "/page_files/cv.php");
    deleteXmlHeading($dirname . "/page_files/cv.php");
    chmod($dirname . "/page_files/cv.php", 0744);
    // ****************** Kopirovani souboru pro zivotopis **********************************************
    copy("./themes/cv_euro/cv.css", $dirname . "/" . $_SESSION['step_all_4']['presentation_name'] . "_cv.css");
    copy("./themes/cv_euro/flag_eu.gif", $dirname . "/img/flag_eu.gif");
    chmod($dirname . "/" . $_SESSION['step_all_4']['presentation_name'] . "_cv.css", 0777);
    chmod($dirname . "/img/flag_eu.gif", 0777);
}
// ***************** ZJISTI URL VYSLEDNE STRANKY ****************************************************
$url = getUrl($_SESSION['step_all_2']['user_name'], $_SESSION['step_all_4']['presentation_name'], $fname);
$_SESSION['step_pp_20']['page_url'] = $url;
// zjisteni, ktere emaily jsou jiz nastaveny - pro Javascript
if (!empty($_SESSION['step_pp_8']['email_data'])) {
    $email_pers = true;
} else {
    $email_pers = false;