<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>M/Monit Admin</title>
    <meta name="theme-color" content="#3D3E40">
    <meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-title" content="M/Monit" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
    <link rel="apple-touch-icon" href="../../img/apple-touch-icon.png"/>
    <link rel="manifest" href="../../img/manifest.webmanifest">
    <script src="../../lib/js/appearance.js"></script>
    <link rel="stylesheet" href="../../lib/css/styles.css?version=430">
    <style type="text/css">
        #announcement {display:none}
        #about > *, #about h4  {float:none;font-size:15px;font-weight:normal;}
        #feed h4:first-child {margin-top:0}
    </style>
</head>
<body>
    <div id="wrap">
        <div id="fixed-header">
            <div id="fake-status-bar"></div>
            <div id="header">
                <div id="nav">
                    <a id="logo" target="webapp" href="../../"></a>
                    <a id="logout" title="Logout" target="webapp" href="../../login/logout.csp"></a>
                    <ul id="menu">
                        <li>
                            <a target="webapp" href="../../index.csp"><span>Dashboard</span></a>
                        </li>
                        <li>
                            <a target="webapp" href="../../status/hosts/"><span>Status</span></a>
                        </li>
                        <li>
                            <a target="webapp" href="../../reports/analytics/"><span>Reports</span></a>
                            <ul>
                                <li><a target="webapp" href="../../reports/analytics/">Analytics</a></li>
                                <li><a target="webapp" href="../../reports/uptime/">Uptime</a></li>
                                <li><a target="webapp" href="../../reports/events/">Events</a></li>
                            </ul>
                        </li>
                        <li class="active">
                            <?cs if:#Request.Param.IsAdmin ?>
                            <a target="webapp" href="../../admin/general/"><span>Admin</span></a>
                            <ul>
                                <li><a target="webapp" href="../../admin/general/">General</a></li>
                                <li><a target="webapp" href="../../admin/hosts/">Hosts</a></li>
                                <li><a target="webapp" href="../../admin/groups/">Groups</a></li>
                                <li><a target="webapp" href="../../admin/users/">Users</a></li>
                                <li><a target="webapp" href="../../admin/roles/">Roles</a></li>
                                <li><a target="webapp" href="../../admin/alerts/">Alerts</a></li>
                                <li><a target="webapp" href="../../admin/settings/">Settings</a></li>
                            </ul>
                            <?cs else ?>
                            <a target="webapp" href="../../admin/users/edit?id=<?cs var:Request.Param.RemoteUserId ?>"><span>Profile</span></a>
                            <?cs /if ?>
                        </li>
                        <li id="logout-phone"><a target="webapp" href="../../login/logout.csp">Logout</a></li>
                    </ul>
                </div> <!-- nav -->
            </div><!-- header -->
        </div><!-- fixed-header -->
        <div id="main">
            <div id="title">
                <h1>General</h1>
            </div>
            <div class="row-fluid">
                <div class="span8">
                    <ul class="tableView">
                        <li>M/Monit version <span class="accessory"><?cs var:Request.Param.version ?>-<?cs var:Request.Param.platform ?>-<?cs var:Request.Param.machine ?></span></li>
                    </ul>
                    <h3>License information</h3>
                    <ul class="tableView">
<?cs if:Request.Param.license_expire?>
                        <li>
                            <span>Trial license expires on</span> 
                            <span class="accessory"><?cs var:Request.Param.license_expire ?></span>
                        </li>
<?cs else ?>
                        <li>
                            <span>Owner</span> 
                            <span class="accessory"><?cs var:Request.Param.license_owner ?></span>
                        </li>
                        <li>
                            <span>Serial Number</span> 
                            <span class="accessory"><?cs var:Request.Param.license_serial ?></span>
                        </li>
                        <li>
                            <span>Registered</span> 
                            <span class="accessory"><?cs var:Request.Param.license_registered ?></span>
                        </li>
                        <li>
                            <span>Free updates</span>
                            <span class="accessory">
                        <?cs if:#Request.Param.license_outdated ?>
                                <a class="btn btn-mini" href="https://mmonit.com/user/" target="_blank">
                                    Renew License
                                </a>
                        <?cs else ?>
                                <a class="btn btn-mini" href="https://mmonit.com/download/" target="_blank">
                                    Until <?cs var:Request.Param.license_outdated_date?>
                                </a>
                        <?cs /if ?>
                            </span> <!-- accessory -->
                        </li>
                        <li>
                            <span>Type</span> 
                            <span class="accessory"><?cs var:Request.Param.license_type ?></span>
                        </li>
                        <li>
                            <span>Hosts</span>
                            <?cs if:#Request.Param.license_limitation> 0?>
                                <span class="accessory" style="max-width:100%" title="Currently monitoring <?cs var:Request.Param.current_hosts ?> hosts">
                                    <?cs var:Request.Param.current_hosts ?>/<?cs var:Request.Param.license_limitation ?>&nbsp;&nbsp;
                                    <div class="progressbar" style="--accent-color:<?cs var:Request.Param.license_color ?>;--percent:<?cs var:Request.Param.license_ratio ?>%">
                                        <progress></progress>
                                    </div>
                                </span>
                            <?cs else ?>
                                <span class="accessory" title="Currently monitoring <?cs var:Request.Param.current_hosts ?> hosts">Unlimited</span>
                            <?cs /if ?>
                        </li>
<?cs /if ?>
                    </ul>
                    <h3>Support</h3>
                    <ul class="tableView">
                        <li>
                            <span class="valign-middle">Report a Bug</span>
                            <span class="accessory">
                                <a class="btn btn-mini" href="https://mmonit.com/issue/" target="_blank">
                                    <i class="icon-bug"></i>
                                </a>
                            </span>
                        </li>
                        <li>
                            <span class="valign-middle">Mailing List</span>
                            <span class="accessory">
                                <a class="btn btn-mini" href="https://tildeslash.com/mailman3/postorius/lists/mmonit-announce.tildeslash.com/" target="_blank">
                                    <i class="icon-list"></i>
                                </a>
                            </span>
                        </li>
                        <li>
                            <span class="valign-middle">Documentation</span>
                            <span class="accessory">
                                <a class="btn btn-mini" href="https://mmonit.com/documentation/" target="_blank">
                                    <i class="icon-book"></i>
                                </a>
                            </span>
                        </li>
                    </ul>
                    <h3>TCP/IP Connectors</h3>
                    <ul class="tableView">
                        <?cs each:connector = Request.Param.connector ?>
                        <li>
                            <span>IPv<?cs var:connector.ipversion ?></span>
                            <span class="accessory">Scheme '<?cs var:connector.scheme ?>' at <?cs var:connector.addr ?>:<?cs var:connector.port ?>  with max <?cs var:connector.processors ?> processor threads</span>
                        </li>
                        <?cs /each ?>
                    </ul>
                    <h3>Database Connection Pool</h3>
                    <ul class="tableView">
                        <li>
                            <span>Database type</span>
                            <span class="accessory"><?cs var:Request.Param.database_type ?></span>
                        </li>
                        <li>
                            <span>Active connections</span>
                            <span class="accessory"><?cs var:Request.Param.database_pool_active ?> </span>
                        </li>
                        <li>
                            <span>Available connections</span>
                            <span class="accessory"><?cs var:Request.Param.database_pool_size ?></span>
                        </li>
                        <li>
                            <span>Minimum size</span>
                            <span class="accessory"><?cs var:Request.Param.database_pool_min_size ?> connections</span>
                        </li>
                        <li>
                            <span>Maximum size</span>
                            <span class="accessory"><?cs var:Request.Param.database_pool_max_size ?> connections</span>
                        </li>
                    </ul>
                    <h3>Login Sessions</h3>
                    <ul class="tableView">
                        <li>
                            <span>Active Sessions</span>
                            <span class="accessory"><?cs var:Request.Param.session_active ?></span>
                        </li>
                        <li>
                            <span>Active Sessions allowed</span>
                            <span class="accessory"><?cs var:Request.Param.session_maxactive ?></span>
                        </li>
                        <li>
                            <span>Session timeout</span>
                            <span class="accessory"><?cs var:Request.Param.session_timeout / 60 ?> Minutes</span>
                        </li>
                    </ul>
                    <h3>Log files</h3>
                    <ul class="tableView">
                        <li>
                            <span>Error</span>
                            <span title="<?cs var:Request.Param.error_logfile ?>" class="accessory"><?cs var:Request.Param.error_logfile ?></span>
                        </li>
                        <li>
                            <span>Application</span>
                            <span title="<?cs var:Request.Param.logfile ?>" class="accessory"><?cs var:Request.Param.logfile ?></span>
                        </li>
                        <?cs if:Request.Param.access_logfile?>
                        <li>
                            <span>Access</span>
                            <span title="<?cs var:Request.Param.access_logfile ?>" class="accessory"><?cs var:Request.Param.access_logfile ?></span>
                        </li>
                        <?cs /if ?>
                    </ul>
                </div> <!-- span8 -->
                <div class="span4">
                    <h3 class="visible-phone">About M/Monit</h3>
                    <ul class="tableView transparent" id="about">
                        <li>
                            <span class="text">
                                M/Monit is a product of <a href="https://tildeslash.com/">Tildeslash</a>. For inquires about this
                                Software, see <a href="https://mmonit.com/contact/">contact information</a> or send us an email at <a
                                href="mailto:info@mmonit.com">info@mmonit.com</a>.
                            </span>
                        </li>
                        <li id="announcement">
                            <span class="text">
                                <div id="feed"></div>
                            </span>
                        </li>
                    </ul>
                </div> <!-- span4 -->
            </div> <!-- row -->
        </div> <!-- main -->
    </div> <!-- wrap -->
    <div id="footer">
        <div class="toleft hidden-phone">Logged in as <?cs var:Request.RemoteUser ?></div>
        <div class="toright hidden-phone">
            <ul class="piped">
                <li>Copyright &copy; 2024 <a href="https://www.tildeslash.com/">Tildeslash</a>. All Rights Reserved.</li>
                <li><a href="https://mmonit.com/">M/Monit</a></li>
                <li><a href="https://mmonit.com/monit/">Monit</a></li>
                <li><a href="https://mmonit.com/wiki/">Wiki</a></li>
            </ul>
        </div>
        <div id="copy" class="visible-phone">Copyright &copy; 2024 <a href="https://tildeslash.com/">Tildeslash</a>. All Rights Reserved.</div>
    </div> <!-- footer -->
    <!-- Hidden -->
    <script src="../../lib/f/jquery/jquery.js?version=430"></script>
    <script src="../../lib/f/jquery/jquery.mobile.vmouse.js?version=430"></script>
    <script src="../../lib/js/webapp.js?version=430"></script>
    <script src="../../lib/f/knockout/knockout.js?version=430"></script>
    <script src="../../lib/f/twbootstrap/js/bootstrap.js?version=430"></script>
    <script src="../../lib/js/error.js?version=430"></script>
    <script src="../../lib/js/menu.js?version=430"></script>
    <script src="../../lib/js/help.js?version=430"></script>
    <script src="../../lib/js/csrf.js?version=430"></script>
    <script src="../../assets/admin/admin_general.js?version=430"></script>
</body>
</html>
