Frontend elements to SugoiMusic, including CSS and public/private headers.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

42 wiersze
1.8 KiB

  1. <?
  2. global $LoggedUser;
  3. define('FOOTER_FILE',SERVER_ROOT.'/design/publicfooter.php');
  4. ?>
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <title><?=display_str($PageTitle)?></title>
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  10. <meta name="theme-color" content="#461640">
  11. <link rel="shortcut icon" href="favicon.ico?v=<?=md5_file('favicon.ico');?>" />
  12. <link href="<?=STATIC_SERVER ?>styles/public/style.css?v=<?=filemtime(SERVER_ROOT.'/static/styles/public/style.css')?>" rel="stylesheet" type="text/css" />
  13. <?
  14. $Scripts = ['jquery', 'script_start', 'ajax.class', 'cookie.class', 'storage.class', 'global', 'public'];
  15. foreach($Scripts as $Script) {
  16. if (($ScriptStats = G::$Cache->get_value("script_stats_$Script")) === false || $ScriptStats['mtime'] != filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js")) {
  17. $ScriptStats['mtime'] = filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js");
  18. $ScriptStats['hash'] = base64_encode(hash_file(INTEGRITY_ALGO, SERVER_ROOT.STATIC_SERVER."functions/$Script.js", true));
  19. $ScriptStats['algo'] = INTEGRITY_ALGO;
  20. G::$Cache->cache_value("script_stats_$Script", $ScriptStats);
  21. }
  22. ?>
  23. <script src="<?=STATIC_SERVER."functions/$Script.js?v=$ScriptStats[mtime]"?>" type="text/javascript" integrity="<?="$ScriptStats[algo]-$ScriptStats[hash]"?>"></script>
  24. <?
  25. }
  26. $img = array_diff(scandir(SERVER_ROOT.'/misc/bg', 1), array('.', '..')); ?>
  27. <meta name="bg_data" content="<?=$img[rand(0,count($img)-1)]?>">
  28. </head>
  29. <body>
  30. <div id="head"><span>
  31. <a href="login.php">Log in</a>
  32. <? if (OPEN_REGISTRATION) { ?>
  33. | <a href="register.php">Register</a>
  34. <? } ?>
  35. </span></div>
  36. <div id="content">
  37. <table class="layout" id="maincontent">
  38. <tr>
  39. <td class="centered">
  40. <a href="index.php"><div id="logo"></div></a>
  41. <?