BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

site-info.twig 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <style type="text/css">
  2. div#phpinfo {color: #222; font-family: sans-serif; display: none;}
  3. div#phpinfo pre {margin: 0; font-family: monospace;}
  4. div#phpinfo a:link {color: #009; text-decoration: none; background-color: #fff;}
  5. div#phpinfo a:hover {text-decoration: underline;}
  6. div#phpinfo table {border-collapse: collapse; border: 0; width: 934px; box-shadow: 1px 2px 3px #ccc;}
  7. div#phpinfo .center {text-align: center;}
  8. div#phpinfo .center table {margin: 1em auto; text-align: left;}
  9. div#phpinfo .center th {text-align: center !important;}
  10. div#phpinfo td, th {border: 1px solid #666; font-size: 75%; vertical-align: baseline; padding: 4px 5px;}
  11. div#phpinfo h1 {font-size: 150%;}
  12. div#phpinfo h2 {font-size: 125%;}
  13. div#phpinfo .p {text-align: left;}
  14. div#phpinfo .e {background-color: #ccf; width: 300px; font-weight: bold;}
  15. div#phpinfo .h {background-color: #99c; font-weight: bold;}
  16. div#phpinfo .v {background-color: #ddd; max-width: 300px; overflow-x: auto; word-wrap: break-word;}
  17. div#phpinfo .v i {color: #999;}
  18. div#phpinfo img {float: right; border: 0;}
  19. div#phpinfo hr {width: 934px; background-color: #ccc; border: 0; height: 1px;}
  20. </style>
  21. <div class="linkbox">
  22. <a href="tools.php?action=site_info&amp;mode=userrank" class="brackets">User ranks</a>
  23. </div>
  24. <div class="thin">
  25. <h3>OS</h3>
  26. <div class="box pad">
  27. <span style="width: 70px; display: inline-block">Uptime:</span> {{ uptime.uptime|raw }} <br />
  28. <span style="width: 70px; display: inline-block">Idle time:</span> {{ uptime.idletime|raw }} <br /><br />
  29. <span style="width: 100px; display: inline-block">User:</span> {{ uid }} <br />
  30. <span style="width: 100px; display: inline-block">Group:</span> {{ euid }} <br />
  31. <span style="width: 100px; display: inline-block">Effective User:</span> {{ euid }} <br />
  32. <span style="width: 100px; display: inline-block">Effective Group:</span> {{ euid }} <br />
  33. <br /><tt>openssl_random_pseudo_bytes()</tt>:&nbsp;
  34. {%- if openssl_strong -%}
  35. <span style="color:lime;">Strong</span>
  36. {%- else -%}
  37. <span style="color:orangered;"><b>Weak/broken</span>
  38. {%- endif -%}
  39. </div>
  40. <h3>Timestamps</h3>
  41. <div class="box pad">
  42. <span style="width: 50px; display: inline-block">PHP:</span> {{ timestamp_php }}<br />
  43. <span style="width: 50px; display: inline-block">DB:</span> {{ timestamp_db }}
  44. </div>
  45. <h3>PHP</h3>
  46. <div class="box pad">
  47. PHP Version: {{ php_version }} <br />
  48. <a onclick="toggle_display('phpinfo')" href='javascript:void(0)'>Toggle PHP Info</a><br />
  49. <div id="phpinfo">{{ phpinfo|raw }}</div>
  50. </div>
  51. <h3>Git</h3>
  52. <div class="box pad">
  53. <span style="width: 150px; display: inline-block;">Branch:</span> {{ git_branch }}<br />
  54. <span style="width: 150px; display: inline-block;">Local Hash:</span> {{ git_hash }}<br />
  55. <span style="width: 150px; display: inline-block;">Remote Hash:</span> {{ git_hash_remote }}
  56. </div>
  57. <h3>Tables lacking a primary key</h3>
  58. <div class="box pad">
  59. {% if no_pk is empty %}
  60. <p>All tables have a primary key defined</p>
  61. {% else %}
  62. <ul class="stats nobullet">
  63. {% for table in no_pk %}
  64. <li><a href="/tools.php?action=database_specifics&table={{ table }}">{{ table }}</a></li>
  65. {% endfor %}
  66. </ul>
  67. {% endif %}
  68. </div>
  69. <h3>Composer</h3>
  70. <div class="box pad">
  71. Composer Version: {{ composer_version }}<br />
  72. <table>
  73. <tr class="colhead">
  74. <td>Package</td>
  75. <td>Requirement</td>
  76. <td>Installed</td>
  77. </tr>
  78. {% for p in package %}
  79. <tr>
  80. <td>{{ p.name }}</td>
  81. <td>{{ p.require }}</td>
  82. <td>{{ p.installed }}</td>
  83. </tr>
  84. {% endfor %}
  85. </table>
  86. </div>
  87. <h3>Phinx</h3>
  88. <div class="box pad">
  89. {{ phinx.version }}<br />
  90. <table>
  91. <tr class='colhead'>
  92. <td>Status</td>
  93. <td>Migration ID</td>
  94. <td>Migration Name</td>
  95. </tr>
  96. {% for m in phinx.migration %}
  97. <tr>
  98. <td>{{ m.migration_status }}</td>
  99. <td>{{ m.migration_id }}</td>
  100. <td>{{ m.migration_name }}</td>
  101. </tr>
  102. {% endfor %}
  103. </table>
  104. </div>
  105. </div>