211 Commits
Author SHA1 Message Date
kcozens ff51796212 Updated to use the new module loading method.
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@184 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2012-01-06 03:00:34 +00:00
kcozens 05680c2bc2 Mature and Adult strings were swapped in process_region_type_flags().
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@183 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2012-01-06 02:40:29 +00:00
kcozens de3d2e65e8 Applied BlueWall Slade's patch to update prebuild.xml to newer build system.
(See patch #435)


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@182 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2012-01-03 21:27:16 +00:00
kcozens c47ab644af Updated pre-compiled module DLL (tested with 0.7.2-post-fixes)
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@181 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2011-12-03 17:06:33 +00:00
kcozens 3b4e0bec0a Added closing ')' that got lost from a mysql_query() in revision 177.
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@180 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2011-12-01 07:33:08 +00:00
kcozens 624780e42b Set SVN properties on PHP and SQL files
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@179 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2011-11-30 02:50:37 +00:00
kcozens ca61f92e66 Stripped carriage returns from line endings.
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@178 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2011-11-30 01:49:47 +00:00
kcozens 885d6ec687 webroot/query.php
- Fixed problems in Popular Places query:
  o Use supplied text and query start position when building SQL query
  o Don't include search of 'description' field as it doesn't exist

README
- Corrected format for globalPos data in events table


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@177 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2011-11-30 01:41:49 +00:00
kcozens 369eddcb54 OpenSimSearch/Modules/SearchModule/OpenSearch.cs
- Added support for Event mapitem queries

webroot/query.php
- Fixed parsing of search string and handling of UTC offset
- Include region and landing point in returned data


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@176 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2011-11-30 01:21:35 +00:00
kcozens 4cbbd3c94c webroot/query.php
- Include text string from the viewer (if any) in searches for popular places.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@175 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2011-11-18 01:18:55 +00:00
kcozens eee9f83659 webroot/query.php
- Restrict classifieds search based on supplied text (if any)
- Tidied up generation of SQL query for classifieds
- Cleaned up generation of WHERE clauses in SQL queries for:
  popular places, land, events, and classifieds


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@174 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2011-11-17 22:24:28 +00:00
kcozens db93807e4e webroot/query.php
- Search event name and description for the text string from the viewer.
  (Based on a patch by Michelle Argus)
- Adjust local time to UTC when doing date based search


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@173 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2011-11-17 03:44:15 +00:00
kcozens 3bd3b6f1db OpenSimSearch/Modules/SearchModule/OpenSearch.cs
- Use enum value instead of hard-coded number for land sales

webroot/sql/ossearch.sql
- Changed dateUTC and covercharge fields in events table.

webroot/sql/update-events-classifieds.sql
webroot/sql/update-hostregister.sql
webroot/sql/update-parcelsales.sql - Deleted these files

webroot/sql/ossearch-migrations.sql
- Added this file which lists all search database migrations organized by
  SVN version. This makes it much easier to see what has changed from one
  version of code to the next.

webroot/query.php
- Search by date now works when looking for current and upcoming events, or
  when searching for dates on a given day.
- Provide a default value for category when returning event info to avoid a
  PHP error about use of uninitialized variable.

README
- Added comments about event listings and events database table.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@172 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2011-11-16 22:31:41 +00:00
kcozens 1c4793a9dd Minor formatting and whitespace changes.
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@171 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2011-11-12 06:27:22 +00:00
kcozens 9dc245c528 Removed two obsolete variables.
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@170 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2011-11-12 06:20:07 +00:00
kcozens 18117983d2 Fixed generation of SQL queries for events and classifieds.
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@169 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2011-11-12 06:09:37 +00:00
kcozens 364e9869eb Replaced deprecated (as of PHP 5.3.0) function mysql_escape_string with
mysql_real_escape_string.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@168 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2011-10-28 16:05:33 +00:00
kcozens be52792f0c Changed "<?" to "<?php" for those not set to use short tags.
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@167 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2011-10-28 15:57:08 +00:00
kcozens 042c15fb16 OpenSimSearch/Modules/SearchModule/OpenSearch.cs
- Don't report no data for classified as we might be creating a new ad
- In MapItemRequest(), get out of foreach once we find a match to the
  parcel uuid as only one X/Y location is added for each parcel.
- Added the '*256' multiplier to the X/Y parcel location that was missing
  from the previous commit. This allows $ icons appear on the map for land
  sales. NOTE: This only seems to work when 0.6.9 is running standalone.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@165 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-10-31 21:21:12 +00:00
fly-man- 04818e2fba + Wiredux 0.7 Event handling update part 2
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@164 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-10-28 14:45:01 +00:00
fly-man- 6d135cf93e + Wiredux 0.7 Event handling update
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@163 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-10-28 13:55:31 +00:00
fly-man- 9c7b89984e Updated README, XMLRPC needs be on the machine as well
+ Added the solution for LandSales (all it needed was a 256 multiplier)

git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@162 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-10-27 09:36:33 +00:00
kcozens 0c02b2678f This commit adds information about how to use the ossearch module with OpenSim.
Added a README file and removed the OpenSimSearch/OpenSim-addition.ini.example
file as the information it contained is now in the new README file.

webroot/query.php:
The previous commit should have stated that results of a search of classifieds
are now returned in descending order based on the listing price.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@161 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-10-26 20:27:59 +00:00
kcozens c1341bf488 OpenSimSearch/Modules/SearchModule/OpenSearch.cs
- Added comments documenting magic numbers

webroot/query.php
- De-tabified and cleaned up trailing whitespace.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@158 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-10-10 15:14:37 +00:00
kcozens 5a2370417c Updated pre-compiled DLL to the file provided by nebadon. It was built for and
tested with the 0.7 version of OpenSim.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@157 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-09-10 19:43:15 +00:00
kcozens 76096b65a5 Changed handling of return from process_region_type_flags() to stop display of
the "Unable to search" message when opening map. Fixed land sales search when
land type is set to "All types".


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@155 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-09-09 21:56:40 +00:00
kcozens 04dc2778ac This commit fixes problems affecting Places search in a viewer.
webroot/sql/ossearch.sql:
- Added default value to 'mature' column.

webroot/sql/update-parcelsales.sql:
- Fixed syntax of SQL command that adds 'mature' column.

webroot/parser.php:
- Save region category in parcels table.

webroot/query.php:
- Fixed generation of SQL query used to search to parcels table.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@153 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-09-06 21:33:07 +00:00
kcozens f9f939a4dd Added missing value in SQL query when registering a new host.
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@151 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-09-06 01:49:40 +00:00
kcozens 4999fd0771 Fixed queries for classifieds, events, land sales, and places.
Handle region type for classifieds, events, land sales, and places.
Generation of SQL queries now handle cases where OR expressions
are used to select one of several values for a column based on
flags in addition to AND expressions in WHERE.
Corrected the size of several columns in the database schema.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@149 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-09-04 14:30:24 +00:00
fly-man- 9041342a46 Don't mess with the README file, please ask before you start to break things in the Wiredux/README file
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@148 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-08-31 17:25:59 +00:00
kcozens 6838e262b5 Added comments to explain the origin and meaning of the "magic numbers".
Capitalized keywords in SQL statements.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@146 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-08-31 06:22:15 +00:00
fly-man- 0d543ae66b Updated binary to latest version
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@145 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-08-30 12:56:00 +00:00
fly-man- 16a5aa5ccf Changing layout of the texts, if there's no classified mentioned, return that to the viewer (don't say we don't have ANY classifieds)
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@144 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-08-30 12:51:06 +00:00
fly-man- 59ad99952e Changed the layout of the file
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@143 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-08-30 12:45:27 +00:00
kcozens 8d474acd04 Forward port of changes in versions 138 through 141 of the opensim_069 branch.
r141:
OpenSimSearch/Modules/SearchModule/OpenSearch.cs:
- Added comments about the origin of some of the constants used.

OpenSimSearch/OpenSim-addition.ini.example:
- Added note about extra lines to add to Modules section of OpenSim.ini file.

r140:
Eliminated the need to call fsockopen() to check if host is online.

r139:
Renamed lastcheck to nextcheck in hostsregister table to better reflect
its usage. Removed HTML tag from parser.php that got left in by mistake.
In register.php, reset nextcheck and checked when a host registers.

r138:
The data parser was getting stuck on a single entry in hostsregister table.
The lastcheck time wasn't enough to determine the next host to contact.
A column was added to hostsregister to track which hosts have been checked.
A host will not be checked again until all others have been checked.

CheckHost() routine was cleaned up. Always update hostsregister. GetURL()
now waits up to 10 seconds for connection and up to 30 seconds for data.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@142 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-08-30 02:04:39 +00:00
kcozens 38e0cce987 Added missing comma from a SQL query.
Capitalized keywords in SQL queries.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@136 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-08-23 06:58:31 +00:00
kcozens b436ad12a6 webroot/parser.php:
- Don't try and parse XML if the load operation failed
- Capitalized SQL keywords
webroot/register.php:
- Reset failcounter when a region re-registers


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@135 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-08-23 06:52:03 +00:00
kcozens 62d45767fd - Check that CURL returned data before trying to parse it.
- Check that XML has region data before trying to parse it.
- Code clean ups (possible memory leak, removed dead code, de-tabified file).


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@133 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-08-23 04:54:45 +00:00
kcozens 744f2919e7 Fixed exception error triggered when the map was opened in a viewer due to
an error in variable declarations.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@131 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-08-07 22:37:42 +00:00
kcozens 47c00a0f35 webroot/parser.php:
- Capitalize keywords in SQL queries.

webroot/sql/ossearch.sql:
- Change default for mature column of parcelsales table to PG.

webroot/sql/update-parcelsales.sql:
- Added this file to update existing an parcelsales table.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@126 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-08-03 02:07:40 +00:00
kcozens 9805da5be5 Fixed copy/paste error in line that gets region category.
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@125 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-07-14 18:52:36 +00:00
kcozens be17f7e1e3 - Changed alert message in OpenSimSearch/Modules/SearchModule/OpenSearch.cs
when no classifieds exist in search database.
- In webroot/parser.php
  o Save estate ID and region category in parcelsales table.
  o Save object location in objects table.
  o Minor formatting changes
- Trivial format change to one line of webroot/wiredux/README.


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@124 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-07-14 18:01:58 +00:00
melanie f525f90e2e Remove dependencies on Comms Manager and convert user ssearch to new
format


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@123 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2010-03-03 00:34:27 +00:00
melanie d5edc44dbd Correct some omissions in the new search code
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@122 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2009-12-31 23:25:23 +00:00
melanie 89830e0cb5 Apply #4361 to add land search.
Applied with whitespace cleanup


git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@121 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2009-12-31 22:22:03 +00:00
melanie 7755520618 Update binary to trunk
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@120 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2009-10-23 03:49:10 +00:00
melanie 77d59345ca Update binary
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@119 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2009-08-12 22:27:17 +00:00
fly-man- 3e5d45c287 Removing patches folder
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@118 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2009-08-08 20:10:37 +00:00
melanie bbd8874790 Convert project to new include system
git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@117 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2009-08-05 19:41:21 +00:00
fly-man- 1c44864d04 [FIXED VERSION]
Added group support to the parser.php so we can safely parse group owned parcels as well

git-svn-id: http://forge.opensimulator.org/svn/ossearch/trunk@116 109abde3-1f22-4c10-b5d7-b6b0135cd00c
2009-04-28 01:36:55 +00:00