/
bear
/
opencorpora
Обзор
Документация
Войти
/
bear
/
opencorpora
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
generator_cp.php
27 строк
664 B
Dmitry Granovsky
use wrappers instead of direct reads from and (merge from branch:ensure)
27 дек 2016, 18:50
27 дек 2016, 18:50
b1f4cd2
Код
Авторство
О чём код?
<?php require_once('lib/header.php'); require_once('lib/lib_generator.php'); $action = GET('act', ''); $current = get_generator_status(); $smarty->assign('status', $current['status']); $smarty->assign('since', $current['since']); $smarty->assign('tag', $current['tag']); $smarty->assign('next', $current['next']); switch ($action) { case 'toggle': $new = toggle_generator_status(); $smarty->assign('status', $new['status']); $smarty->assign('since', $new['since']); $smarty->assign('tag', $new['tag']); $smarty->assign('next', $new['next']); break; } $smarty->display('generator_cp.tpl'); log_timing(); ?>