0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
14.1-0
/
standard
/
htdocs
/
lib
/
core
/
Tiki
/
Profile
/
Transport
/
[
Home
]
File: File.php
<?php // (c) Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: File.php 55934 2015-07-27 14:31:56Z nkoth $ class Tiki_Profile_Transport_File implements Tiki_Profile_Transport_Interface { private $path; function __construct($path, $profileName) { $this->path = "$path/$profileName"; } function getPageContent($pageName) { $fullpath = $this->path . '/' . $pageName . '.wiki'; if (file_exists($fullpath)) { return file_get_contents($fullpath); } else { return ''; // assume empty if file not found to prevent unexpected errors } return null; } function getPageParsed($pageName) { $content = $this->getPageContent($pageName); if ($content) { return TikiLib::lib('parser')->parse_data($content); } else { return ''; // assume empty if file not found to prevent unexpected errors } } }
© 2017 -
ZeroByte.ID
.