当前位置: 首页>>代码示例>>PHP>>正文


PHP FileSystem::read_file方法代码示例

本文整理汇总了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;
 }
开发者ID:schulzp,项目名称:stamm_leo_website,代码行数:16,代码来源:skin.class.php

示例2: SBReadFile

 function SBReadFile($file)
 {
     return FileSystem::read_file($file);
 }
开发者ID:schulzp,项目名称:stamm_leo_website,代码行数:4,代码来源:core.php

示例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);
 }
开发者ID:schulzp,项目名称:stamm_leo_website,代码行数:7,代码来源:block.class.php

示例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;
 }
开发者ID:schulzp,项目名称:stamm_leo_website,代码行数:35,代码来源:bundle.class.php

示例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));
    }
}
开发者ID:schulzp,项目名称:stamm_leo_website,代码行数:10,代码来源:view.php

示例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);
     }
 }
开发者ID:schulzp,项目名称:stamm_leo_website,代码行数:10,代码来源:media.class.php

示例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;
 }
开发者ID:schulzp,项目名称:stamm_leo_website,代码行数:20,代码来源:page.class.php


注:本文中的FileSystem::read_file方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。