util.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?php
  2. /*
  3. *
  4. * OGP - Open Game Panel
  5. * Copyright (C) Copyright (C) 2008 - 2012 The OGP Development Team
  6. *
  7. * http://www.opengamepanel.org/
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License
  11. * as published by the Free Software Foundation; either version 2
  12. * of the License, or any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  22. *
  23. */
  24. define('module_name', 'Utilities');
  25. // Title translations for commands.
  26. define('ping', 'Ping');
  27. define('traceroute', 'Traceroute');
  28. // Tab titles
  29. define('network_tools', 'Network Tools');
  30. define('sourcemod_admins', 'Sourcemod Admins');
  31. define('steam_converter', 'SteamID Converter');
  32. // Network Tools Related Translations.
  33. define('your_ip', 'Your IP Address:');
  34. define('loading_agents', 'Loading Online Agents...');
  35. define('loading_failed', 'Loading Agents Failed.');
  36. define('agents_offline', 'All agents are offline.');
  37. define('no_commands', 'Sorry, your user account has no commands available.');
  38. define('remote_target', 'Target Address:');
  39. define('command', 'Command:');
  40. define('select_agent', 'Select Agent:');
  41. // Status messages for networkt_tools.php
  42. define('chdir_failed', 'Error: chdir() returned false.');
  43. define('agent_invalid', 'Invalid agent specified.');
  44. define('networktools_agent_offline', 'Unable to execute your command on the selected agent because it is offline.');
  45. define('target_empty', 'No remote target given.');
  46. define('command_empty', 'No command selected.');
  47. define('command_unavilable', 'The selected command is unavailable on the selected agent.');
  48. define('target_invalid', 'Invalid IP/hostname entered.');
  49. define('exec_failed', 'Timed out while waiting for a response.');
  50. define('command_no_access', 'You do not have access to this command. This incident will be logged.');
  51. define('command_hacking_attempt', 'Blacklisted characters entered. This incident will be logged.');
  52. // Logging for network_tools.php
  53. define('command_bad_characters', 'Attempted to execute a command with malicious characters. Input received: %s %s');
  54. define('command_no_permissions', 'Attempted to execute a command with insufficient permissions. Input received: %s %s');
  55. define('command_executed', 'Successfully sent the following command: %s %s');
  56. // Sourcemod Related Translations.
  57. define('no_servers', 'You have no servers assigned to your account.');
  58. define('select_server', 'Select Server:');
  59. define('select_server_option', 'Select...');
  60. define('steamid', 'Steam ID:');
  61. define('immunity', 'Immunity:');
  62. define('sourcemod_perms', 'Sourcemod Permissions:');
  63. define('sourcemod_perm_root', 'Sourcemod Root Flag');
  64. define('sourcemod_perm_custom', 'Sourcemod Custom Flags');
  65. // https://wiki.alliedmods.net/Adding_Admins_(SourceMod)#Levels
  66. define('sourcemod_flag_a', 'Reserved slot access.');
  67. define('sourcemod_flag_b', 'Generic admin; required for admins.');
  68. define('sourcemod_flag_c', 'Kick other players.');
  69. define('sourcemod_flag_d', 'Ban other players.');
  70. define('sourcemod_flag_e', 'Remove bans.');
  71. define('sourcemod_flag_f', 'Slay/harm other players.');
  72. define('sourcemod_flag_g', 'Change the map or major gameplay features.');
  73. define('sourcemod_flag_h', 'Change most CVARs.');
  74. define('sourcemod_flag_i', 'Execute config files.');
  75. define('sourcemod_flag_j', 'Special chat privileges.');
  76. define('sourcemod_flag_k', 'Start or create votes.');
  77. define('sourcemod_flag_l', 'Set a password on the server.');
  78. define('sourcemod_flag_m', 'Use RCON commands.');
  79. define('sourcemod_flag_n', 'Change sv_cheats or use cheating commands.');
  80. define('sourcemod_flag_o', 'Custom Group 1.');
  81. define('sourcemod_flag_p', 'Custom Group 2.');
  82. define('sourcemod_flag_q', 'Custom Group 3.');
  83. define('sourcemod_flag_r', 'Custom Group 4.');
  84. define('sourcemod_flag_s', 'Custom Group 5.');
  85. define('sourcemod_flag_t', 'Custom Group 6.');
  86. // Status messages for addadmin_helper.php
  87. define('rcon_reload_admins_failed', 'Failed to reload the admin cache via RCON; is it online?');
  88. define('reload_admins_failed', 'Failed to reload the admin cache; "sm_reloadadmins" is an unknown command.');
  89. define('reload_admins_success', 'Successfully added %s to admins_simple.ini and reloaded the admin cache.');
  90. define('add_success_no_rcon', 'Successfully added %s to your admins_simple.ini file, but unable to reload the admin cache.');
  91. define('writefile_error', 'There was an unknown error writing to: %s');
  92. define('remotefile_nonexistent', 'Unable to add a new admin. Admin file: %s doesn\'t exist on this server.');
  93. define('empty_flag_list', 'You didn\'t select any admin flags.');
  94. define('invalid_steam_format', 'The SteamID you entered doesn\'t match the required pattern.');
  95. define('selected_server_offline', 'Unable to add an admin, the agent controlling the selected server is offline.');
  96. define('malformed_form', 'You submitted a form with malformed hidden elements - unable to add an admin.');
  97. define('empty_form_data', 'Please fill out all elements of the form.');
  98. define('server_not_selected', 'You haven\'t selected a server.');
  99. define('invalid_steamid', 'You have entered an invalid Steam ID.');
  100. define('invalid_immunity', 'You entered an invalid immunity value.');
  101. // Generic form translations.
  102. define('submit', 'Submit');
  103. define('post_failed', 'The POST action failed. Unable to retrieve a response.');
  104. ?>