function iAddPageIDForDocumentPath($oP, $iNewID) { global $goApp; $oF = new WYFile($this->oDocumentsFilePath()); $sFileContent = "\r\n" . $oP->sPath . "\t" . $iNewID; if (!$oF->bAppend($sFileContent)) { $sFileContent = $oF->sContent() . $sFileContent; $oF->setContent($sFileContent); if (!$oF->bWrite()) { $goApp->log("could not store new page iD " . $iNewID); $iNewID = 0; } } @$oF->chmod(0644); return $iNewID; }
//--> </script> </head> <?php // WebYep // (C) Objective Development Software GmbH // http://www.obdev.at $bPermOK = false; $oP = od_nil; $oF = od_nil; srand((double) microtime() * 1000000); $sFilename = "permission-test" . mt_rand(1000, 9999); $oP = od_clone($goApp->oDataPath); $oP->addComponent($sFilename); $oF = new WYFile($oP); $oF->setContent("write test"); $bPermOK = $oF->bWrite(); @$oF->bDelete(); ?> <body> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="pageTitle" align="left" valign="middle">WebYep System Infos</td> <td align="right" valign="top"><a href="http://www.obdev.at/webyep/" target="_blank"><img src="program/images/logo.gif" align="top" border="0" alt="WebYep WebSite"></a></td> </tr> </table> <hr size="1" noshade> <h2>Installed WebYep-Version</h2> <p><b>Version <?php echo "{$webyep_iMajorVersion}.{$webyep_iMinorVersion}.{$webyep_iSubVersion} {$webyep_sVersionPostfix}"; ?>
function save() { global $goApp; $oP =& $this->oDataFilePath(true, false); $oF = new WYFile($oP); $oF->setContent(serialize($this->dContent)); if (!$oF->bWrite()) { $goApp->log("could not write element data to " . $oP->sPath); $goApp->setDataAccessProblem(true); } @$oF->chmod(0644); }