function Run() { global $HTTP_POST_VARS; global $HTTP_GET_VARS; $button_toggle = @$HTTP_POST_VARS['button_toggle']; $button_showidx = @$HTTP_GET_VARS['button_showidx']; $button_regen = @$HTTP_POST_VARS['button_regen']; $regen_projidx = @$HTTP_POST_VARS['regen_projidx']; $showmethod = @$HTTP_GET_VARS['showmethod']; if ((!empty($button_toggle) || !empty($button_showidx)) && !empty($this->iProjidx) && $this->iProjidx > 0) { $this->Preamble('DDDA Project: ' . $this->iProjname, 'DDDA Project: ' . $this->iProjname); $ip = new IndexPage($this->iDBUtils); $txt = $ip->Run($this->iProjidx, $showmethod, 3, $this->iProjname); echo $txt; } else { $this->Preamble(' DDDA Main Meny ', ' DDDA Main Meny ' . $this->iProjname); $m = new DocEditMainEntry($this->iDBUtils); $m->StrokeMeny($this->iProjname, $this->iProjidx); } }
<?php /* Generated by CS2PHP */ namespace E04_Graphics; class IndexPage { public static function PhpMain() { echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . PHP_EOL; echo '<html><head><title>Dynamic image</title></head><body>'; $examples = array(-1, 10, 50, 100); foreach ($examples as $i) { $type = $i < 0 ? 'png' : 'jpg'; if ($i < 0) { echo '<p>PNG</p>'; } else { echo '<p>JPG, compression ' . $i . '</p>'; } echo "\r\n<p><img src=\"image.php?format=" . $type . ($i > 0 ? '&compression=' . $i : '') . '" alt="Demo ' . ($i > 0 ? 'jpg' : 'png') . ' image" /></p>' . PHP_EOL; } echo '</body>' . PHP_EOL; echo '</html>' . PHP_EOL; } } IndexPage::PhpMain();
require_once 's/s.php'; require_once 'incl/file_item.php'; require_once 'incl/initiator.php'; require_once 'incl/file_output.php'; require_once 'incl/block_output.php'; require_once 'incl/note_output.php'; class IndexPage extends SPage { function __construct() { parent::__construct(); $this->add_event(PAGE_INIT, 'on_init'); } public function on_init() { Initiator::check_init(); /* $dc = new Documenter(); $dc->parse(S_BASE.'data/json.php'); dwrite_msg('', dump_str($dc->blocks)); */ $this->add_control('FileOutput', new FileOutput()); $this->add_control('BlockOutput', new BlockOutput()); $this->add_control('NoteOutput', new NoteOutput()); $root = new FileItem(); $root->find(array('parent_id=', 0)); $this->vars['files'] = $root->childs; } } $page = new IndexPage(); $page->process();
?> <html> <head> <title>Менеджер VM</title> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="css/switch.css"> <link rel="stylesheet" type="text/css" href="css/button.css"> <link rel="stylesheet" type="text/css" href="css/main.css"> <script src="js/jquery-1.11.2.js"></script> <script src="js/ajaxUpdater.js"></script> <link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/jquery-jgrowl/1.4.1/jquery.jgrowl.min.css" /> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-jgrowl/1.4.1/jquery.jgrowl.min.js"></script> </head> <body> <h1>Виртуальные сервера</h1> <?php $index = new IndexPage(); $index->vmInfoTable(); ?> <p> <b>HA (High Availability)</b> - функция периодически (раз в 2 мин) отслеживает состояние сервера (включен/выключен) и автоматически запускает сервер, если он выключен. Единственное принудительное исключение: High Availability не стартует сервер, когда он находится в состоянии бекапа (не важно ручного или запущенного автоматически по расписанию). Если необходимо произвести работу на выключенном сервере, функцию High Availability необходимо выключить на время проведения работ. </p> <script> setTimeout(function(){ document.location.reload1();} , 60000); </script> </body> </html>
if (InPOST('upload')) { if ($this->HaxorCheck()) { return; } if (!$this->ErrorCheck()) { if ($this->TryToUploadFile()) { $this->UploadComplete(); return; } } } $this->Render(); } function Render() { $vars = array(); $vars['upload_url'] = $this->GetPostUrl(); $vars['upload_type'] = _POST('upload_type', 'file'); $vars['upload_error'] = $this->uploadError; $vars['email_error'] = $this->emailError; $vars['adsense_id'] = $this->GetAdsenseId(); $vars['email'] = $this->GetEmail(); $vars['thumb_size'] = _POST('thumb_size', '150x112'); $vars['description'] = _POST('description'); $vars['resize_options'] = $this->resizeOptions; $tpl = new Template(); echo $tpl->Process(BASE_PATH . 'index.tpl', $vars); } } $page = new IndexPage(); $page->Process();