本文整理汇总了PHP中FileSystem::read_file方法的典型用法代码示例。如果您正苦于以下问题:PHP FileSystem::read_file方法的具体用法?PHP FileSystem::read_file怎么用?PHP FileSystem::read_file使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FileSystem
的用法示例。
在下文中一共展示了FileSystem::read_file方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isLegacySkin
function isLegacySkin()
{
if (empty($this->is_legacy)) {
$skin_file = ACTIVE_SKIN_DIR . "skin.{$this->pageObj->pagetype}.html";
if (file_exists($skin_file)) {
$skin = FileSystem::read_file($skin_file);
} else {
return true;
}
if (strpos($skin, '</html>') === false && strpos($skin, '<html>') === false) {
return true;
}
return false;
}
return $this->is_legacy;
}
示例2: SBReadFile
function SBReadFile($file)
{
return FileSystem::read_file($file);
}
示例3: InitSkin
public function InitSkin()
{
global $Core;
$file = str_replace('{objtype}', $this->objtype, SB_SKIN_FILE_PATH);
$this->skin = FileSystem::read_file($file);
// $Core->OutputBuffer($file);
}
示例4: Show
function Show()
{
global $Core;
if ($this->button == 'editbundle' && $this->region_count == 0) {
echo FileSystem::read_file(BUNDLE_DISABLED);
return;
}
$style = NULL;
$tablestyle = NULL;
if (count($this->objs) > SB_MAX_LIST_ROWS && $this->button != 'add' && $this->button != 'edit' && $this->button != 'editstory') {
$style = ' style="height: 500px;" ';
$tablestyle = ' style="width: 455px;"';
}
$html = NULL;
if (!empty($Core->MSG) && trim($Core->MSG) != '...') {
$html = $Core->MSG . "\r\n";
}
$html .= '<form method="post" action="' . $this->redirect . '" style="margin-top: 15px;">' . "\r\n";
$html .= '<fieldset>' . "\r\n";
if (isset($this->include_th) && $this->include_th == 1) {
$html .= '<div id="imglist"' . $style . '>' . "\r\n";
}
$class = isset($this->include_th) && $this->include_th == 1 ? 'linkstable' : 'editortable';
$html .= '<table class="' . $class . '" cellpadding="0" cellspacing="0"' . $tablestyle . '>' . "\r\n";
$html .= isset($this->include_th) && $this->include_th == 1 ? $this->BuildHeadings() : '';
$html .= $this->html;
$html .= '</table>' . "\r\n";
if (isset($this->include_th) && $this->include_th == 1) {
$html .= '</div>' . "\r\n";
}
$html .= $this->BuildButtons();
$html .= '</fieldset>' . "\r\n";
$html .= '</form>' . "\r\n";
echo $html;
}
示例5: defined
<?php
defined('SKYBLUE') or die('Unauthorized file request');
$Filter = new Filter();
foreach ($data as $item) {
if ($Filter->get($_GET, 'pid', DEFAULT_PAGE) == $item->id) {
echo "<h1>{$item->title}</h1>";
echo $Core->trigger('OnAfterFragments', FileSystem::read_file(SB_STORY_DIR . $item->story));
}
}
示例6: InitSkin
function InitSkin($type)
{
global $Core;
$file = 'managers/media/html/form.media.' . $type . '.html';
if (!file_exists($file)) {
$Core->FileNotFound($file, __LINE__, __FILE__ . '::InitSkin()');
} else {
$this->skin = FileSystem::read_file($file);
}
}
示例7: GetRegions
function GetRegions()
{
global $Core;
$regions = array();
$skins = array();
$path = ACTIVE_SKIN_DIR;
$skins = $Core->ListFilesOptionalRecurse($path, 0);
if (count($skins)) {
for ($i = 0; $i < count($skins); $i++) {
$these = $Core->GetPageRegions(FileSystem::read_file($skins[$i]));
for ($j = 0; $j < count($these); $j++) {
if (in_array($these[$j], $regions)) {
continue;
}
array_push($regions, $these[$j]);
}
}
}
return $regions;
}