Advertisement
Adiemus

Untitled

Oct 7th, 2015
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. <?php
  2. require_once('../SSI.php');
  3. global $context;
  4.  
  5. /*if ($context['user']['is_guest']) {*/
  6. if ($context["user"]["id"]<1) {
  7. $userchatname = 'chatz-Guest_' . rand(1,10000);
  8. } else {
  9. $userchatname = $context['user']['name'];
  10. }
  11. $userchatname = str_replace(" ","_",$userchatname);
  12. $userchatname = str_replace(".","_",$userchatname);
  13.  
  14. ?>
  15.  
  16. //config.js file below//
  17.  
  18. var params = {};
  19.  
  20. /* Change these parameters */
  21. params.host = "irc.trifecta-chat.net";
  22. params.port = 6667;
  23. params.policyPort = 3843;
  24. params.host = "irc.trifecta-chat.net";
  25. params.accessKey = "";
  26. params.rtmfp = "rtmfp://p2p.rtmfp.net/5aca807e96d887f8316d8eae-82c441b30f7b";
  27. params.webcam = true;
  28.  
  29. /* Language for the user interface. Currently available translations: ar, bd, bg, br, cz, da, de, el, en, es, et, fi, fr, hu, hr, id, it, ja, nl, pl, pt, ro, ru, sl, sq, sr_cyr, sr_lat, sv, th, tr, uk */
  30. params.language = "en";
  31.  
  32. /* Relative or absolute URL to a lightIRC CSS file.
  33. * The use of styles only works when you upload lightIRC to your webspace.
  34. * Example: css/lightblue.css
  35. */
  36. params.styleURL = "css/";
  37.  
  38. /* Nick to be used. A % character will be replaced by a random number */
  39. params.nick = "<?php echo $userchatname; ?>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement