Advertisement
Guest User

semiRocket

a guest
Nov 27th, 2009
116
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- default2.php 2007-03-14 16:58:58.000000000 +0100
  2. +++ default.php 2009-11-27 08:30:12.000000000 +0100
  3. @@ -10,9 +10,13 @@
  4. Additional Author: Michael Schieben - michael@twoantennas.com (Adaption to Vanilla 1.0)
  5.  
  6. */
  7. -$Context->Dictionary["MenuOptions"] = "Menu Options";
  8. -$Context->Dictionary["HideWhosOnline"] = "Hide the \"Who's Online\" panel";
  9. -$Context->Dictionary["Phantom"] = "Hide my username from the \"Who's Online\" panel";
  10. +$Context->SetDefinition("MenuOptions", "Menu Options");
  11. +$Context->SetDefinition("HideWhosOnline", "Hide the \"Who's Online\" panel");
  12. +$Context->SetDefinition("Phantom", "Hide my username from the \"Who's Online\" panel");
  13. +$Context->SetDefinition("WhoIsOnline", "Who's Online");
  14. +$Context->SetDefinition("PhantomUsers", "phantom user");
  15. +$Context->SetDefinition("Guest", "guest");
  16. +$Context->SetDefinition("Multitude", "s");
  17.  
  18.  
  19. class WhosOnline {
  20. @@ -148,7 +152,7 @@
  21.  
  22. if (in_array($Context->SelfUrl, array("account.php", "categories.php", "comments.php", "index.php", "post.php", "search.php", "settings.php"))
  23. && $Context->Session->UserID > 0 && !$Context->Session->User->Preference("HideWhosOnline")) {
  24. - $ListName = $Context->GetDefinition("Who's Online");
  25. + $ListName = $Context->GetDefinition("WhoIsOnline");
  26. $Panel->AddList($ListName);
  27. $online_list = $WhosOnline->GetWhosOnline();
  28. $guest_count = $WhosOnline->GetGuestCount();
  29. @@ -164,15 +168,15 @@
  30. }
  31. }
  32. if ($phantom_count > 0) {
  33. - $phantom_string = "$phantom_count phantom user";
  34. + $phantom_string = "$phantom_count " . $Context->GetDefinition("PhantomUsers");
  35. if ($phantom_count > 1)
  36. - $phantom_string .= "s";
  37. + $phantom_string .= $Context->GetDefinition("Multitude");
  38. $Panel->AddListItem($ListName,'','',$phantom_string);
  39. }
  40. if ($guest_count > 0) {
  41. - $guest_string = "$guest_count guest";
  42. + $guest_string = "$guest_count " . $Context->GetDefinition("Guest");
  43. if ($guest_count > 1)
  44. - $guest_string .= "s";
  45. + $guest_string .= $Context->GetDefinition("Multitude");
  46. $Panel->AddListItem($ListName,'','',$guest_string);
  47. }
  48. } else {
  49.  
Advertisement
RAW Paste Data Copied
Advertisement