* minimum PHP version 5.7

* updated README
This commit is contained in:
Olivier van Helden
2025-01-07 12:22:51 -04:00
parent 5261a1a9e6
commit 4c7b7ec419
6 changed files with 53 additions and 8 deletions
+5
View File
@@ -0,0 +1,5 @@
............W......... 22 / 22 (100%)
File,Line,Column,Type,Message,Source,Severity,Fixable
"/home/magic/domains/w4os.org/www/helpers/bin/index.php",1,1,warning,"No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.",Internal.NoCodeFound,5,0
+22 -4
View File
@@ -1,18 +1,25 @@
# OpenSimulator Helpers
![Version 2.4.0](https://badgen.net/badge/Version/2.4.0/blue) ![Stable 2.4.0](https://badgen.net/badge/Stable/2.4.0/green) ![Requires PHP 7.3](https://badgen.net/badge/PHP/7.3/7884bf) ![License AGPLv3](https://badgen.net/badge/License/AGPLv3/552b55)
![Version 2.4.0](https://badgen.net/badge/Version/2.4.0/blue)
![Stable 2.4.0](https://badgen.net/badge/Stable/2.4.0/green)
![Requires PHP 5.7](https://badgen.net/badge/PHP/5.7/7884bf)
![License AGPLv3](https://badgen.net/badge/License/AGPLv3/552b55)
- Project URL: <https://github.com/magicoli/opensim-helpers>
- Donate: <https://w4os.org/donate/>
Collection of PHP scripts to complement OpenSimulator features.
## Description
Helpers required to enable common functionalties like search, currency, events in OpenSimulator grids.
Collection of PHP scripts to enable OpenSimulator features that are not implemented in the core, like search, currency, events in OpenSimulator grids (see Features below).
Most files are used directly by viewer to allow features not implemented in OpenSimulator, like classifieds, events, etc.
They were initially based on a collection of different projects (see Credits below), but were entirely rewritten to use an unified code and set of parameters, as well as for integration in larger projects like [w4os OpenSim WordPress Interface](https://w4os.org/).
Formerly known as Flexible Helper Scripts.
- Project URL: <https://github.com/magicoli/opensim-helpers>
- Donate: <https://w4os.org/donate/>
### Features
- **In-world Search**: enable standard search in the viewer for places, land for sale, events and classifieds.
@@ -22,6 +29,17 @@ Formerly known as Flexible Helper Scripts.
- **Multi-grid**: can be used for standalone or closed grid as well as to provide a cross-grid search engine
- **Unified library**: rewritten to allow easier integration in bigger projects
### Roadmap
- [ ] Avatar authentication
- [ ] Avatar registration
- [ ] Web profiles
- [ ] Web assets server
- [ ] Web search
- [ ] Grid info
- [ ] Grid status
- [ ] Splash page
## Installation
### Option 1: Just enable in-world search (don't install this)
View File
+1 -1
View File
@@ -431,7 +431,7 @@ function osAdminNotice( $message, $error_code = 0, $die = false ) {
$function,
empty( $error_code ) ? '' : " Error $error_code",
$message,
$file,
$file
);
error_log( $message );
if ( $die == true ) {
+23 -1
View File
@@ -1 +1,23 @@
<?php die();
<?php
/**
* OpenSimulator Helpers
*
* The index file is only intended to disallow directory listing.
*
* @package magicoli/opensim-helpers
* @author Gudule Lapointe <gudule@speculoos.world>
* @link https://github.com/magicoli/opensim-helpers
* @license AGPLv3
*/
// Get version from .version file.
if( file_exists( '.version' ) ) {
$version = file_get_contents( '.version' );
}
// Get version from .git/HEAD file.
if( file_exists( '.git/HEAD' ) ) {
$version .= ' (git ' . trim(preg_replace('%.*/%', '', file_get_contents( '.git/HEAD' ) ) ) . ')';
}
echo $version;
die();
+2 -2
View File
@@ -61,7 +61,7 @@ switch ( $method ) {
'SELECT imviaemail, email FROM usersettings WHERE useruuid = :useruuid',
array(
'useruuid' => $xml->toAgentID,
),
)
);
if ( $emailinfo ) {
@@ -170,7 +170,7 @@ switch ( $method ) {
'SELECT ID, Message FROM ' . OFFLINE_MESSAGE_TBL . ' WHERE PrincipalID = :PrincipalID',
array(
'PrincipalID' => $xml->Guid,
),
)
);
if ( $pendingmessages ) {
$delivered = array();