Frontend elements to SugoiMusic, including CSS and public/private headers.
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.

publicheader.php 2.0 KiB

8 vuotta sitten
8 vuotta sitten
8 vuotta sitten
8 vuotta sitten
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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'];
  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. <style> #content { background-image: url(<? echo("'/misc/bg/" . $img[rand(0,count($img)-1)] . "'"); ?>); }</style>
  27. </head>
  28. <body>
  29. <div id="head">
  30. </div>
  31. <div id="content">
  32. <table class="layout" id="maincontent">
  33. <tr>
  34. <td align="center" valign="middle">
  35. <div id="logo">
  36. <ul>
  37. <li><a href="index.php">Home</a></li>
  38. <li><a href="login.php">Log in</a></li>
  39. <? if (OPEN_REGISTRATION) { ?>
  40. <li><a href="register.php">Register</a></li>
  41. <? } ?>
  42. </ul>
  43. </div>
  44. <?