Example #1
0
            }
        }
        function Editor_ContentManage()
        {
            global $act;
            $list = wiki_content_get_list();
            if ($act == 'save') {
                $this->UpdateContentsLookup($list);
            }
            formo('title=Следить за разделами;');
            println('<form action="' . content_url_get_full() . '&act=save" method="post">');
            $this->PrintContents(1, $list);
            settings_form_buttons();
            println('</form>');
            formc();
        }
        function GetTitle()
        {
            return $this->settings['title'];
        }
        function GetDescription()
        {
            return $this->settings['description'];
        }
        function GetURL()
        {
            return $this->settings['url'];
        }
    }
    content_Register_SCClass('CSCRSS', 'RSS Feed');
}
Example #2
0
                } else {
                    $this->settings['active'] = true;
                }
                $this->UpdateSettings();
            }
            if ($act == 'free') {
                $this->FreeLogs();
            }
            redirector_add_skipvar('act', 'free');
            $url = content_url_get_full();
            $update_active = 'nav (\'' . $url . '&active=' . ($this->settings['active'] ? '0' : '1') . '\');';
            $free_logs = 'cnav (\'Вы уверены что хотите очистить все файлы журналов?\', \'' . $url . '&act=free\');';
            formo('title=Управление сервисом');
            ?>
  <input type="checkbox" class="cb" onclick="<?php 
            echo $update_active;
            ?>
" value="1"<?php 
            echo $this->settings['active'] ? ' checked' : '';
            ?>
>&nbsp;Вести журналирование <i>(если данная опция неактивна, то сервис журналирования продолжит существовать, однако все журналирование будет отключено)</i><div id="hr"></div>
  <button class="block" onclick="<?php 
            echo $free_logs;
            ?>
">Очистить файлы журналов</button>
<?php 
            formc();
        }
    }
    content_Register_SCClass('CSCLog', 'Бортовой журнал');
}