Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.19 KB | None | 0 0
  1. //start joinmsg.php
  2.  
  3. <?php
  4. include("../common_mysql.php");
  5. if (isset($_GET["steamid"])){
  6.     $q = mysql_query("SELECT * FROM player_joinsounds WHERE steamid='" . mysql_real_escape_string($_GET["steamid"]) ."' LIMIT 1");
  7.     if ($r = mysql_fetch_assoc($q)){
  8.         print($r["msg"]);
  9.     }
  10. }
  11. ?>
  12.  
  13. //end joinmsg.php
  14. //start joinsound.php
  15.  
  16. <?php
  17. include("../common_mysql.php");
  18. if (isset($_GET["steamid"])){
  19.     $q = mysql_query("SELECT * FROM player_joinsounds WHERE steamid='" . mysql_real_escape_string($_GET["steamid"]) ."' LIMIT 1");
  20.     if ($r = mysql_fetch_assoc($q)){
  21.         $sound = "sounds/".$r["sound"];
  22.     }
  23. }
  24. ?>
  25. <html>
  26.     <head>
  27.         <script type="text/javascript" src="audio-player.js"></script>
  28.         <script type="text/javascript">
  29.             AudioPlayer.setup("player.swf", {
  30.             width: 290,
  31.             animation: "no",
  32.             autostart: "yes",
  33.             remaining: "yes",
  34.             initialvolume: 100
  35.             });
  36.         </script>
  37.     </head>
  38.     <body>
  39.         <p id="audioplayer_1">Songs</p>
  40.         <script type="text/javascript">
  41.             AudioPlayer.embed("audioplayer_1", {soundFile: "<?php echo $sound;?>"});
  42.         </script>
  43.     </body>
  44. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement