Frontend elements to SugoiMusic, including CSS and public/private headers.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

publicheader.php 1.7 KiB

pirms 8 gadiem
pirms 8 gadiem
pirms 8 gadiem
pirms 8 gadiem
pirms 8 gadiem
pirms 8 gadiem
pirms 8 gadiem
pirms 8 gadiem
12345678910111213141516171819202122232425262728293031323334353637383940
  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. <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 name="bg_data" content="<?=$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 class="centered">
  39. <a href="index.php"><div id="logo"></div></a>
  40. <?