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; }
function SBReadFile($file) { return FileSystem::read_file($file); }
public function InitSkin() { global $Core; $file = str_replace('{objtype}', $this->objtype, SB_SKIN_FILE_PATH); $this->skin = FileSystem::read_file($file); // $Core->OutputBuffer($file); }
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; }
<?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)); } }
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); } }
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; }