test1213 - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of test1213.php

  1. <?php
  2.  
  3. if (count(get_included_files()) == 1) {
  4.     exit;
  5. }
  6. if ($rPermissions["is_admin"]) {
  7.     $rCheckTickets = getTickets();
  8. }
  9. echo "\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n    <head>\r\n        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n        <title>";
  10. echo htmlspecialchars($rSettings["server_name"]);
  11. echo "</title>\r\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n        <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\r\n        <meta name=\"robots\" content=\"noindex,nofollow\">\r\n        <link rel=\"shortcut icon\" href=\"assets/images/favicon.ico\">\r\n        <link href=\"assets/libs/jquery-nice-select/nice-select.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/libs/switchery/switchery.min.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/libs/select2/select2.min.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/libs/datatables/dataTables.bootstrap4.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/libs/datatables/responsive.bootstrap4.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/libs/datatables/buttons.bootstrap4.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/libs/datatables/select.bootstrap4.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/libs/jquery-toast/jquery.toast.min.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/libs/bootstrap-select/bootstrap-select.min.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/libs/bootstrap-touchspin/jquery.bootstrap-touchspin.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/libs/treeview/style.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/libs/clockpicker/bootstrap-clockpicker.min.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/libs/daterangepicker/daterangepicker.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/libs/nestable2/jquery.nestable.min.css\" rel=\"stylesheet\" />\r\n        <link href=\"assets/libs/magnific-popup/magnific-popup.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/libs/bootstrap-colorpicker/bootstrap-colorpicker.min.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n\t\t<link href=\"assets/css/icons.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n\t\t";
  12. if (!$rAdminSettings["dark_mode"]) {
  13.     echo "        <link href=\"assets/css/bootstrap.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/css/app.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n\t\t";
  14. } else {
  15.     echo "\t\t<link href=\"assets/css/bootstrap.dark.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/css/app.dark.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n\t\t";
  16. }
  17. echo "    </head>\r\n\t    <script src=\"assets/js/sweetalert.min.js\"></script>\r\n\t\t<style>\t\r\n\t\t.fas.blink {\r\n      animation: blink 3s steps(5, start) infinite;\r\n      -webkit-animation: blink 2s steps(5, start) infinite;\r\n    }\r\n    @keyframes blink {\r\n      to {\r\n        visibility: hidden;\r\n      }\r\n    }\r\n    @-webkit-keyframes blink {\r\n      to {\r\n        visibility: hidden;\r\n      }\r\n    }\r\n\t\r\n#myBtn {\r\n  display: none;\r\n  position: fixed;\r\n  bottom: 40px;\r\n  right: 30px;\r\n  z-index: 99;\r\n  font-size: 18px;\r\n  border: none;\r\n  outline: none;\r\n  background-color: #56C3D6;\r\n  color: white;\r\n  cursor: pointer;\r\n  padding: 15px;\r\n  border-radius: 0px;\r\n}\r\n\r\n#myBtn:hover {\r\n  background-color: #555;\r\n}\r\n\t</style>\r\n    <body>\r\n        <!-- Navigation Bar-->\r\n        <header id=\"topnav\">\r\n            <!-- Topbar Start -->\r\n            <div class=\"navbar-custom\">\r\n                <div class=\"container-fluid\">\r\n                    <ul class=\"list-unstyled topnav-menu float-right mb-0\">\r\n                        <li class=\"dropdown notification-list\">\r\n                            <!-- Mobile menu toggle-->\r\n                            <a class=\"navbar-toggle nav-link\">\r\n                                <div class=\"lines text-white\">\r\n                                    <span></span>\r\n                                    <span></span>\r\n                                    <span></span>\r\n                                </div>\r\n                            </a>\r\n                            <!-- End mobile menu toggle-->\r\n                        </li>\r\n\t\t\t\t\t\t";
  18. if ($rServerError && $rPermissions["is_admin"] && hasPermissions("adv", "servers")) {
  19.     echo "                        <!--<li class=\"notification-list\">\r\n                            <a href=\"./servers.php\" class=\"nav-link right-bar-toggle waves-effect text-danger\">\r\n                                <i class=\"mdi mdi-alarm-light noti-icon\"></i>\r\n                            </a>\r\n                        </li>-->\r\n                        ";
  20. }
  21. echo "\t\t\t\t\t\t";
  22. if ($rPermissions["is_reseller"]) {
  23.     echo "\t\t\t\t\t\t<li class=\"dropdown notification-list\">\r\n                            <a class=\"nav-link dropdown-toggle nav-user mr-0 waves-effect text-white\" data-toggle=\"dropdown\" href=\"#\" role=\"button\" aria-haspopup=\"false\" aria-expanded=\"false\">\r\n                                <i class=\"fas fa-user-alt\"></i><b>  ";
  24.     echo $rUserInfo["username"];
  25.     echo "</b> <i class=\"mdi mdi-chevron-down\"></i>\r\n                            </a>\r\n\t\t\t\t\t\t\t<div class=\"dropdown-menu profile-dropdown\">\r\n                                <a href=\"./edit_profile.php\" class=\"dropdown-item notify-item\"><span class=\"mdi mdi-account-circle\"> User Profile</span></a>\r\n                                <a href=\"./logout.php\" class=\"dropdown-item notify-item\"><span class=\"mdi mdi-logout\"> Logout</span></a>\r\n                            </a>\r\n                        </li>\r\n\t\t\t\t\t\t";
  26. }
  27. echo "\t\t\t\t\t\t";
  28. if ($rPermissions["is_admin"]) {
  29.     echo "\t\t\t\t\t\t<li class=\"dropdown notification-list\">\r\n                            <a class=\"nav-link dropdown-toggle nav-user mr-0 waves-effect text-white\" data-toggle=\"dropdown\" href=\"#\" role=\"button\" aria-haspopup=\"false\" aria-expanded=\"false\">\r\n                                <i class=\"fas fa-user-alt\"></i><b>  ";
  30.     echo $rUserInfo["username"];
  31.     echo "</b> <i class=\"mdi mdi-chevron-down\"></i>\r\n                            </a>\r\n\t\t\t\t\t\t\t<div class=\"dropdown-menu profile-dropdown\">\r\n\t\t\t\t\t\t\t\t";
  32.     if (hasPermissions("adv", "edit_profile")) {
  33.         echo "                                <a href=\"./edit_profile.php\" class=\"dropdown-item notify-item\"><span class=\"mdi mdi-account-circle\"> User Profile</span></a>\r\n                                ";
  34.     }
  35.     if (hasPermissions("adv", "manage_tickets")) {
  36.         echo "                                <a href=\"./tickets.php\" class=\"dropdown-item notify-item\"> <span class=\"mdi mdi-email\"> ";
  37.         echo $_["tickets"];
  38.         echo "</a>\r\n\t\t\t\t\t\t\t\t<div class=\"separator\"></div>\r\n                                ";
  39.     }
  40.     if (hasPermissions("adv", "settings") || hasPermissions("adv", "database")) {
  41.         echo "                                <a href=\"./settings.php\" class=\"dropdown-item notify-item\"><span class=\"mdi mdi-wrench mdi-rotate-90\"> General Settings</span></a>\r\n\t\t\t\t\t\t\t\t";
  42.     }
  43.     if (hasPermissions("adv", "folder_watch_settings") || hasPermissions("adv", "database")) {
  44.         echo "                                <a href=\"./settings_watch.php\" class=\"dropdown-item notify-item\"><span class=\"mdi mdi-eye\"> Watch Settings</span></a>\r\n\t\t\t\t\t\t\t\t";
  45.     }
  46.     if (hasPermissions("adv", "settings") || hasPermissions("adv", "database")) {
  47.         echo "                                <a href=\"./backups.php\" class=\"dropdown-item notify-item\"><span class=\"mdi mdi-backup-restore\"> Backups</span></a>\r\n\t\t\t\t\t\t\t\t";
  48.     }
  49.     if (hasPermissions("adv", "settings") || hasPermissions("adv", "database")) {
  50.         echo "                                <a href=\"./db_sql.php\" class=\"dropdown-item notify-item\"><span class=\"mdi mdi-database\"> Database</span></a>\r\n\t\t\t\t\t\t\t\t<div class=\"separator\"></div>\r\n\t\t\t\t\t\t\t\t";
  51.     }
  52.     if (hasPermissions("adv", "login_flood")) {
  53.         echo "                                <a href=\"./logout.php\" class=\"dropdown-item notify-item\"><span class=\"mdi mdi-logout\"> Logout</span></a>\r\n                                ";
  54.     }
  55.     echo "                            </a>\r\n                        </li>\r\n\t\t\t\t\t\t";
  56. }
  57. echo "\t\t\t\t\t\t";
  58. if ($rPermissions["is_admin"] && $rAdminSettings["show_tickets"]) {
  59.     foreach ($rCheckTickets as $rCheckTicket) {
  60.         echo "\t\t\t\t\t\t\t";
  61.         if ($rCheckTicket["status"] == 1 && $rCheckTicket["admin_read"] == 0) {
  62.             echo "\t\t\t\t\t\t\t<li class=\"notification-list\">\r\n\t\t\t\t\t\t\t\t<a href=\"./ticket_view.php?id=";
  63.             echo $rCheckTicket["id"];
  64.             echo "\" class=\"nav-link right-bar-toggle waves-effect text-info\" role=\"button\" data-toggle=\"tooltip\" data-placement=\"bottom\" title=\"\" data-original-title=\"New Ticket ";
  65.             echo strtolower($rCheckTicket["username"]);
  66.             echo "\">\r\n\t\t\t\t\t\t\t         <i class=\"fas fa-envelope blink noti-icon\"></i>\r\n\t\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t";
  67.         }
  68.         echo "\t\t\t\t\t\t";
  69.     }
  70. }
  71. echo "\t\t\t\t\t\t\t\t\r\n                    </ul>\r\n                    <!-- LOGO -->\r\n                    <div class=\"logo-box\">\r\n                        <a href=\"";
  72. if ($rPermissions["is_admin"]) {
  73.     echo "dashboard.php";
  74. } else {
  75.     echo "reseller.php";
  76. }
  77. echo "\" class=\"logo text-center\">\r\n                            <span class=\"logo-lg\">\r\n                                <img src=\"";
  78. echo $rSettings["logo_url"];
  79. echo "\" alt=\"\" height=\"24\">\r\n                            </span>\r\n                            <span class=\"logo-sm\">\r\n                                <img src=\"";
  80. echo $rSettings["logo_url"];
  81. echo "\" alt=\"\" height=\"24\">\r\n                            </span>\r\n                        </a>\r\n                    </div>\r\n                    <div class=\"clearfix\"></div>\r\n                </div> \r\n            </div>\r\n            <!-- end Topbar -->\r\n            <div class=\"topbar-menu\">\r\n                <div class=\"container-fluid\">\r\n                    <div id=\"navigation\">\r\n                        <!-- Navigation Menu-->\r\n                        <ul class=\"navigation-menu\">\r\n\t\t\t\t\t\t    ";
  82. if ($rPermissions["is_reseller"] && $rPermissions["reseller_client_connection_logs"]) {
  83.     echo "                            <li class=\"has-submenu\">\r\n                                <a href=\"#\"><i class=\"fe-activity text-danger\"></i>";
  84.     echo $_["dashboard"];
  85.     echo " <div class=\"arrow-down\"></div></a>\r\n                                <ul class=\"submenu\">\r\n\t\t\t\t\t\t\t\t    <li><a href=\"./";
  86.     if ($rPermissions["is_admin"]) {
  87.         echo "dashboard.php";
  88.     } else {
  89.         echo "reseller.php";
  90.     }
  91.     echo "\" aria-expanded=\"false\"><span class=\"fe-activity\"></span> ";
  92.     echo $_["dashboard"];
  93.     echo "</a></li><br>\r\n                                    <li><a href=\"./live_connections.php\"><span class=\"mdi mdi-account-network\"> ";
  94.     echo $_["live_connections"];
  95.     echo "</span></a></li><br>\r\n                                    <li><a href=\"./user_activity.php\"><span class=\"mdi mdi-file-document\"> ";
  96.     echo $_["activity_logs"];
  97.     echo "</span></a></li>\r\n                                </ul>\r\n                            </li>\r\n\t\t\t\t\t\t\t";
  98. }
  99. if ($rPermissions["is_admin"] && (hasPermissions("adv", "live_connections") || hasPermissions("adv", "connection_logs"))) {
  100.     echo "                            <li class=\"has-submenu\">\r\n                                <a href=\"#\"><i class=\"fe-activity text-danger\"></i>";
  101.     echo $_["dashboard"];
  102.     echo " <div class=\"arrow-down\"></div></a>\r\n                                <ul class=\"submenu\">\r\n\t\t\t\t\t\t\t\t    <li><a href=\"./";
  103.     if ($rPermissions["is_admin"]) {
  104.         echo "dashboard.php";
  105.     } else {
  106.         echo "reseller.php";
  107.     }
  108.     echo "\" aria-expanded=\"false\"><span class=\"fe-activity\"></span> ";
  109.     echo $_["dashboard"];
  110.     echo "</a></li><br>\r\n                                    ";
  111.     if (hasPermissions("adv", "live_connections")) {
  112.         echo "                                    <li><a href=\"./live_connections.php\"><span class=\"mdi mdi-account-network\"> ";
  113.         echo $_["live_connections"];
  114.         echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t";
  115.     }
  116.     if (hasPermissions("adv", "live_connections")) {
  117.         echo "                                    <li><a href=\"./user_activity.php\"><span class=\"mdi mdi-file-document\"> ";
  118.         echo $_["activity_logs"];
  119.         echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t";
  120.     }
  121.     if (hasPermissions("adv", "process_monitor")) {
  122.         echo "                                    <li><a href=\"./process_monitor.php?server=";
  123.         echo $_INFO["server_id"];
  124.         echo "\"><span class=\"mdi mdi-chart-line\"> ";
  125.         echo $_["process_monitor"];
  126.         echo "</span></a></li>\r\n\t\t\t\t\t\t\t\t\t";
  127.     }
  128.     echo "                                </ul>\r\n                            </li>\r\n\t\t\t\t\t\t    ";
  129. }
  130. if ($rPermissions["is_admin"]) {
  131.     if (hasPermissions("adv", "servers") || hasPermissions("adv", "add_server") || hasPermissions("adv", "live_connections") || hasPermissions("adv", "stream_tools") || hasPermissions("adv", "connection_logs")) {
  132.         echo "                            <li class=\"has-submenu\">\r\n                                <a href=\"#\"><i class=\"fas fa-server\"></i>";
  133.         echo $_["servers"];
  134.         echo " <div class=\"arrow-down\"></div></a>\r\n                                <ul class=\"submenu\">\r\n                                    ";
  135.         if (hasPermissions("adv", "add_server")) {
  136.             echo "                                    <li><a href=\"./server.php\"><span class=\"mdi mdi-upload-network\"> ";
  137.             echo $_["add_existing_lb"];
  138.             echo "</span></a></li><br>\r\n                                    <li><a href=\"./install_server.php\"><span class=\"mdi mdi-plus-network\"> ";
  139.             echo $_["install_load_balancer"];
  140.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t";
  141.         }
  142.         if (hasPermissions("adv", "servers")) {
  143.             echo "                                    <li><a href=\"./servers.php\"><span class=\"mdi mdi-server-network\"> ";
  144.             echo $_["manage_servers"];
  145.             echo "</span></a></li>\r\n\t\t\t\t\t\t\t\t\t";
  146.         }
  147.         echo "                                </ul>\r\n                            </li>\r\n\t\t\t\t\t\t\t";
  148.     }
  149.     if (hasPermissions("adv", "add_user") || hasPermissions("adv", "users") || hasPermissions("adv", "mass_edit_users") || hasPermissions("adv", "import_streams") || hasPermissions("adv", "streams") || hasPermissions("adv", "mass_edit_streams") || hasPermissions("adv", "manage_events") || hasPermissions("adv", "import_movies") || hasPermissions("adv", "movies") || hasPermissions("adv", "series") || hasPermissions("adv", "radio") || hasPermissions("adv", "mass_sedits_vod") || hasPermissions("adv", "mass_sedits") || hasPermissions("adv", "mass_edits_radio") || hasPermissions("adv", "stream_tools") || hasPermissions("adv", "fingerprint") || hasPermissions("adv", "mass_delete") || hasPermissions("adv", "mng_regusers") || hasPermissions("adv", "add_reguser") || hasPermissions("adv", "credits_log") || hasPermissions("adv", "panel_errors") || hasPermissions("adv", "client_request_log") || hasPermissions("adv", "reg_userlog") || hasPermissions("adv", "live_connections") || hasPermissions("adv", "connection_logs") || hasPermissions("adv", "stream_errors") || hasPermissions("adv", "manage_events") || hasPermissions("adv", "settings") || hasPermissions("adv", "database") || hasPermissions("adv", "block_ips") || hasPermissions("adv", "block_isps") || hasPermissions("adv", "block_uas") || hasPermissions("adv", "categories") || hasPermissions("adv", "channel_order") || hasPermissions("adv", "epg") || hasPermissions("adv", "folder_watch") || hasPermissions("adv", "mng_groups") || hasPermissions("adv", "mng_packages") || hasPermissions("adv", "process_monitor") || hasPermissions("adv", "rtmp") || hasPermissions("adv", "subresellers") || hasPermissions("adv", "tprofiles")) {
  150.         echo "\t\t\t\t\t\t\t<li class=\"has-submenu\">\r\n\t\t\t\t\t\t\t<a href=\"#\"> <i class=\"fas fa-cog text-warning\"></i>Management <div class=\"arrow-down\"></div></a>\r\n\t\t\t\t\t\t\t<ul class=\"submenu\">\r\n\t\t\t\t\t\t\t\t<li class=\"has-submenu\">\r\n                                <a href=\"#\"> <i class=\"mdi mdi-plus\"></i> Service Setup<div class=\"arrow-down\"></div></a><br>\r\n                                <ul class=\"submenu\">\r\n\t\t\t\t\t\t\t\t    ";
  151.         if (hasPermissions("adv", "mng_packages")) {
  152.             echo "                                    <li><a href=\"./packages.php\"><span class=\"mdi mdi-package\"> ";
  153.             echo $_["packages"];
  154.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t    ";
  155.         }
  156.         if (hasPermissions("adv", "categories")) {
  157.             echo "                                    <li><a href=\"./stream_categories.php\"><span class=\"mdi mdi-folder-open\"> ";
  158.             echo $_["categories"];
  159.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t    \t";
  160.         }
  161.         if (hasPermissions("adv", "mng_groups")) {
  162.             echo "                                    <li><a href=\"./groups.php\"><span class=\"mdi mdi-account-multiple\"> ";
  163.             echo $_["groups"];
  164.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t    ";
  165.         }
  166.         if (hasPermissions("adv", "epg")) {
  167.             echo "                                    <li><a href=\"./epgs.php\"><span class=\"mdi mdi-play-protected-content\"> ";
  168.             echo $_["epgs"];
  169.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t    ";
  170.         }
  171.         if (hasPermissions("adv", "channel_order")) {
  172.             echo "                                    <li><a href=\"./channel_order.php\"><span class=\"mdi mdi-reorder-horizontal\"> ";
  173.             echo $_["channel_order"];
  174.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t    ";
  175.         }
  176.         if (hasPermissions("adv", "folder_watch")) {
  177.             echo "                                    <li><a href=\"./watch.php\"><span class=\"mdi mdi-eye\"> ";
  178.             echo $_["folder_watch"];
  179.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t    ";
  180.         }
  181.         if (hasPermissions("adv", "subresellers")) {
  182.             echo "                                    <li><a href=\"./subresellers.php\"><span class=\"mdi mdi-account-multiple\"> ";
  183.             echo $_["subresellers"];
  184.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t    ";
  185.         }
  186.         if (hasPermissions("adv", "tprofiles")) {
  187.             echo "                                    <li><a href=\"./profiles.php\"><span class=\"mdi mdi-find-replace\"> ";
  188.             echo $_["transcode_profiles"];
  189.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t";
  190.         }
  191.         if (hasPermissions("adv", "live_connections")) {
  192.             echo "\t\t\t\t\t\t\t\t    <li><a href=\"./line_connections.php\"><span class=\"mdi mdi-playlist-check\"> Provider Con Check</span></a></li>\r\n\t\t\t\t\t\t\t\t\t";
  193.         }
  194.         echo "                                </ul>\r\n                            </li>\r\n\t\t\t\t\t\t\t<li class=\"has-submenu\">\r\n                                <a href=\"#\"> <i class=\"mdi mdi-plus\"></i> Security<div class=\"arrow-down\"></div></a><br>\r\n                                <ul class=\"submenu\">\r\n\t\t\t\t\t\t\t\t    ";
  195.         if (hasPermissions("adv", "login_flood")) {
  196.             echo "                                    <li><a href=\"./flood_login.php\"><span class=\"mdi mdi-account-alert\"> Logins Flood</span></a></li><br>\r\n                                    ";
  197.         }
  198.         if (hasPermissions("adv", "security_center")) {
  199.             echo "                                    <li><a href=\"./security_center.php\"><span class=\"mdi mdi-security\"> Security Center</span></a></li><br>\r\n\t\t\t\t\t\t\t\t    ";
  200.         }
  201.         if (hasPermissions("adv", "block_ips")) {
  202.             echo "                                    <li><a href=\"./ips.php\"><span class=\"mdi mdi-close-octagon\"> ";
  203.             echo $_["blocked_ips"];
  204.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t    ";
  205.         }
  206.         if (hasPermissions("adv", "block_isps")) {
  207.             echo "                                    <li><a href=\"./isps.php\"><span class=\"mdi mdi-close-network\"> ";
  208.             echo $_["blocked_isps"];
  209.             echo "</span></a></li><br>\r\n                                    ";
  210.         }
  211.         if (hasPermissions("adv", "rtmp")) {
  212.             echo "                                    <li><a href=\"./rtmp_ips.php\"><span class=\"mdi mdi-close\"> ";
  213.             echo $_["rtmp_ips"];
  214.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t    ";
  215.         }
  216.         if (hasPermissions("adv", "block_uas")) {
  217.             echo "                                    <li><a href=\"./useragents.php\"><span class=\"mdi mdi-close-box\"> ";
  218.             echo $_["blocked_uas"];
  219.             echo "</span></a></li>\r\n\t\t\t\t\t\t\t\t    ";
  220.         }
  221.         echo \r\n                                </ul>\r\n                            </li>\r\n\t\t\t\t\t\t\t<li class=\"has-submenu\">\r\n                                <a href=\"#\"> <i class=\"mdi mdi-plus\"></i> ";
  222.         echo $_["tools"];
  223.         echo "<div class=\"arrow-down\"></div></a><br>\r\n                                <ul class=\"submenu\">\r\n\t\t\t\t\t\t\t\t    ";
  224.         if (hasPermissions("adv", "mass_delete")) {
  225.             echo "                                    <li><a href=\"./mass_delete.php\"><span class=\"mdi mdi-delete\"> ";
  226.             echo $_["mass_delete"];
  227.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t";
  228.         }
  229.         if (hasPermissions("adv", "fingerprint")) {
  230.             echo "                                    <li><a href=\"./fingerprint.php\"><span class=\"mdi mdi-fingerprint\"> ";
  231.             echo $_["fingerprint"];
  232.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t";
  233.         }
  234.         if (hasPermissions("adv", "stream_tools")) {
  235.             echo "\t\t\t\t\t\t\t\t\t<li><a href=\"./stream_tools.php\"><span class=\"mdi mdi-wrench mdi-rotate-90\"> ";
  236.             echo $_["stream_tools"];
  237.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t<li><a href=\"./ip_change.php\"><span class=\"mdi mdi-ip\"> Ip Change</span></a></li> <br>\r\n\t\t\t\t\t\t\t\t\t<li><a href=\"./couvers_change.php\"><span class=\"mdi mdi-file-image\"> DNS Covers Change</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t<li><a href=\"./log_tools.php\"><span class=\"mdi mdi-cube\"> Quick Tools</span></a></li>\r\n\t\t\t\t\t\t\t\t\t";
  238.         }
  239.         echo "                                </ul>\r\n                            </li>\r\n\t\t\t\t\t\t\t<li class=\"has-submenu\">\r\n                                <a href=\"#\"> <i class=\"mdi mdi-plus\"></i> ";
  240.         echo $_["logs"];
  241.         echo "<div class=\"arrow-down\"></div></a>\r\n                                <ul class=\"submenu\">\r\n\t\t\t\t\t\t\t\t    ";
  242.         if (hasPermissions("adv", "reg_userlog")) {
  243.             echo "                                    <li><a href=\"./reg_user_logs.php\"><span class=\"mdi mdi-account-details\"> ";
  244.             echo $_["reseller_logs"];
  245.             echo "</span></a></li><br>\r\n                                    ";
  246.         }
  247.         if (hasPermissions("adv", "credits_log")) {
  248.             echo "                                    <li><a href=\"./credit_logs.php\"><span class=\"mdi mdi-credit-card-multiple\"> ";
  249.             echo $_["credit_logs"];
  250.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t";
  251.         }
  252.         if (hasPermissions("adv", "login_logs")) {
  253.             echo "                                    <li><a href=\"./login_logs.php\"><span class=\"mdi mdi-file-document\"> Login Logs</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t";
  254.         }
  255.         if (hasPermissions("adv", "client_request_log")) {
  256.             echo "                                    <li><a href=\"./client_logs.php\"><span class=\"mdi mdi-account-search\"> ";
  257.             echo $_["client_logs"];
  258.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t";
  259.         }
  260.         if (hasPermissions("adv", "stream_errors")) {
  261.             echo "                                    <li><a href=\"./stream_logs.php\"><span class=\"mdi mdi-file-document\"> ";
  262.             echo $_["stream_logs"];
  263.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t";
  264.         }
  265.         if (hasPermissions("adv", "connection_logs")) {
  266.             echo "                                    <li><a href=\"./user_ips.php\"><span class=\"mdi mdi-ip\"> ";
  267.             echo $_["line_ip_usage"];
  268.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t";
  269.         }
  270.         if (hasPermissions("adv", "panel_errors")) {
  271.             echo "                                    <li><a href=\"./panel_logs.php\"><span class=\"mdi mdi-file-document\"> ";
  272.             echo $_["panel_logs"];
  273.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t";
  274.         }
  275.         if (hasPermissions("adv", "manage_events")) {
  276.             echo "                                    <li><a href=\"./mag_events.php\"><span class=\"mdi mdi-message\"> ";
  277.             echo $_["mag_event_logs"];
  278.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t";
  279.         }
  280.         if (hasPermissions("adv", "mag_claims")) {
  281.             echo "                                    <li><a href=\"./mag_claims.php\"><span class=\"mdi mdi-message\"> Mag Claims</span></a></li>\r\n\t\t\t\t\t\t\t\t\t";
  282.         }
  283.         echo "                                </ul>\r\n                            </li>\r\n\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t\t";
  284.     }
  285.     if (hasPermissions("adv", "add_user") || hasPermissions("adv", "users") || hasPermissions("adv", "mass_edit_users") || hasPermissions("adv", "mng_regusers") || hasPermissions("adv", "add_reguser") || hasPermissions("adv", "credits_log") || hasPermissions("adv", "client_request_log") || hasPermissions("adv", "reg_userlog")) {
  286.         echo "\t\t\t\t\t\t\t<li class=\"has-submenu\">\r\n                                <a href=\"#\"> <i class=\"fas fa-users text-primary\"></i>";
  287.         echo $_["reg_users"];
  288.         echo " <div class=\"arrow-down\"></div></a>\r\n                                <ul class=\"submenu\">\r\n                                    ";
  289.         if (hasPermissions("adv", "add_reguser")) {
  290.             echo "                                    <li><a href=\"./reg_user.php\"><span class=\"mdi mdi-account-multiple-plus\"> ";
  291.             echo $_["add_registered_user"];
  292.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t";
  293.         }
  294.         if (hasPermissions("adv", "mng_regusers")) {
  295.             echo "                                    <li><a href=\"./reg_users.php\"><span class=\"mdi mdi-account-multiple\"> ";
  296.             echo $_["manage_registered_users"];
  297.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t";
  298.         }
  299.         if (hasPermissions("adv", "mng_regusers")) {
  300.             echo "                                    <li><a href=\"./reg_users_stats.php\"><span class=\"mdi mdi-account-multiple\"> Resellers Statistics</span></a></li>\r\n\t\t\t\t\t\t\t\t\t";
  301.         }
  302.         echo "                                </ul>\r\n                            </li>\r\n                            ";
  303.     }
  304.     if (hasPermissions("adv", "add_user") || hasPermissions("adv", "users") || hasPermissions("adv", "mass_edit_users") || hasPermissions("adv", "mng_regusers") || hasPermissions("adv", "add_reguser") || hasPermissions("adv", "credits_log") || hasPermissions("adv", "client_request_log") || hasPermissions("adv", "reg_userlog") || hasPermissions("adv", "add_mag") || hasPermissions("adv", "manage_mag") || hasPermissions("adv", "add_e2") || hasPermissions("adv", "manage_e2") || hasPermissions("adv", "manage_events")) {
  305.         echo "\t\t\t\t\t\t\t<li class=\"has-submenu\">\r\n                                <a href=\"#\"> <i class=\"fas fa-desktop text-pink\"></i>";
  306.         echo $_["users"];
  307.         echo " <div class=\"arrow-down\"></div></a>\r\n                                <ul class=\"submenu\">\r\n\t\t\t\t\t\t\t\t    <li class=\"has-submenu\">\r\n\t\t\t\t\t\t\t\t        <a href=\"#\"> <i class=\"mdi mdi-plus\"></i> User Lines<div class=\"arrow-down\"></div></a>\r\n\t\t\t\t\t\t\t\t        <ul class=\"submenu\">\r\n                                            ";
  308.         if (hasPermissions("adv", "add_user")) {
  309.             echo "                                            <li><a href=\"./user.php\"><span class=\"mdi mdi-account-plus\"></span> ";
  310.             echo $_["add_user"];
  311.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t        ";
  312.         }
  313.         if (hasPermissions("adv", "users")) {
  314.             echo "                                            <li><a href=\"./users.php\"><span class=\"mdi mdi-account-multiple\"> ";
  315.             echo $_["manage_users"];
  316.             echo "</span></a></li>\r\n\t\t\t\t\t\t\t\t\t        ";
  317.         }
  318.         echo "\t\t\t\t\t\t\t\t\t    </ul>\r\n\t\t\t\t\t\t\t\t    </li>\t\r\n\t\t\t\t\t\t\t\t<br>\r\n\t\t\t\t\t\t\t\t    <li class=\"has-submenu\">\r\n\t\t\t\t\t\t\t\t        <a href=\"#\"> <i class=\"mdi mdi-plus\"></i> Mag Devices<div class=\"arrow-down\"></div></a>\r\n                                        <ul class=\"submenu\">\r\n\t\t\t\t\t\t\t\t\t        ";
  319.         if (hasPermissions("adv", "add_mag")) {
  320.             echo "                                            <li><a href=\"./user.php?mag\"><span class=\"mdi mdi-account-plus\"> ";
  321.             echo $_["add_mag"];
  322.             echo "</span></a></li><br>\r\n                                            <!--<li><a href=\"./mag.php\">";
  323.             echo $_["link_mag"];
  324.             echo "</a></li>-->\r\n\t\t\t\t\t\t\t\t\t        ";
  325.         }
  326.         if (hasPermissions("adv", "manage_mag")) {
  327.             echo "                                            <li><a href=\"./mags.php\"><span class=\"mdi mdi-account-multiple\"> ";
  328.             echo $_["manage_mag_devices"];
  329.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t        ";
  330.         }
  331.         if (hasPermissions("adv", "add_mag")) {
  332.             echo "\t\t\t\t\t\t\t\t\t        <li><a href=\"./mag.php\"><span class=\"mdi mdi-account-switch\"> ";
  333.             echo $_["link_mag"];
  334.             echo "</span></a></li>\r\n\t\t\t\t\t\t\t\t\t         ";
  335.         }
  336.         echo "\t\t\t\t\t\t\t\t\t    </ul>\r\n\t\t\t\t\t\t\t     \t</li>\r\n\t\t\t\t\t\t\t\t<br>\r\n\t\t\t\t\t\t\t\t    <li class=\"has-submenu\">\r\n\t\t\t\t\t\t\t\t        <a href=\"#\"> <i class=\"mdi mdi-plus\"></i> Enigma Devices<div class=\"arrow-down\"></div></a>\r\n                                        <ul class=\"submenu\">\r\n                                            ";
  337.         if (hasPermissions("adv", "add_e2")) {
  338.             echo "                                            <li><a href=\"./user.php?e2\"><span class=\"mdi mdi-account-plus\"> ";
  339.             echo $_["add_enigma"];
  340.             echo "</span></a></li><br>\r\n                                            <!--<li><a href=\"./enigma.php\">";
  341.             echo $_["link_enigma"];
  342.             echo "</a></li>-->\r\n\t\t\t\t\t\t\t\t\t        ";
  343.         }
  344.         if (hasPermissions("adv", "manage_e2")) {
  345.             echo "                                            <li><a href=\"./enigmas.php\"><span class=\"mdi mdi-account-multiple\"> ";
  346.             echo $_["manage_enigma_devices"];
  347.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t        ";
  348.         }
  349.         if (hasPermissions("adv", "add_e2")) {
  350.             echo "                                            <li><a href=\"./enigma.php\"><span class=\"mdi mdi-account-switch\"> ";
  351.             echo $_["link_enigma"];
  352.             echo "</span></a></li>\r\n\t\t\t\t\t\t\t\t\t        ";
  353.         }
  354.         echo "                                        </ul>\r\n                                    </li>\t\r\n\t\t\t\t\t\t\t\t<br>\r\n\t\t\t\t\t\t\t\t    <li class=\"has-submenu\">\r\n\t\t\t\t\t\t\t\t\t    ";
  355.         if (hasPermissions("adv", "mass_edit_users")) {
  356.             echo "\t\t\t\t\t\t\t\t        <a href=\"./user_mass.php\"> <i class=\"mdi mdi-account-edit\"></i> ";
  357.             echo $_["mass_edit_users"];
  358.             echo "</a>\r\n                                        ";
  359.         }
  360.         echo "                                    </li>\r\n\t\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t\t</li>\t\r\n\t\t\t\t\t\t\t";
  361.     }
  362. } else {
  363.     echo "\t\t\t\t\t\t\t<li class=\"has-submenu\">\r\n                                <a href=\"#\"> <i class=\"fas fa-desktop text-pink\"></i>";
  364.     echo $_["users"];
  365.     echo " <div class=\"arrow-down\"></div></a>\r\n                                <ul class=\"submenu\">\r\n                                    ";
  366.     if (!$rAdminSettings["disable_trial"] && 0 < $rPermissions["total_allowed_gen_trials"] && $rPermissions["minimum_trial_credits"] <= $rUserInfo["credits"]) {
  367.         echo "                                    <li><a href=\"./user_reseller.php?trial\"><span class=\"mdi mdi-account-plus\"> ";
  368.         echo $_["generate_trial"];
  369.         echo "</span></a></li><br>\r\n                                    ";
  370.     }
  371.     echo "\t\t\t\t\t\t\t\t<li class=\"has-submenu\">\r\n\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\"> <i class=\"mdi mdi-plus mdi\"></i> User Lines<div class=\"arrow-down\"></div></a><br>\r\n\t\t\t\t\t\t\t\t\t\t\t<ul class=\"submenu\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<li><a href=\"./user_reseller.php\"><span class=\"mdi mdi-account-plus\"> ";
  372.     echo $_["add_user"];
  373.     echo "</span></a></li><br>\r\n                                                <li><a href=\"./users.php\"><span class=\"mdi mdi-account-multiple\"> ";
  374.     echo $_["manage_users"];
  375.     echo "</span></a></li>\r\n\t\t\t\t\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t\t\t\t\t</li> \r\n\t\t\t\t\t\t\t\t<li class=\"has-submenu\">\r\n\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\"> <i class=\"mdi mdi-plus mdi\"></i> MAG Devices<div class=\"arrow-down\"></div></a><br>\r\n\t\t\t\t\t\t\t\t\t\t\t<ul class=\"submenu\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<li><a href=\"./user_reseller.php?mag\"><span class=\"mdi mdi-account-plus\"> ";
  376.     echo $_["add_mag"];
  377.     echo "</span></a></li><br>\r\n                                                <li><a href=\"./mags.php\"><span class=\"mdi mdi-account-multiple\"> ";
  378.     echo $_["manage_mag_devices"];
  379.     echo "</span></a></li>\r\n\t\t\t\t\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t\t\t\t\t</li> \r\n\t\t\t\t\t\t\t\t<li class=\"has-submenu\">\r\n\t\t\t\t\t\t\t\t\t\t\t<a href=\"#\"> <i class=\"mdi mdi-plus mdi\"></i> Enigma Devices<div class=\"arrow-down\"></div></a>\r\n\t\t\t\t\t\t\t\t\t\t\t<ul class=\"submenu\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<li><a href=\"./user_reseller.php?e2\"><span class=\"mdi mdi-account-plus\"></span> ";
  380.     echo $_["add_enigma"];
  381.     echo "</a></li><br>\r\n                                                <li><a href=\"./enigmas.php\"><span class=\"mdi mdi-account-multiple\"> ";
  382.     echo $_["manage_enigma_devices"];
  383.     echo "</a></li>\r\n\t\t\t\t\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t\t\t\t\t</li> \r\n\t\t\t\t\t\t\t\t\t \r\n                                </ul>\r\n\t\t\t\t\t\t\t</li>\t\r\n\t\t\t\t\t\t\t";
  384. }
  385. if ($rPermissions["is_reseller"] && $rPermissions["create_sub_resellers"]) {
  386.     echo "                            <li class=\"has-submenu\">\r\n                                <a href=\"#\"> <i class=\"fas fa-users text-primary\"></i>";
  387.     echo $_["reg_users"];
  388.     echo " <div class=\"arrow-down\"></div></a>\r\n                                <ul class=\"submenu\">\r\n                                    ";
  389.     if ($rPermissions["is_admin"]) {
  390.         echo "                                    <li><a href=\"./reg_user.php\"><span class=\"mdi mdi-account-multiple-plus\"> ";
  391.         echo $_["add_subreseller"];
  392.         echo "</span></a></li><br>\r\n                                    ";
  393.     } else {
  394.         echo "                                    <li><a href=\"./subreseller.php\"><span class=\"mdi mdi-account-multiple-plus\"> ";
  395.         echo $_["add_subreseller"];
  396.         echo "</span></a></li><br>\r\n                                    ";
  397.     }
  398.     echo "                                    <li><a href=\"./reg_users.php\"><span class=\"mdi mdi-account-multiple\"> ";
  399.     echo $_["manage_subresellers"];
  400.     echo "</span></a></li>\r\n                                </ul>\r\n                            </li>\r\n                            ";
  401. }
  402. if ($rPermissions["is_admin"]) {
  403.     if (hasPermissions("adv", "add_movie") || hasPermissions("adv", "import_movies") || hasPermissions("adv", "movies") || hasPermissions("adv", "series") || hasPermissions("adv", "add_series") || hasPermissions("adv", "radio") || hasPermissions("adv", "add_radio") || hasPermissions("adv", "mass_sedits_vod") || hasPermissions("adv", "mass_sedits") || hasPermissions("adv", "mass_edits_radio") || hasPermissions("adv", "add_stream") || hasPermissions("adv", "import_streams") || hasPermissions("adv", "create_channel") || hasPermissions("adv", "streams") || hasPermissions("adv", "mass_edit_streams") || hasPermissions("adv", "stream_tools") || hasPermissions("adv", "stream_errors") || hasPermissions("adv", "fingerprint")) {
  404.         echo "                            <li class=\"has-submenu\">\r\n                                <a href=\"#\"> <i class=\"fas fa-play text-info\"></i>Content <div class=\"arrow-down\"></div></a>\r\n\t\t\t\t\t\t\t\t<ul class=\"submenu\">\r\n\t\t\t\t\t\t\t\t\t<li class=\"has-submenu\">  \r\n\t\t\t\t\t\t\t\t\t\t<a href=\"#\"> <i class=\"mdi mdi-plus\"></i> Streams<div class=\"arrow-down\"></div></a><br>\t\r\n\t\t\t\t\t\t\t\t\t\t<ul class=\"submenu\">\r\n\t\t\t\t\t\t\t\t\t\t\t";
  405.         if (hasPermissions("adv", "add_stream")) {
  406.             echo "\t\t\t\t\t\t\t\t\t\t\t<li><a href=\"./stream.php\"><span class=\"mdi mdi-plus\"> ";
  407.             echo $_["add_stream"];
  408.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t\t\t";
  409.         }
  410.         if (hasPermissions("adv", "streams")) {
  411.             echo "\t\t\t\t\t\t\t\t\t\t\t<li><a href=\"./streams.php\"><span class=\"mdi mdi-play-circle-outline\"> ";
  412.             echo $_["manage_streams"];
  413.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t\t\t";
  414.         }
  415.         if (hasPermissions("adv", "mass_edit_streams")) {
  416.             echo "                                            <li><a href=\"./stream_mass.php\"><span class=\"mdi mdi-border-color\"> ";
  417.             echo $_["mass_edit_streams"];
  418.             echo "</span></a></li><br> \r\n\t\t\t\t\t\t\t\t\t        ";
  419.         }
  420.         if (hasPermissions("adv", "import_streams")) {
  421.             echo "\t\t\t\t\t\t\t\t\t\t\t<li><a href=\"./stream.php?import\"><span class=\"mdi mdi-file-plus\"> ";
  422.             echo $_["import_streams"];
  423.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t\t\t";
  424.         }
  425.         if (hasPermissions("adv", "streams")) {
  426.             echo "\t\t\t\t\t\t\t\t\t\t\t<li><a href=\"./stream_stats.php\"><span class=\"mdi mdi-chart-bar-stacked\"> Streams Statistics</span></a></li>\r\n\t\t\t\t\t\t\t\t\t\t\t";
  427.         }
  428.         echo "\t\t\t\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t\t\t\t</li> \r\n\t\t\t\t\t\t\t\t\t<li class=\"has-submenu\">\r\n\t\t\t\t\t\t\t\t\t\t<a href=\"#\"> <i class=\"mdi mdi-plus\"></i> Created Channels<div class=\"arrow-down\"></div></a><br>\r\n\t\t\t\t\t\t\t\t\t\t<ul class=\"submenu\">\r\n\t\t\t\t\t\t\t\t\t\t\t";
  429.         if (hasPermissions("adv", "create_channel")) {
  430.             echo "                                            <li><a href=\"./created_channel.php\"><span class=\"mdi mdi-plus\"> ";
  431.             echo $_["create_channel"];
  432.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t        ";
  433.         }
  434.         echo "\t\t\t\t\t\t\t\t\t\t\t<li><a href=\"./streams.php?filter=8\"><span class=\"mdi mdi-play-circle-outline\"> Manage Channels</span></a></li>\r\n\t\t\t\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t\t\t\t</li> \r\n\t\t\t\t\t\t\t\t\t<li class=\"has-submenu\">  \r\n\t\t\t\t\t\t\t\t\t\t<a href=\"#\"> <i class=\"mdi mdi-plus\"></i> Movies<div class=\"arrow-down\"></div></a><br>\t\r\n\t\t\t\t\t\t\t\t\t\t<ul class=\"submenu\">\r\n\t\t\t\t\t\t\t\t\t\t\t";
  435.         if (hasPermissions("adv", "add_movie")) {
  436.             echo "                                            <li><a href=\"./movie.php\"><span class=\"mdi mdi-plus\"> ";
  437.             echo $_["add_movie"];
  438.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t\t\t";
  439.         }
  440.         if (hasPermissions("adv", "movies")) {
  441.             echo "                                            <li><a href=\"./movies.php\"><span class=\"mdi mdi-movie\"> ";
  442.             echo $_["manage_movies"];
  443.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t\t\t";
  444.         }
  445.         if (hasPermissions("adv", "mass_sedits_vod")) {
  446.             echo "                                            <li><a href=\"./movie_mass.php\"><span class=\"mdi mdi-border-color\"> ";
  447.             echo $_["mass_edit_movies"];
  448.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t        ";
  449.         }
  450.         if (hasPermissions("adv", "import_movies")) {
  451.             echo "                                            <li><a href=\"./movie.php?import\"><span class=\"mdi mdi-file-plus\"> ";
  452.             echo $_["import_movies"];
  453.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t        ";
  454.         }
  455.         if (hasPermissions("adv", "import_movies")) {
  456.             echo "                                            <li><a href=\"./vod_import.php\"><span class=\"mdi mdi-file-plus\"> Import Movies M3U</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t\t\t";
  457.         }
  458.         if (hasPermissions("adv", "movies")) {
  459.             echo "                                            <li><a href=\"./duplicate_movies.php\"><span class=\"mdi mdi-folder-search-outline\"> Duplicate Movies</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t\t\t";
  460.         }
  461.         if (hasPermissions("adv", "movies")) {
  462.             echo "                                            <li><a href=\"./movie_stats.php\"><span class=\"mdi mdi-chart-bar-stacked\"> Movies Statistics</span></a></li>\r\n\t\t\t\t\t\t\t\t\t        ";
  463.         }
  464.         echo "\t\t\t\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t\t\t\t</li> \r\n\t\t\t\t\t\t\t\t\t<li class=\"has-submenu\">  \r\n\t\t\t\t\t\t\t\t\t\t<a href=\"#\"> <i class=\"mdi mdi-plus\"></i> Series<div class=\"arrow-down\"></div></a><br>\t\r\n\t\t\t\t\t\t\t\t\t\t<ul class=\"submenu\">\r\n\t\t\t\t\t\t\t\t\t\t\t";
  465.         if (hasPermissions("adv", "add_series")) {
  466.             echo "                                            <li><a href=\"./serie.php\"><span class=\"mdi mdi-plus\"> ";
  467.             echo $_["add_series"];
  468.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t\t\t";
  469.         }
  470.         if (hasPermissions("adv", "series")) {
  471.             echo "                                            <li><a href=\"./series.php\"><span class=\"mdi mdi-youtube-tv\"> ";
  472.             echo $_["manage_series"];
  473.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t\t\t";
  474.         }
  475.         if (hasPermissions("adv", "episodes")) {
  476.             echo "                                            <li><a href=\"./episodes.php\"><span class=\"mdi mdi-youtube-tv\"> ";
  477.             echo $_["manage_episodes"];
  478.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t\t\t";
  479.         }
  480.         if (hasPermissions("adv", "mass_sedits")) {
  481.             echo "                                            <li><a href=\"./series_mass.php\"><span class=\"mdi mdi-border-color\"> ";
  482.             echo $_["mass_edit_series"];
  483.             echo "</span></a></li><br>\r\n                                            <li><a href=\"./episodes_mass.php\"><span class=\"mdi mdi-border-color\"> ";
  484.             echo $_["mass_edit_episodes"];
  485.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t        ";
  486.         }
  487.         if (hasPermissions("adv", "add_series")) {
  488.             echo "                                            <li><a href=\"./episode_import.php\"><span class=\"mdi mdi-file-plus\"> Import Episodes M3U</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t\t\t";
  489.         }
  490.         if (hasPermissions("adv", "series")) {
  491.             echo "                                            <li><a href=\"./serie_stats.php\"><span class=\"mdi mdi-chart-bar-stacked\"> Series Statistics</span></a></li>\r\n\t\t\t\t\t\t\t\t\t\t\t";
  492.         }
  493.         echo "\t\t\t\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t\t\t\t</li> \r\n\t\t\t\t\t\t\t\t\t<li class=\"has-submenu\">  \r\n\t\t\t\t\t\t\t\t\t\t<a href=\"#\"> <i class=\"mdi mdi-plus\"></i> Stations<div class=\"arrow-down\"></div></a>\t\r\n\t\t\t\t\t\t\t\t\t\t<ul class=\"submenu\">\r\n\t\t\t\t\t\t\t\t\t\t\t";
  494.         if (hasPermissions("adv", "add_radio")) {
  495.             echo "                                            <li><a href=\"./radio.php\"><span class=\"mdi mdi-plus\"> ";
  496.             echo $_["add_station"];
  497.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t\t\t";
  498.         }
  499.         if (hasPermissions("adv", "radio")) {
  500.             echo "                                            <li><a href=\"./radios.php\"><span class=\"mdi mdi-radio\"> ";
  501.             echo $_["manage_stations"];
  502.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t\t\t";
  503.         }
  504.         if (hasPermissions("adv", "mass_edit_radio")) {
  505.             echo "                                            <li><a href=\"./radio_mass.php\"><span class=\"mdi mdi-border-color\"> ";
  506.             echo $_["mass_edit_stations"];
  507.             echo "</span></a></li>\r\n\t\t\t\t\t\t\t\t\t        ";
  508.         }
  509.         echo "\t\t\t\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t\t\t\t</li> \r\n                                </ul>\r\n                            </li>\r\n\t\t\t\t\t\t\t";
  510.     }
  511.     if (hasPermissions("adv", "add_bouquet") || hasPermissions("adv", "bouquets")) {
  512.         echo "                            <li class=\"has-submenu\">\r\n                                <a href=\"#\"> <i class=\"fas fa-spa text-success\"></i>";
  513.         echo $_["bouquets"];
  514.         echo " <div class=\"arrow-down\"></div></a>\r\n                                <ul class=\"submenu\">\r\n\t\t\t\t\t\t\t\t\t";
  515.         if (hasPermissions("adv", "add_bouquet")) {
  516.             echo "                                    <li><a href=\"./bouquet.php\"><span class=\"mdi mdi-plus\"> ";
  517.             echo $_["add_bouquet"];
  518.             echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t";
  519.         }
  520.         if (hasPermissions("adv", "bouquets")) {
  521.             echo "                                    <li><a href=\"./bouquets.php\"><span class=\"mdi mdi-flower-tulip\"> ";
  522.             echo $_["manage_bouquets"];
  523.             echo "</span></a></li><br>\r\n                                    ";
  524.         }
  525.         if (hasPermissions("adv", "edit_bouquet")) {
  526.             echo "                                    <li><a href=\"./bouquet_sort.php\"><span class=\"mdi mdi-reorder-horizontal\"> ";
  527.             echo $_["order_bouquets"];
  528.             echo "</span></a></li>\r\n\t\t\t\t\t\t\t\t\t";
  529.         }
  530.         echo "                                </ul>\r\n                            </li>\r\n                            ";
  531.     }
  532. }
  533. if ($rPermissions["is_reseller"] && $rPermissions["reset_stb_data"]) {
  534.     echo "                            <li class=\"has-submenu\">\r\n                                <a href=\"#\"> <i class=\"fas fa-play text-info\"></i>";
  535.     echo $_["content"];
  536.     echo " <div class=\"arrow-down\"></div></a>\r\n                                <ul class=\"submenu\">\r\n                                    <li><a href=\"./streams.php\">";
  537.     echo $_["streams"];
  538.     echo "</a></li><br>\r\n                                    <li><a href=\"./movies.php\">";
  539.     echo $_["movies"];
  540.     echo "</a></li><br>\r\n                                    <li><a href=\"./series.php\">";
  541.     echo $_["series"];
  542.     echo "</a></li><br>\r\n                                    <li><a href=\"./episodes.php\">";
  543.     echo $_["episodes"];
  544.     echo "</a></li><br>\r\n                                    <li><a href=\"./radios.php\">";
  545.     echo $_["stations"];
  546.     echo "</a></li>\r\n                                </ul>\r\n                            </li>\r\n                            \r\n\t\t\t\t\t\t\t";
  547. }
  548. if ($rPermissions["is_reseller"]) {
  549.     echo "                            <li class=\"has-submenu\">\r\n                                <a href=\"#\"> <i class=\"fas fa-envelope text-info\"></i>";
  550.     echo $_["support"];
  551.     echo " <div class=\"arrow-down\"></div></a>\r\n                                <ul class=\"submenu\">\r\n                                    <li><a href=\"./ticket.php\"><span class=\"mdi mdi-message-text\"> ";
  552.     echo $_["create_ticket"];
  553.     echo "</span></a></li><br>\r\n                                    <li><a href=\"./tickets.php\"><span class=\"mdi mdi-message-settings-variant\"> ";
  554.     echo $_["manage_tickets"];
  555.     echo "</span></a></li><br>\r\n\t\t\t\t\t\t\t\t\t";
  556.     if ($rPermissions["allow_import"]) {
  557.         echo "                                    <li><a href=\"./resellersmarters.php\"><span class=\"mdi mdi-message-settings-variant\"> Reseller API Key</span></a></li>\r\n\t\t\t\t\t\t\t\t\t";
  558.     }
  559.     echo "                                </ul>\r\n                            </li>\r\n\t\t\t\t\t\t\t";
  560. }
  561.  
  562.  
  563. if ($rPermissions["is_reseller"] && $rAdminSettings["active_mannuals"]) {
  564.     echo "                            <li>\r\n                                <a href=\"./reseller_mannuals.php\"> <i class=\"fas fa-folder-open text-purple\"></i>";
  565.     echo $_["mannuals"];
  566.     echo "</a>\r\n                            </li>\r\n                            ";
  567. }
  568. echo "                        </ul>\r\n                        <!-- End navigation menu -->\r\n                        <div class=\"clearfix\"></div>\r\n                    </div>\r\n                    <!-- end #navigation -->\r\n                </div>\r\n                <!-- end container -->\r\n            </div>\r\n            <!-- end navbar-custom -->\r\n        </header>\r\n        <!-- End Navigation Bar-->\r\n\t\t\r\n<button onclick=\"topFunction()\" id=\"myBtn\" title=\"Go to top\"><i class=\"mdi mdi-arrow-up-thick\"></i></button>\r\n\t\t\r\n<script>\r\n//Get the button\r\nvar mybutton = document.getElementById(\"myBtn\");\r\n\r\n// When the user scrolls down 20px from the top of the document, show the button\r\nwindow.onscroll = function() {scrollFunction()};\r\n\r\nfunction scrollFunction() {\r\n  if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {\r\n    mybutton.style.display = \"block\";\r\n  } else {\r\n    mybutton.style.display = \"none\";\r\n  }\r\n}\r\n\r\n// When the user clicks on the button, scroll to the top of the document\r\nfunction topFunction() {\r\n  document.body.scrollTop = 0;\r\n  document.documentElement.scrollTop = 0;\r\n}\r\n</script>";
  569.  
  570. ?>
File Description
  • test1213
  • PHP Code
  • 04 May-2023
  • 50.72 Kb
You can Share it: