{% extends "Froxlor/userarea.html.twig" %} {% block content %} {% if get_setting('panel.is_configured') == 0 and userinfo.adminsession == 1 and userinfo.change_serversettings == 1 %}

{{ lng('welcome.title') }}

{{ lng('welcome.config_note') }}

{{ lng('welcome.config_now') }}
{% endif %}
{% import "Froxlor/user/dashboard-item.html.twig" as dashboard %} {% if userinfo.adminsession == 1 %} {# admin-resources #}
{{ dashboard.ditem('admin.customers', userinfo.customers, overview.number_customers) }} {{ dashboard.ditem('admin.domains', userinfo.domains, overview.number_domains) }} {{ dashboard.ditem('customer.diskspace', userinfo.diskspace_bytes, overview.diskspace_bytes_used, overview.diskspace_bytes, true) }} {{ dashboard.ditem('customer.traffic', userinfo.traffic_bytes, overview.traffic_bytes_used, overview.traffic_bytes, true) }} {{ dashboard.ditem('customer.subdomains', userinfo.subdomains, overview.subdomains_used, overview.subdomains_assigned) }} {{ dashboard.ditem('customer.mysqls', userinfo.mysqls, overview.mysqls_used, overview.mysqls_assigned) }} {{ dashboard.ditem('customer.emails', userinfo.emails, overview.emails_used, overview.emails_assigned) }} {{ dashboard.ditem('customer.accounts', userinfo.email_accounts, overview.email_accounts_used, overview.email_accounts_assigned) }} {{ dashboard.ditem('customer.forwarders', userinfo.email_forwarders, overview.email_forwarders_used, overview.email_forwarders_assigned) }} {{ dashboard.ditem('customer.ftps', userinfo.ftps, overview.ftps_used, overview.ftps_assigned) }}
{% else %} {# customer-resources #}
{{ dashboard.ditem('customer.total_diskspace', userinfo.diskspace_bytes, userinfo.total_bytes_used, null, true) }} {{ dashboard.ditem('customer.diskspace', userinfo.diskspace_bytes, userinfo.diskspace_bytes_used, null, true) }} {{ dashboard.ditem('customer.traffic', userinfo.traffic_bytes, userinfo.traffic_bytes_used, null, true) }} {{ dashboard.ditem('customer.subdomains', userinfo.subdomains, userinfo.subdomains_used) }} {{ dashboard.ditem('customer.mysqls', userinfo.mysqls, userinfo.mysqls_used, null, false, userinfo.dbspace_used) }} {{ dashboard.ditem('customer.emails', userinfo.emails, userinfo.emails_used) }} {{ dashboard.ditem('customer.accounts', userinfo.email_accounts, userinfo.email_accounts_used, null, false, userinfo.mailspace_used) }} {{ dashboard.ditem('customer.forwarders', userinfo.email_forwarders, userinfo.email_forwarders_used) }} {{ dashboard.ditem('customer.ftps', userinfo.ftps, userinfo.ftps_used) }}
{% endif %}
{% if userinfo.adminsession == 1 %}
{# system infos #}
{{ lng('admin.systemdetails') }}
- Froxlor: {{ call_static('\\Froxlor\\Froxlor', 'getVersionString') }} - {{ lng('serversettings.update_channel.title') }}: {{ get_setting('system.update_channel') }} - {{ lng('admin.serversoftware') }}: {{ sysinfo.webserver }} - {{ lng('admin.phpversion') }}: {{ sysinfo.phpversion }} - {{ lng('admin.mysqlserverversion') }}: {{ sysinfo.mysqlserverversion }} - {{ lng('admin.webserverinterface') }}: {{ sysinfo.phpsapi }} - Kernel: {{ sysinfo.kernel }} - OS: {{ get_setting('system.distribution') }}
  • {{ lng('admin.hostname') }}
    {{ sysinfo.hostname }}
  • {{ lng('admin.serversoftware') }}
    {{ sysinfo.webserver }}
  • {{ lng('admin.phpversion') }}
    {{ sysinfo.phpversion }}
  • {{ lng('admin.mysqlserverversion') }}
    {{ sysinfo.mysqlserverversion }}
  • {{ lng('admin.webserverinterface') }}
    {{ sysinfo.phpsapi }}
  • {% if sysinfo.memory is not empty %}
  • {{ lng('admin.memory') }}
    {{ sysinfo.memory }}
  • {% endif %}
  • {{ lng('admin.sysload') }}
    {{ sysinfo.load }}
  • {% if sysinfo.kernel is not empty %}
  • Kernel
    {{ sysinfo.kernel }}
  • {% endif %} {% if sysinfo.uptime is not empty %}
  • Uptime
    {{ sysinfo.uptime }}
  • {% endif %}
{% if userinfo.custom_notes is not empty and userinfo.custom_notes_show == 1 %}
  • {{ userinfo.custom_notes|nl2br|raw }}
{% endif %}
{% else %}
{# account info #}
{{ lng('index.accountdetails') }}
  • {{ lng('login.username') }}
    {{ userinfo.loginname }}
  • {{ lng('customer.email') }}
    {{ userinfo.email }}
  • {{ lng('customer.services') }}
    {% if userinfo.imap == 1 %} IMAP {% endif %} {% if userinfo.pop3 == 1 %} POP3 {% endif %} {% if userinfo.phpenabled == 1 %} PHP {% endif %} {% if userinfo.perlenabled == 1 %} Perl/CGI {% endif %} {% if userinfo.api_allowed == 1 %} API {% endif %}
  • {% if stdsubdomain is not empty %}
  • {{ lng('admin.stdsubdomain') }}
    {{ stdsubdomain }}
  • {% endif %}
  • {{ lng('customer.domains') }}
    {% for domain in domains %} {{ domain }}
    {% endfor %}
    {{ domains|length }}
{# customer details #}
{{ lng('index.customerdetails') }}
    {% if userinfo.customernumber is not empty %}
  • {{ lng('customer.customernumber') }}
    {{ userinfo.customernumber }}
  • {% endif %} {% if userinfo.company is not empty %}
  • {{ lng('customer.company') }}
    {{ userinfo.company }}
  • {% endif %} {% if userinfo.name is not empty %}
  • {{ lng('customer.name') }}
    {{ userinfo.firstname }} {{ userinfo.name }}
  • {% endif %} {% if userinfo.street is not empty %}
  • {{ lng('customer.street') }}
    {{ userinfo.street }}
  • {% endif %} {% if userinfo.city is not empty %}
  • {{ lng('customer.zipcode') }}/{{ lng('customer.city') }}
    {{ userinfo.zipcode }} {{ userinfo.city }}
  • {% endif %} {% if userinfo.custom_notes is not empty and userinfo.custom_notes_show == 1 %}
  • {{ userinfo.custom_notes|nl2br|raw }}
  • {% endif %}
{% endif %}
{% if userinfo.adminsession == 1 %} {# froxlor-details #}
{{ lng('admin.froxlordetails') }}
  • {{ lng('tasks.outstanding_tasks') }}
    {% for task in outstanding_tasks %} {{ task.desc }}
    {% endfor %}
  • {% for cronrun in cron_last_runs %}
  • {{ cronrun.title }}
    {% if cronrun.lastrun > 0 %} {{ cronrun.lastrun|date('d.m.Y H:i') }} {% else %} {{ lng('cronjobs.notyetrun') }} {% endif %}
  • {% endfor %}
{% endif %} {% if (get_setting('admin.show_news_feed') == 1 and userinfo.adminsession == 1) or (get_setting('customer.show_news_feed') == 1 and userinfo.adminsession == 0) %}
{% if get_setting('customer.news_feed_url') is empty %}Froxlor {% endif %}Newsfeed
Loading newsfeed...
{% endif %}
{% endblock %}