util_config.php 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php
  2. /*
  3. *
  4. * OGP - Open Game Panel
  5. * Copyright (C) 2008 - 2017 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. // The session variable that OGP assigns for signed in users.
  25. $sessionName = 'opengamepanel_web';
  26. // Define commands, user permissions (via *role* => true/false), and what they're referred to on each OS.
  27. // Include arguements here. They cannot be passed in the text input field.
  28. $availableCommands = array(
  29. // 'title' also needs to be specified in the translation files with the same values - as this is what shows on the select list. ex:
  30. array(
  31. 'title' => 'ping',
  32. 'linux' => 'ping -c 4', // By default, ping runs indefinitely on Linux - so set the count to 4; same as Windows default.
  33. 'windows' => 'ping',
  34. // Default: Ping is available to all user roles.
  35. 'subuser' => true,
  36. 'user' => true,
  37. 'admin' => true,
  38. ),
  39. array(
  40. 'title' => 'traceroute',
  41. 'linux' => 'traceroute',
  42. 'windows' => 'tracert',
  43. // Default: Traceroute is only available to admins.
  44. 'subuser' => false,
  45. 'user' => false,
  46. 'admin' => true,
  47. ),
  48. );
  49. // An array of characters which should never be passed to exec()
  50. $blockedCharacters = '"#$%^&*()+=[]\';,\\/{}|:<>?~';
  51. // Should we log attempted form manipulation (ie, editing the form to execute a command the user doesn't have access to) ...
  52. // ... and attempted multi-command input? (ie, ;cd /;ls)
  53. $logMaliciousUsage = true;
  54. // Should we log successfully executed commands...?
  55. // Could spam the logs - so probably set this to false.
  56. $logAllUsage = false;
  57. // Games which Sourcemod supports.
  58. // Needs to be exactly what OGP reports as the game_name.
  59. $supportedGames = array(
  60. 'Counter Strike Global Offensive',
  61. 'Counter Strike Source',
  62. 'Day of Defeat Source',
  63. 'Dystopia',
  64. 'Garrys Mod',
  65. 'Half-Life 2: Deathmatch',
  66. 'Hidden: Source',
  67. 'Pirates, Vikings and Knights II',
  68. 'Team Fortress 2',
  69. 'Team Fortress 2 Beta',
  70. 'Left 4 Dead',
  71. 'Left 4 Dead 2',
  72. );
  73. // Simple array of where admins are stored depending on the admin mod.
  74. // mod.name => file.location
  75. $adminFiles = array(
  76. 'sourcemod' => 'addons/sourcemod/configs/admins_simple.ini',
  77. );
  78. // Flags that sub-users need to add admins to owned parent game-servers.
  79. // This should just be the same as allow_file_management and allow_ftp - as they'll be able to add admins anyway with those flags.
  80. $subuserAdminManagement = 'ft';