Skidz Partz Aurora WebInterface Redux v0.29
Originally created by Rookiie84
Please remember to backup your database regularly.
- Unzip & Upload these files to your webserver.
- Edit "./settings/config.php"
- Make a backup of your database ;)
- Import the .sql files inside "./www/sql_update/" into your MySql database (I placed mine in the aurora database)
Config.php (Change the basic settings, to match your own)
##################### System #########################
define("SYSNAME","This_usually_is_what_the_site_is_called");
define("SYSURL","http://your_webui_server_ip_or_dns/");
define("SYSMAIL","you@yourdomain.com");
define("WEBUI_SERVICE_URL","http://your_webui_server_ip_or_dns:8007/WEBUI");
define("WEBUI_TEXTURE_SERVICE","http://your_webui_server_ip_or_dns:8002");
define("WEBUI_MAP_SERVICE","http://your_webui_server_ip_or_dns:8012/MapService");
define("WEBUI_MAPAPI_SERVICE","http://your_webui_server_ip_or_dns:8012/MapAPI");
define("WEBUI_PASSWORD","Password");
// Default StartPoint for Map
$mapstartX = 1000;
$mapstartY = 1000;
DatabaseInfo.php (Change the basic settings, to match your own)
##################### Database ########################
define("C_DB_TYPE","mysql");
// Your Hostname here:
define("C_DB_HOST","localhost");
// Your Databasename here:
define("C_DB_NAME","aurora");
// Your Username from Database here:
define("C_DB_USER","root");
// Your Database Password here:
define("C_DB_PASS","***");
- Start Aurora.Server.exe (if you want to run in Grid mode) or Aurora.exe (if you want to run in StandAlone mode)
- Put into the console 'compile module gui' and browse to the AuroraWebUI directory in your Aurora-WebAPI download and open the build.am file.
- Follow the instructions on-screen and it will compile and install your module and you are all done with setup.
- copy the AuroraWebUI directory into your ~/Aurora-Sim/addon-modules/ directory
- Run runprebuild.bat
Copy AuroraService/WebAPI.ini to your ~/Aurora-Sim/bin/AuroraServerConfiguration/Modules directory
Copy AuroraService/WebAPI.ini to your ~/Aurora-Sim/bin/Configuration/Modules directory
The Admin Panel is located at: http://yourdomain.com/admin
To add your user as an Admin Panel User: Start Aurora (Aurora.Server in grid mode) and after it has started, type
webui add user
and fill in the information that is asked for.
The user will now be able to use the Admin Panel as given above
Enjoy Aurora WebUI
To remove a user from the Admin Panel: Start Aurora (Aurora.Server in grid mode) and after it has started, type
webui remove user
and fill in the information that is asked for.
The user will now not be able to use the Admin Panel
To choose a avatar on registration you have to make some avatar archives
NOTE: I have only tested this with database archives and not file archives. To save a archive in the database you must give it a name ending with ".database"
Note: When displaying textures from the texture server they will be resized to 128x128 and at the bottom will be writen the grid nickname
- Dress an avatar up how you would like it to look
- Take a picture of it and upload this to the grid
- in the console of the grid server issue this command
save avatar archive <First> <Last> <Filename> <FolderNameToSaveInto> (--snapshot <UUID>) (--public)
example:
save avatar archive first last hippo.aa folder --snapshot 12345678-1234-1234-1234-123456789012 --public
NOTE: Only public ones will be listed on the website
- Don't forget to set up your php.ini mail
- Make sure that an Aurora.Addon.WebUI.dll is in the bin/ folder of the place that are you running Aurora (or Aurora.Server) from.
- While testing on osgrid.org we resolved this issue by creating a .htaccess file in the root of your website with the following code
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.yourdomain.com$
RewriteRule (.*)$ http://yourdomain.com/$1 [R=301,L]
oh.. one thing to note.. opensim seems to have a bug.. when making calls to the handler.. the first one always fails after you start opensim It actually runs.. but.. the data is never returned to the php.. but.. after that first.. seems to work fine.. I have not tried to debug this yet I should add that in the install.. lol
query("SELECT password FROM ".C_ADMIN_TBL." WHERE password='$_SESSION[ADMINUID]'");
list($admpass) = $DbLink->next_record();
if($admpass){
$ADMINCHECK = $admpass;
}else{
$ADMINCHECK = "454";
}
if($_POST[adminlogin]=="admincheck"){
$pass = $_POST[password];
$passcheck = md5(md5($pass) . ":" );
$DbLink->query("SELECT username,password FROM ".C_ADMIN_TBL." WHERE username='$_POST[username]'");
list($adminname,$adminpass) = $DbLink->next_record();
if($adminpass == $passcheck){
$_SESSION[ADMINUID] = $adminpass;
}
}
if($_POST[check]==1){
echo "";
}
Your PHP is not configured to use short tags or asp style, to fix the problem edit your php.ini and locate the following lines:
short_open_tag = Off
; Allow ASP-style <% %> tags.
asp_tags = Off
Change to
short_open_tag = On
; Allow ASP-style <% %> tags.
asp_tags = On
After you save your php.ini restart apache and you should be ok now.
Notice: Use of undefined constant ......
Your PHP is not configured to handle errors properly, to fix the problem edit your php.ini and locate the following lines:
error_reporting = E_ALL
Change to
error_reporting = E_ALL & ~E_NOTICE
Originally created by (c) Metropolis Metaversum [ http://hypergrid.org ]
Light Green Tiles = Root Region (Occupied) Dark Green Tiles = Mainland (Occupied) Blue Tiles = Free Space
Quickmap configuration is found in Aurora-WebUI/quickmap/includes/config.php. You may want to call Aurora-WebUI somthing different just remember this must reflect in the configuration below.
// Database Connection
$CONF_db_server = "localhost";
$CONF_db_user = "*********";
$CONF_db_pass = "*********";
$CONF_db_database = "*********";
// QuickMap URL's
$SYSURL = "http://SERVER_ADDRESS_IP_OR_DNS/webui/quickmap/";
$IMGURL = "http://SERVER_ADDRESS_IP_OR_DNS:8002/";
// QuickMap Coordinates
$CONF_center_coord_x = "1000";
$CONF_center_coord_y = "1000";
// QuickMap Template
$CONF_template = "default";
$CONF_image_size = 230;
// QuickMap Options
$displayRoundedCorner = true;
$displayLogoEffect = true;
...
# Support
Please report all errors and bugs to [#aurora-dev channel on irc.freenode.net](http://webchat.freenode.net/?channels=#aurora-dev)