Ejemplo n.º 1
0
        } else {
            echo "<!-- fora do prazo {$time} -->";
            $GRAVA = true;
        }
    } else {
        /*
        	tratar quando não existe espaço:
        	apagar
        	gravar novo
        	MAX_SIZE
        */
    }
}
if (!$pageContent) {
    // Generate wxis url and set xml url
    $xml = $scielo->GenerateXmlUrl();
    $scielo->SetXMLUrl($xml);
    // Generate xsl url and set xsl url
    $xsl = $scielo->GenerateXslUrl();
    $scielo->SetXSLUrl($xsl);
    //$scielo->GetLoginStatus();
    $pageContent = $scielo->getPage();
    $pageContent .= "\n" . '<!-- REQUEST URI: ' . $REQUEST_URI . '-->';
    $pageContent .= "\n" . "<!--SERVER:" . $SERVER_ADDR . "-->";
    if ($GRAVA && $filenamePage) {
        if (!file_exists($filenamePage)) {
            include "mkdir.php";
            $path = substr($filenamePage, 0, strrpos($filenamePage, '/'));
            createDirStructure($path, $s_root, $s_err_msg, $i_err_code, 0777);
        }
        $fp = fopen($filenamePage, "rw");
Ejemplo n.º 2
0
 function GenerateXmlUrl()
 {
     $table = $this->_CallSqlQueryScript();
     $xml = Scielo::GenerateXmlUrl();
     $xml .= "&table={$table}";
     return $xml;
 }