* * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * @author Andreas Gohr <*****@*****.**> */ if (!defined('DOKU_INC')) { define('DOKU_INC', dirname(__FILE__) . '/../../'); } define('DOKU_DISABLE_GZIP_OUTPUT', 1); require_once DOKU_INC . 'inc/init.php'; //close session session_write_close(); $mimetypes = getMimeTypes(); //get input $MEDIA = stripctl(getID('media', false)); // no cleaning except control chars - maybe external $CACHE = calc_cache($_REQUEST['cache']); $WIDTH = (int) $_REQUEST['w']; $HEIGHT = (int) $_REQUEST['h']; list($EXT, $MIME, $DL) = mimetype($MEDIA, false); if ($EXT === false) { $EXT = 'unknown'; $MIME = 'application/octet-stream'; $DL = true; } // check for permissions, preconditions and cache external files list($STATUS, $STATUSMESSAGE) = checkFileStatus($MEDIA, $FILE); // prepare data for plugin events $data = array('media' => $MEDIA, 'file' => $FILE, 'orig' => $FILE, 'mime' => $MIME, 'download' => $DL, 'cache' => $CACHE, 'ext' => $EXT, 'width' => $WIDTH, 'height' => $HEIGHT, 'status' => $STATUS, 'statusmessage' => $STATUSMESSAGE); // handle the file status $evt = new Doku_Event('FETCH_MEDIA_STATUS', $data); if ($evt->advise_before()) {
@ini_set('error_reporting', E_ALL ^ E_WARNING ^ E_NOTICE); require_once ENGINE_DIR . '/data/stream_config.php'; require_once ENGINE_DIR . '/inc/stream-info.fnc.php'; require_once ENGINE_DIR . '/api/api.class.php'; include_once ENGINE_DIR . '/classes/parse.class.php'; $parse = new ParseFilter(array(), array(), 1, 1); $act = $_REQUEST['action']; if (empty($act) or !isset($act)) { /*=============================================================== Главная страница админки | Техническая информация | Разработчики ================================================================*/ echoheader("<i class=\"icon-home\"></i> Главная страница Stream-Info", "Вы находитесь на главной странице модуля Stream-Info"); echomenu(); js_code(); streamList($db->super_query("SELECT id, title, login, service, description, pic, date FROM " . PREFIX . "_streams ORDER BY id", true)); $calcache = calc_cache(array("stream-info", "stream-info-block", "stream-info-key")); if ($stream_config['allow_stream'] == '1') { $allow_stream = '<span style="color: green;">Включен</span>'; } else { $offline = "<div class=\"alert alert-error\"><b>Внимание модуль отключен:</b><br> Чтобы его перевести в рабочее состояние, Вы должны перейти в <a href='?mod=stream-info&action=settings' alt='Конфигурация модуля'><b>раздел настроек модуля</b></a>.</div>"; $allow_stream = '<span style="color: red;">Выключен</span>'; } echo $offline; opentable("Техническая информация"); echo <<<HTML <div class="box-content"> <div class="tab-content"> <div class="tab-pane active" id="statall"> <div class="row box-section"> <div class="col-md-3">Режим работы модуля:</div> <div class="col-md-9">{$allow_stream}</div>
if (!defined('DOKU_DISABLE_GZIP_OUTPUT')) { define('DOKU_DISABLE_GZIP_OUTPUT', 1); } require_once DOKU_INC . 'inc/init.php'; session_write_close(); //close session require_once DOKU_INC . 'inc/fetch.functions.php'; if (defined('SIMPLE_TEST')) { $INPUT = new Input(); } // BEGIN main $mimetypes = getMimeTypes(); //get input $MEDIA = stripctl(getID('media', false)); // no cleaning except control chars - maybe external $CACHE = calc_cache($INPUT->str('cache')); $WIDTH = $INPUT->int('w'); $HEIGHT = $INPUT->int('h'); $REV =& $INPUT->ref('rev'); //sanitize revision $REV = preg_replace('/[^0-9]/', '', $REV); list($EXT, $MIME, $DL) = mimetype($MEDIA, false); if ($EXT === false) { $EXT = 'unknown'; $MIME = 'application/octet-stream'; $DL = true; } // check for permissions, preconditions and cache external files list($STATUS, $STATUSMESSAGE) = checkFileStatus($MEDIA, $FILE, $REV, $WIDTH, $HEIGHT); // prepare data for plugin events $data = array('media' => $MEDIA, 'file' => $FILE, 'orig' => $FILE, 'mime' => $MIME, 'download' => $DL, 'cache' => $CACHE, 'ext' => $EXT, 'width' => $WIDTH, 'height' => $HEIGHT, 'status' => $STATUS, 'statusmessage' => $STATUSMESSAGE, 'ispublic' => media_ispublic($MEDIA));
/*============================================================== Главная страница админки | Техническая информация | Разработчики ===============================================================*/ echomenu(); opentable(); tableheader("Прямые трансляции"); streamList($db->super_query("SELECT id, title, service, login, description, pic, date FROM " . PREFIX . "_streams ORDER BY id", true)); closetable(); if ($stream_config['allow_stream'] == 'yes') { $allow_stream = '<span style="color: green;">Включен</span>'; } else { $offline = "<div class='ui-state-error ui-corner-all' style='padding:10px;'><b>Внимание модуль отключен:</b><br> Чтобы его перевести в рабочее состояние, Вы должны перейти в <a href='{$PHP_SELF}?mod=stream-info&action=settings' alt='Конфигурация модуля'><b>раздел настроек модуля</b></a>.</div>"; $allow_stream = '<span style="color: red;">Выключен</span>'; } $fileCache = array("stream-info", "stream-info-block", "stream-info-key"); $calcache = calc_cache($fileCache); opentable(); tableheader("Техническая поддержка"); echo <<<HTML <table width="100%"> <tbody> \t\t<tr> \t\t\t<td width="265" style="padding: 3px;">Режим работы модуля:</td> \t\t\t<td>{$allow_stream}</td> \t\t</tr> \t\t<tr> \t\t\t<td background="engine/skins/images/mline.gif" height="1" colspan="7"></td> \t\t</tr> \t\t<tr> \t\t\t<td style="padding: 3px;">Версия Stream-Info:</td> \t\t\t<td>1.5.2</td>