$c = manage_spawn_template($this->settings['script']); return $c->GetText(); } function ItemScript() { $c = manage_spawn_template($this->settings['itemScript']); return $c->GetText(); } function FullScript() { $c = manage_spawn_template($this->settings['fullScript']); return $c->GetText(); } function GetRSSData($limit) { $res = array(); $arr = $this->data; $n = count($arr); $l = max(0, $n - $limit); if ($this->IsDated()) { for ($i = $n - 1; $i >= $l; $i--) { $it = $arr[$i]; $tmp = array('title' => $it['title'], 'link' => 'text/?uid=' . $it['uid'], 'pubdate' => $it['timestamp'], 'description' => fakecode($it['short'])); $res[] = $tmp; } } return $res; } } content_Register_CClass('CCPublication', 'Публикация'); }
<?php /** * Gate - Wiki engine and web-interface for WebTester Server * * Anchor Wiki page class * * Copyright (c) 2008-2009 Sergey I. Sharybin <*****@*****.**> * * This program can be distributed under the terms of the GNU GPL. * See the file COPYING. */ global $IFACE; if ($IFACE != "SPAWNING NEW IFACE" || $_GET['IFACE'] != '') { print 'HACKERS?'; die; } if ($_CCAnchor_ != '#CCAnchor_Included#') { $_CCAnchor_ = '#CCAnchor_included#'; class CCAnchor extends CCVirtual { function CCAnchor() { $this->SetClassName('CCAnchor'); } } content_Register_CClass('CCAnchor', 'Якорь', false); }
$i++; } println('</ul>'); } else { println('<span class="contentSub2">' . '<i>Журнал изменений пуст</i></span>'); } } function Field($field) { return $this->dataset->FieldValue($field); } function Editor_DrawContent($vars = array()) { global $pIFACE, $oldid; $pIFACE = $this; if ($oldid != '') { $this->ReceiveContentWithId($oldid); } tpl_srcp($this->DisplayScript(), $vars); } function GetTimestamp() { return $this->timestamp; } function GeUserId() { return $this->userid; } } content_Register_CClass('CCList', 'Лист'); }