Запись - Dashboard ISPmanager 5 Lite

Dashboard ISPmanager 5 Lite




От скуки я решил изменить оформление главной страницы панели. Мне надоело постоянно обращаться к боковому меню и изучать информацию о «Новых возможностях». Вот что у меня вышло:

/usr/local/mgr5/var/userconf/ispmgr.root.dashboard.xml


<?xml version="1.0" encoding="UTF-8"?>
<doc>
<block name="taskbar" position="top" display=""/>
<block name="pswebdomain" position="left" display=""/>
<block name="pssslcert" position="right" display=""/>
<block name="psservices" position="left" display=""/>
<block name="psbacup" position="right" display=""/>
<block name="sysinfo" position="left" display=""/>
<block name="software_info" position="right" display=""/>
<block name="capacity" position="left" display=""/>
<block name="longtask" position="right" display=""/>
<block name="psnetactconn" position="left" display=""/>
<block name="authlog" position="right" display=""/>
</doc>


/usr/local/mgr5/etc/xml/ispmgr_dashboard_30.xml


<?xml version="1.0"?>
<doc>
<block name="taskbar" position="top" type="toolbar">
<toolbtn form="user" img="mb-customer" name="user"/>
<toolbtn form="userlogs.users" img="mb-stat" name="userlogs.users"/>
<toolbtn form="webdomain" img="mb-domains" name="webdomain"/>
<toolbtn form="domain" img="mb-domains" name="domain"/>
<toolbtn form="sslcert" img="mb-www" name="sslcert"/>
<toolbtn form="phpversions" img="mb-set" name="phpversions"/>
<toolbtn form="db" img="mb-db" name="db"/>
<toolbtn form="problems" img="mb-sysstat" name="problems"/>
<toolbtn form="services" img="mb-srvset" name="services"/>
<toolbtn form="user.add" img="mb-customer" name="adduser"/>
<toolbtn form="file" img="mb-file" name="file"/>
<toolbtn form="emaildomain" img="mb-domains" name="emaildomain"/>
<toolbtn form="email" img="mb-mail" name="email"/>
<toolbtn form="firewall" img="mb-www" name="firewall"/>
<toolbtn form="feature" img="mb-set" name="feature"/>
<toolbtn img="mb-db" name="phpmyadmin" link="https://ваш домен/phpmyadmin/"
target="_blank"/>
<toolbtn form="scheduler" img="mb-cron" name="scheduler"/>
<!-- <toolbtn form="shell" img="mb-shell" name="shell"/> -->
<toolbtn window="help" img="mb-mgrhelp" name="help"/>
</block>

<block name="pswebdomain" position="left" type="list" func="webdomain"
rows="10">
<toolbtn name="edit"/>
<toolbtn name="plain"/>
<toolbtn name="file"/>
<col name="name" sort="alpha" sorted="+1"/>
<col name="prop"/>
<col name="php_version"/>
</block>

<block name="pssslcert" position="right" type="list" func="sslcert"
rows="10">
<col name="name" sort="alpha" sorted="+1"/>
<col name="state"/>
<col name="owner"/>
<col name="valid_after"/>
</block>

<block name="psservices" position="left" type="list" func="services"
rows="10">
<toolbtn name="restart"/>
<col name="name" sort="alpha" sorted="+1"/>
<col name="status"/>
</block>

<block name="psbacup" position="right" type="list" func="backup2.superlist"
rows="10">
<toolbtn name="users"/>
<toolbtn name="delete"/>
<col name="date" sort="alpha" sorted="-1"/>
<col name="size"/>
<col name="finished"/>
</block>

<block name="sysinfo" position="left" type="list" func="dashboard.sysinfo"/>

<block name="software_info" position="right" type="list"
func="dashboard.software"/>

<block name="capacity" position="left" type="list"
func="server_capacity"/>

<block name="longtask" position="right" type="list"
func="longtask" rows="5">
<toolbtn name="view" default="yes"/>
<toolbtn name="delete"/>
<col name="realname" type="data" sort="alpha"/>
<col name="startdate" type="data" sort="alpha" sorted="-1"/>
<col name="enddate" type="data" sort="alpha"/>
<col name="state" sort="prop"/>
</block>

<block name="psnetactconn" position="left" type="list"
func="netactconn" rows="10">
<col name="appname" sort="alpha" sorted="+1"/>
<col name="count"/>
</block>

<block name="authlog" position="right" type="list"
func="authlog" rows="7">
<col name="time" sort="alpha" sorted="-1"/>
<col name="user" sort="alpha" sorted="+2"/>
<col name="ip" sort="alpha"/>
</block>
</doc>


/usr/local/mgr5/etc/xml/ispmgr_msg_ru.xml

В секцию:


<messages name="dashboard">

...

</messages>


добавить:


<msg name="taskbar_user">Пользователи</msg>

<msg name="taskbar_userlogs.users">Журналы</msg>

<msg name="taskbar_webdomain">Домены</msg>

<msg name="taskbar_domain">DNS</msg>

<msg name="taskbar_sslcert">SSL</msg>

<msg name="taskbar_phpversions">PHP</msg>

<msg name="taskbar_db">Базы данных</msg>

<msg name="taskbar_problems">Уведомления</msg>

<msg name="taskbar_services">Службы</msg>

<msg name="taskbar_file">Менеджер файлов</msg>

<msg name="taskbar_emaildomain">Почтовые домены</msg>

<msg name="taskbar_email">Почтовые ящики</msg>

<msg name="taskbar_firewall">Брандмауэр</msg>

<msg name="taskbar_feature">Возможности</msg>

<msg name="taskbar_phpmyadmin">phpMyAdmin</msg>

<msg name="taskbar_scheduler">Планировщик</msg>

<msg name="taskbar_shell">Shell-клиент</msg>


Чтобы появились подписи к иконкам, нужно перезагрузить панель командой:
/usr/local/mgr5/sbin/mgrctl -m ispmgr -R
Комментарии 0
Пока нет комментариев
Извините, для вас комментирование недоступно
Ко всем записям

Яндекс.Метрика