protected function getHeader() {
        return  "/**\n".
                " *   @copyright Copyright (c) 2008-2009 Quality Unit s.r.o.\n".
                " *   @author Quality Unit\n".
                " *   @package PapApi\n".
                " *   @since Version 1.0.0\n".
                " *   \n".
                " *   Licensed under the Quality Unit, s.r.o. Dual License Agreement,\n".
                " *   Version 1.0 (the \"License\"); you may not use this file except in compliance\n".
                " *   with the License. You may obtain a copy of the License at\n".
                " *   http://www.qualityunit.com/licenses/gpf\n".
                " *   Generated on: " . Gpf_Common_DateUtils::getDateTime(time()) . "\n" .
                " *   PAP version: " . Pap_Application::getInstance()->getVersion() . ", GPF version: " . Gpf::GPF_VERSION . "\n" .
                " *   \n".
                " */\n\n".
                "@ini_set('session.gc_maxlifetime', 28800);\n".
                "@ini_set('session.cookie_path', '/');\n".
                "@ini_set('session.use_cookies', true);\n".
                "@ini_set('magic_quotes_runtime', false);\n".
                "@ini_set('session.use_trans_sid', false);\n".
                "@ini_set('zend.ze1_compatibility_mode', false);\n";
	}
Esempio n. 2
0
<?php

/**
*   @copyright Copyright (c) 2010 Quality Unit s.r.o.
*   @author Juraj Simon
*   @since Version 1.0.0
*   $Id: importLanguage.php 13163 2007-08-07 11:15:49Z aharsani $
*
*   Licensed under the Quality Unit, s.r.o. Standard End User License Agreement,
*   Version 1.0 (the "License"); you may not use this file except in compliance
*   with the License. You may obtain a copy of the License at
*   http://www.qualityunit.com/licenses/license
*
*/
require_once '../scripts/bootstrap.php';
$string = <<<XML
<versionInfo>
    <applications>
        <pap>
        </pap>
    </applications>
</versionInfo>
XML;
$xml = new SimpleXMLElement($string);
$xml->applications->pap->addChild('versionNumber', Pap_Application::getInstance()->getVersion());
echo $xml->asXML();