Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.50 KB | None | 0 0
  1. <?php
  2. session_start();
  3. header('Content-Type: text/html; charset=utf-8');
  4. ini_set('magic_quotes_gpc', 0);
  5. ini_set('display_errors', 1);
  6. error_reporting(E_ALL);
  7.  
  8. /*
  9.  * Database
  10.  */
  11. $dbhost = "localhost";
  12. $dbuser = "root";
  13. $dbpass = "unknow";
  14. $dbname = "opensim";
  15. $dbmodu = "osmodules";
  16.  
  17. // OpenSim tables
  18. define('TB_USERACCOUNTS', $dbname.'.useraccounts');
  19. define('TB_AUTH', $dbname.'.auth');
  20.  
  21. // Groups tables
  22.  
  23. define("TB_OSGROUPS_AGENT", $dbmodu.".osgroup_agent");                       // os_groups_agent
  24. define("TB_OSGROUPS_GROUPS", $dbmodu.".osgroup_group");                      // os_groups_groups
  25. define("TB_OSGROUPS_MEMBERSHIP", $dbmodu.".osgroup_membership");             // os_groups_membership
  26. define("TB_OSGROUPS_ROLES", $dbmodu.".osgroup_role");                        // os_groups_roles
  27. define("TB_OSGROUPS_NOTICES", $dbmodu.".osgroup_notice");                    // os_groups_notices
  28. // define("TB_OSGROUP_INVITES", $dbmodu.".osgroup_invites");                 // os_groups_invites
  29. // define("TB_OSGROUP_ROLEMEMBERSHIP", $dbmodu.".osgroup_rolemembership");   // os_groups_rolemembership
  30. // define("TB_OSGROUP_PRINCIPALS", $dbmodu.".osgroup_principals");           // os_groups_principals
  31.  
  32. /*
  33.  * General
  34.  */
  35. $title = "OpenSim Groups";
  36. $version = "0.1";
  37. $version_url = "https://raw.githubusercontent.com/djphil/osmodules/master/versions/osgroup.version";
  38. $lisense = "CC-BY-NC-SA 4.0";
  39. $lisense_url = "https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode.fr";
  40. $webmaster_uuid = "29736bb5-063f-4c77-b408-e592d884b019";
  41. define("NULL_KEY", "00000000-0000-0000-0000-000000000000");
  42. $uuidZero = "00000000-0000-0000-0000-000000000000";
  43.  
  44. $debug = TRUE;
  45. $useGzip = FALSE;
  46. $display_ribbon = TRUE;
  47. $github_url = "https://github.com/djphil/osgroup";
  48.  
  49. $wall_columns = 4; // 3 or 4
  50. $cats_columns = 4; // 3 or 4
  51.  
  52. // Home page only
  53. $max_lines = 2;
  54.  
  55.  
  56. /*XMLRPC SETTINGS*/
  57. $xmlrpc_internalencoding = 'UTF-8';
  58. // Set to 0 for no debugging, 1 for essential debugging, 2 for more information.
  59. $debugXMLRPC = 0;
  60. $debugXMLRPCFile = "logs/xmlrpc.log";
  61.  
  62. //
  63. //////////////////////////////
  64. //// Group security
  65. //////////////////////////////
  66.  
  67. // A xmlrpc client must have this key to commit changes to the Groups DB
  68. // Leave blank to allow all clients to make changes.
  69. $groupWriteKey = '1234';
  70. $groupReadKey  = '1234';
  71.  
  72. // Enabling this, will require that the service attempt to verify the agent
  73. // is authentic by contacting the User Service specified in the request
  74. // to authenticate the AgentID and SessionID provided.
  75. $groupRequireAgentAuthForWrite = FALSE;
  76.  
  77. // This enforces the role Permissions bitmask.
  78. $groupEnforceGroupPerms = FALSE;
  79.  
  80. // Specify the following to hard-code / lockdown the User Service used to authenticate
  81. // user sessions.  Example: http://osgrid.org:8002
  82. // Note:  This causes the User Service specified with requests to be ignored, and
  83. // prevents the service from being used cross-grid or by hypergridded users.
  84. $overrideAgentUserService = "http://digigrids.no-ip.org:8002";
  85.  
  86. // This setting configures the behavior of the "Members are Visible" checkbox
  87. // provided for on the Role configuration panel -- and determines who is allowed
  88. // to get a list of members for a role when that checkbox is *NOT* checked.
  89. $membersVisibleTo = 'Group'; // Anyone in the group can see members
  90. // $membersVisibleTo = 'Owners'; // Only members of the owners role can see members
  91. // $membersVisibleTo = 'All'; // Anyone can see members
  92.  
  93.  
  94. $useTheme = TRUE;
  95. /* Navbar Style */
  96. // navbar
  97. // navbar-btn
  98. // navbar-form
  99. // navbar-left
  100. // navbar-right
  101. // navbar-default
  102. // navbar-inverse
  103. // navbar-collapse
  104. // navbar-fixed-top
  105. // navbar-fixed-bottom
  106. $CLASS_NAVBAR = "navbar navbar-default";
  107. $CLASS_ORDERBY_NAVBAR = "navbar navbar-default";
  108.  
  109. /* Nav Style */
  110. // nav
  111. // nav-tabs
  112. // nav-pills
  113. // navbar-nav
  114. // nav-stacked
  115. // nav-justified
  116. $CLASS_NAV = "nav navbar-nav";
  117. $CLASS_ORDERBY_NAV = "nav navbar-nav";
  118.  
  119.  
  120. /* Web Asset */
  121. $useFromDirectory = TRUE;
  122. // TODO
  123. // $useRegionImage = FALSE;
  124. $useGetTexture = FALSE;
  125. $useImagick = FALSE;
  126.  
  127. /* Imagick */
  128. $url = "inc/getasset.php?id=";
  129. define('ASSET_SERVER', 'http://127.0.0.1:8003/assets/'); // (OpenSim.ini: asset_server_url . "/assets/")
  130. define('ASSET_SERVER_TIMEOUT', 8); // timeout in seconds, to wait while requesting an asset (default to 8)
  131.  
  132. define('ASSET_DO_RESIZE', FALSE); // shall we resize picture to width=ASSET_RESIZE_FIXED_WIDTH ?
  133. define('ASSET_RESIZE_FIXED_WIDTH', 600); // width in pixels
  134. define('ASSET_RESIZE_FIXED_HEIGHT', 300);
  135.  
  136. /* Will show following image if no asset was requested (malformed query) : */
  137. define('ASSET_ID_NOTFOUND', '3ace5a75-001a-4833-96fd-26298f22ce6a');
  138.  
  139. /* will show following picture for Zero UUID (not found / malformed assets) : */
  140. // define('IMAGE_ID_ZERO', '/var/www/mysite.com/webassets/pic/uuid_zero'); // no extension here
  141. define('IMAGE_ID_ZERO', 'D:/xampp/htdocs/osmodules/ossearch/img/uuid_zero'); // no extension here
  142.  
  143. define('IMAGE_DEFAULT_FORMAT', 'JPEG');
  144.  
  145. /* Re-use locally cached pictures (jp2k & converted) for 1 day before re-requesting it : */
  146. define('CACHE_MAX_AGE', 86400); // 1 day
  147.  
  148. /* where to store cached pictures ? (user running your webserver needs write-permissions there : */
  149. // define('JP2_CACHE_DIR', '/var/www/datas/webassets/cache/jp2/');
  150. // define('PIC_CACHE_DIR', '/var/www/datas/webassets/cache/pic/');
  151.  
  152. define('JP2_CACHE_DIR', 'D:/xampp/htdocs/osmodules/osgroup/img/cache/jp2/');
  153. define('PIC_CACHE_DIR', 'D:/xampp/htdocs/osmodules/osgroup/img/cache/pic/');
  154.  
  155. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement