Frontend elements to SugoiMusic, including CSS and public/private headers.
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

publicheader.php 1.8 KiB

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