Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- header('Content-Type: text/html; charset=utf-8');
- ini_set('magic_quotes_gpc', 0);
- ini_set('display_errors', 1);
- error_reporting(E_ALL);
- /*
- * Database
- */
- $dbhost = "localhost";
- $dbuser = "root";
- $dbpass = "unknow";
- $dbname = "opensim";
- $dbmodu = "osmodules";
- // OpenSim tables
- define('TB_USERACCOUNTS', $dbname.'.useraccounts');
- define('TB_AUTH', $dbname.'.auth');
- // Groups tables
- define("TB_OSGROUPS_AGENT", $dbmodu.".osgroup_agent"); // os_groups_agent
- define("TB_OSGROUPS_GROUPS", $dbmodu.".osgroup_group"); // os_groups_groups
- define("TB_OSGROUPS_MEMBERSHIP", $dbmodu.".osgroup_membership"); // os_groups_membership
- define("TB_OSGROUPS_ROLES", $dbmodu.".osgroup_role"); // os_groups_roles
- define("TB_OSGROUPS_NOTICES", $dbmodu.".osgroup_notice"); // os_groups_notices
- // define("TB_OSGROUP_INVITES", $dbmodu.".osgroup_invites"); // os_groups_invites
- // define("TB_OSGROUP_ROLEMEMBERSHIP", $dbmodu.".osgroup_rolemembership"); // os_groups_rolemembership
- // define("TB_OSGROUP_PRINCIPALS", $dbmodu.".osgroup_principals"); // os_groups_principals
- /*
- * General
- */
- $title = "OpenSim Groups";
- $version = "0.1";
- $version_url = "https://raw.githubusercontent.com/djphil/osmodules/master/versions/osgroup.version";
- $lisense = "CC-BY-NC-SA 4.0";
- $lisense_url = "https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode.fr";
- $webmaster_uuid = "29736bb5-063f-4c77-b408-e592d884b019";
- define("NULL_KEY", "00000000-0000-0000-0000-000000000000");
- $uuidZero = "00000000-0000-0000-0000-000000000000";
- $debug = TRUE;
- $useGzip = FALSE;
- $display_ribbon = TRUE;
- $github_url = "https://github.com/djphil/osgroup";
- $wall_columns = 4; // 3 or 4
- $cats_columns = 4; // 3 or 4
- // Home page only
- $max_lines = 2;
- /*XMLRPC SETTINGS*/
- $xmlrpc_internalencoding = 'UTF-8';
- // Set to 0 for no debugging, 1 for essential debugging, 2 for more information.
- $debugXMLRPC = 0;
- $debugXMLRPCFile = "logs/xmlrpc.log";
- //
- //////////////////////////////
- //// Group security
- //////////////////////////////
- // A xmlrpc client must have this key to commit changes to the Groups DB
- // Leave blank to allow all clients to make changes.
- $groupWriteKey = '1234';
- $groupReadKey = '1234';
- // Enabling this, will require that the service attempt to verify the agent
- // is authentic by contacting the User Service specified in the request
- // to authenticate the AgentID and SessionID provided.
- $groupRequireAgentAuthForWrite = FALSE;
- // This enforces the role Permissions bitmask.
- $groupEnforceGroupPerms = FALSE;
- // Specify the following to hard-code / lockdown the User Service used to authenticate
- // user sessions. Example: http://osgrid.org:8002
- // Note: This causes the User Service specified with requests to be ignored, and
- // prevents the service from being used cross-grid or by hypergridded users.
- $overrideAgentUserService = "http://digigrids.no-ip.org:8002";
- // This setting configures the behavior of the "Members are Visible" checkbox
- // provided for on the Role configuration panel -- and determines who is allowed
- // to get a list of members for a role when that checkbox is *NOT* checked.
- $membersVisibleTo = 'Group'; // Anyone in the group can see members
- // $membersVisibleTo = 'Owners'; // Only members of the owners role can see members
- // $membersVisibleTo = 'All'; // Anyone can see members
- $useTheme = TRUE;
- /* Navbar Style */
- // navbar
- // navbar-btn
- // navbar-form
- // navbar-left
- // navbar-right
- // navbar-default
- // navbar-inverse
- // navbar-collapse
- // navbar-fixed-top
- // navbar-fixed-bottom
- $CLASS_NAVBAR = "navbar navbar-default";
- $CLASS_ORDERBY_NAVBAR = "navbar navbar-default";
- /* Nav Style */
- // nav
- // nav-tabs
- // nav-pills
- // navbar-nav
- // nav-stacked
- // nav-justified
- $CLASS_NAV = "nav navbar-nav";
- $CLASS_ORDERBY_NAV = "nav navbar-nav";
- /* Web Asset */
- $useFromDirectory = TRUE;
- // TODO
- // $useRegionImage = FALSE;
- $useGetTexture = FALSE;
- $useImagick = FALSE;
- /* Imagick */
- $url = "inc/getasset.php?id=";
- define('ASSET_SERVER', 'http://127.0.0.1:8003/assets/'); // (OpenSim.ini: asset_server_url . "/assets/")
- define('ASSET_SERVER_TIMEOUT', 8); // timeout in seconds, to wait while requesting an asset (default to 8)
- define('ASSET_DO_RESIZE', FALSE); // shall we resize picture to width=ASSET_RESIZE_FIXED_WIDTH ?
- define('ASSET_RESIZE_FIXED_WIDTH', 600); // width in pixels
- define('ASSET_RESIZE_FIXED_HEIGHT', 300);
- /* Will show following image if no asset was requested (malformed query) : */
- define('ASSET_ID_NOTFOUND', '3ace5a75-001a-4833-96fd-26298f22ce6a');
- /* will show following picture for Zero UUID (not found / malformed assets) : */
- // define('IMAGE_ID_ZERO', '/var/www/mysite.com/webassets/pic/uuid_zero'); // no extension here
- define('IMAGE_ID_ZERO', 'D:/xampp/htdocs/osmodules/ossearch/img/uuid_zero'); // no extension here
- define('IMAGE_DEFAULT_FORMAT', 'JPEG');
- /* Re-use locally cached pictures (jp2k & converted) for 1 day before re-requesting it : */
- define('CACHE_MAX_AGE', 86400); // 1 day
- /* where to store cached pictures ? (user running your webserver needs write-permissions there : */
- // define('JP2_CACHE_DIR', '/var/www/datas/webassets/cache/jp2/');
- // define('PIC_CACHE_DIR', '/var/www/datas/webassets/cache/pic/');
- define('JP2_CACHE_DIR', 'D:/xampp/htdocs/osmodules/osgroup/img/cache/jp2/');
- define('PIC_CACHE_DIR', 'D:/xampp/htdocs/osmodules/osgroup/img/cache/pic/');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement