$this->containerLinks = array(); } function SetDefaultSettings() { $this->SetClassName('CVCContainerArray'); } function InnerHTML() { $result = ''; for ($i = 0; $i < count($this->containers); $i++) { $container = $this->containers[$i]; $result .= $container->OuterHTML(); } return $result; } function AppendContainer($container, $name = '') { $this->containerLinks[$container->GetName()] =& $container; $this->containers[] = $container; } function GetContainerByName($name) { return $this->containerLinks[$name]; } function GetContainerByNumber($i) { return $this->containers[$i]; } } content_Register_VCClass('CVCContainerArray'); }
$res = swriteln($res, ' if (!' . $this->settings['add_check_func'] . ' ()) return false;'); } $res = swriteln($res, ' frm.submit ();'); $res = swriteln($res, ' }'); $res = swriteln($res, '</script>'); $res = swriteln($res, $this->FieldsHTML()); $res = swriteln($res, '<div class="formPast">'); if ($this->settings['backlink'] != '') { $res = swriteln($res, '<button type="button" onclick="nav (\'' . $this->settings['backlink'] . '\');" class="submitBtn">Назад</button>'); $res = swriteln($res, '<button class="submitBtn" type="submit">' . $this->settings['caption'] . '</button>'); } else { $res = swriteln($res, '<button class="submitBtn block" ' . 'type="submit">' . $this->settings['caption'] . '</button>'); } $res = swriteln($res, '</div>'); return $res; } function OuterHTML() { $res = ''; $res = swriteln($res, '<form' . ($this->settings['action'] != '' ? ' action="' . $this->settings['action'] . '"' : '') . ($this->settings['method'] != '' ? ' method="' . $this->settings['method'] . '"' : '') . ($this->settings['enctype'] != '' ? ' enctype="' . $this->settings['enctype'] . '"' : '') . ' onsubmit="form_' . $this->settings['name'] . '_check (this); return false;">'); $res = swriteln($res, $this->InnerHTML()); $res = swriteln($res, '</form>'); return $res; } } function FormPOSTValue($variable, $formname = '') { return $_POST[$formname . '_' . $variable]; } content_Register_VCClass('CVCForm'); }
// Return container HTML code function InnerHTML() { return ''; } // Return full HTML code function OuterHTML() { return $this->PrefixHTML() . $this->InnerHTML() . $this->PostfixHTML(); } // Return prefix HTML code function PrefixHTML() { return ''; } // Return postfix HTML code function PostfixHTML() { return ''; } function Draw() { print $this->OuterHTML(); } function FromTemplate($tpl, $args = array(), $parse = true) { return tpl('back/vclasses/' . $this->GetClassName() . '/' . $tpl, $args, $parse); } } content_Register_VCClass('CVCVirtual'); }
} function SetName($v) { $this->name = $v; } function PrefixHTML() { return '<div style="border: 1px red solid;">'; } function PostfixHTML() { return '</div>'; } function InnerHTML() { if ($this->node != null) { return $this->node->OuterHTML(); } return ''; } function GetNode() { return $this->node; } function SetNode($node) { $this->node =& $node; } } content_Register_VCClass('CVCContainer'); }
foreach ($this->vars as $k => $v) { $content = preg_replace('/\\${' . prepare_pattern($k) . '}/', $v, $content); } $content = deecranvars($content); return $content; } function InnerHTML() { $content = $this->content->InnerHTML(); ob_start(); eval('?>' . $content); $content = ob_get_contents(); ob_end_clean(); $content = $this->SetVars($content); $this->FillTopMenu(); $topmenu = $this->topmenu->InnerHTML(); $head = $this->HeadSource(); return tpl('common/index', array('head' => $head, 'content' => $content, 'topmenu' => $topmenu)); } function SetTitle($v) { $this->settings['title'] = $v; } function AppendTitle($v, $last = false) { $this->settings['title'] .= ($last ? ' - ' : ($this->title_appended > 1 ? ' || ' : ': ')) . $v; $this->title_appended++; } } content_Register_VCClass('CVCPage'); }
} if ($this->settings['name'] == '') { $suff = 'tabctrl'; } else { $suff = $this->settings['name']; } if (isset($GLOBALS[$suff]) && $GLOBALS[$suff] != '') { $active = $GLOBALS[$suff]; } else { $active = 0; } if ($active < 0) { $active = 0; } if ($active >= count($this->pages)) { $active = count($this->pages) - 1; } $p .= ';active=' . $active; $url = $this->settings['url']; if ($url == '') { $url = content_url_get_full(); } $p .= ';url=' . prepare_arg($url); $res .= stencil_tabo($p . ';suff=' . prepare_arg($this->settings['name'])); $res .= $this->pages[$active]['src']; $res .= stencil_tabc(); return $res; } } content_Register_VCClass('CVCTabCtrl'); }
function ReceiveItemsUsed() { $s = $_POST['alist_' . $this->name . '_items']; $s = preg_replace('/\\r/', '', $s); if ($s == '') { return array(); } $this->itemsUsed = explode("\n", $s); } function GetItemsUsed() { return $this->itemsUsed; } function SetItemsUsed($items) { $this->itemsUsed = $items; } function SetItems($arr) { $this->items = $arr; } } function receiveDataFromAList($name) { $list = new CVCAppendingList(); $list->Init($name); $list->ReceiveItemsUsed(); return $list->GetItemsUsed(); } content_Register_VCClass('CVCAppendingList'); }
global $IFACE; if ($IFACE != "SPAWNING NEW IFACE" || $_GET['IFACE'] != '') { print 'HACKERS?'; die; } if ($_CVCCaptcha_ != '#CVCCaptcha_Included#') { $_CVCaptcha_ = '#CVCCaptcha_Included#'; class CVCCaptcha extends CVCVirtual { function CVCCaptcha() { $this->SetClassName('CVCCaptcha'); } function Init($name = '', $settings = '') { $this->SetDefaultSettings(); $this->contents = array(); $params = unserialize_params($settings); $this->SetSettings(combine_arrays($this->GetSettings(), $params)); } function SetDefaultSettings() { $this->SetClassName('CVCCaptcha'); } function InnerHTML() { return '<img src="' . config_get('document-root') . '/inc/stuff/captcha/data.php">'; } } content_Register_VCClass('CVCCaptcha'); }
{ $this->items[] = array('title' => $title, 'href' => $href, 'tag' => $tag, 'img' => $img); return count($this->items); } function SetActive($tag) { $this->active_item_tag = $tag; $this->selectedBy = 'tag'; } function SetActiveByIndex($index) { $this->active_item_index = $index; $this->selectedBy = 'index'; } function InnerHTML() { if (count($this->items) == 0) { return ''; } if ($this->selectedBy == 'index') { $this->active_item_tag = $this->items[$this->active_item_index]['tag']; } return $this->FromTemplate($this->GetSetting('type') . '_menu', array('settings' => $this->GetSettings(), 'items' => $this->items, 'active' => $this->active_item_tag)); } function Free() { $this->contents = array(); } } content_Register_VCClass('CVCMenu'); }
function Init() { $this->SetDefaultSettings(); $this->contents = array(); } function SetDefaultSettings() { $this->SetClassName('CVCPage'); } function TPrint($text) { $this->contents[] = array('type' => 'text', 'text' => $text); } function InnerHTML() { $result = ''; for ($i = 0; $i < count($this->contents); $i++) { $content = $this->contents[$i]; if ($content['type'] == 'text') { $result .= $content['text']; } } return $result; } function Free() { $this->contents = array(); } } content_Register_VCClass('CVCContent'); }
die; } if ($_CVCRegnum_ != '#CVCRegnum_Included#') { $_CVCContent_ = '#CVCRegnum_Included#'; class CVCTagCloud extends CVCVirtual { var $tags = array(); function CVCTagCloud() { $this->SetClassName('CVCTagCloud'); } function Init($name, $tags = array(), $settings = '') { $params = unserialize_params($settings); $this->SetSettings(combine_arrays($this->GetSettings(), $params)); $this->tags = $tags; $this->name = $name; } function InnerHTML() { global $CORE, $taglist_stuff_included; if (!isset($taglist_stuff_included)) { $CORE->AddStyle('tagcloud'); $taglist_stuff_included = true; $CORE->AddScript('language=JavaScript;', $this->FromTemplate('script', array(), false)); } return $this->FromTemplate('widget', array('name' => $this->name, 'tags' => $this->tags, 'title' => $this->settings['title'], 'jshandler' => $this->settings['jshandler'], 'userdata' => $this->settings['userdata'])); } } content_Register_VCClass('CVCTagCloud'); }
{ $this->settings['active'] = $n; } function GetTopPagintation() { return $this->GetPagintation($this->topStencil); } function GetBottomPagintation() { return $this->GetPagintation($this->bottomStencil); } function SetHeader($v) { $this->header = $v; } function SetFooter($v) { $this->footer = $v; } function InnerHTML() { $res = $this->GetTopPagintation(); $res .= $this->pages[$this->GetActivePage()]['src']; if (!$this->settings['bottomPages']) { $res .= $this->GetBottomPagintation(); } return $this->header . $res . $this->footer; } } content_Register_VCClass('CVCPagintation'); }