diff --git a/doc/changes.txt b/doc/changes.txt
index f4c9a0a2..42c51882 100644
--- a/doc/changes.txt
+++ b/doc/changes.txt
@@ -8,6 +8,9 @@ for Database changelog, see htdocs/doc/sql/db-changes.txt
Opencaching Network Implementation Version 2.0
Changes File
+
+This list is incomplete.
+
27.08.2010 (Oliver)
- modified translation system
(see translation.php, "scan source files" added)
diff --git a/doc/cracklib.txt b/doc/cracklib.txt
deleted file mode 100644
index 8236818c..00000000
--- a/doc/cracklib.txt
+++ /dev/null
@@ -1,37 +0,0 @@
-
- Opencaching Network Implementation Version 2.0
-
-
- 22 May 2007
-
- Copyright (C) 2007 opencaching.de
-
- cracklib Information
-
- 1) Install cracklib
-
- Download and Install
- http://sourceforge.net/projects/cracklib
-
- Use the small wordlist shipped with the package.
-
- 2) Install php-extension
-
- Downlad pecl-extension
- http://pecl.php.net/get/crack-0.4.tgz
-
- Extract the content
- # cd into the source-directory
- # phpize
- # ./configure
- # make
- # copy crack.so to your php-extension directory
-
- set php.ini
- [Crack]
- crack.default_dictionary = "/usr/local/share/cracklib/pw_dict"
-
- Further reading:
- http://www.php.net/manual/de/function.crack-check.php
- http://www.phpbar.de/w/PECL
- http://pecl.php.net/package/crack
diff --git a/doc/directories.html b/doc/directories.html
deleted file mode 100644
index c0d3a998..00000000
--- a/doc/directories.html
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-
Directory structure
-
This documentation is outdated.
-
-
Preface
-
- The overall directory structure seems to be complex and redudant.
- The reason for this is that we still have to support the directory structure of
- previous source codes. Some of these directories can be removed in future
- when the old source codes have been updated to use the current template
- engine. Some other directories should be kept in future, because some
- geocache listings or other website may reference to files inside that
- directories. This document will first explain the currently intended directory
- structure and after that explain the obsolete directories. You should only
- use the new directory structure in new developments.
-
- All directories in this document will reference to trunk as base directory.
- Other branches and tags should use the same directory structure.
-
-
-
Directories
-
-
code
-
- All files that have to be uploaded to the webserver are contained in this
- directory.
-
-
-
code/bin
-
- Command line utilities for Opencaching administration and utlilities used
- by the PHP code. This directory should only contain the binary itself. Config
- files and libraries should be placed in the appropriate directory.
-
-
-
code/config
-
- Contains configuration files. The source code is delivered with an default
- configuration (settings-dist.inc.php). In the local webserver configuration
- (settings.inc.php) only values have to be included that differ from the default
- configuration. An example of this configuration is delivered with
- (settings-sample.inc.php).
-
-
-
code/htdocs
-
- This directory should be the document root of the apache configuration. Only
- these files have to be accessible for web users.
-
-
-
code/lib
-
- Contains Opencaching business logic files and classes.
- Subdirectories may be created for storing a set of classes that contain to
- the same functionality like "search modules".
-
-
-
code/template
-
- Smarty HTML templates.
-
-
-
code/upload
-
- Directory containing all files that the users have uploaded. A seperate
- structure of subdirectories may be created for each upload functionality
- (e.g. GPX files or images).
-
-
-
code/webcache
-
- Directory for caching files used to generate or speed up site processing.
- Like compiled smarty files or caching of the menu structure.
-
- Contains files that were used to generate images and other "generated content".
- Subdirectory structure may be used where appropriate.
-
-
-
Obsolete directories
-
- Existing sources have been copied to code/htdocs because in previous codes, there
- was no strict seperation between "inside" and "ouside" the public accessbile root
- directory of the web server.
-
-
- There are 2 template engines used in the opencaching source code.
- The first one is a self-written template engine (refered as "old") and the
- second one is smarty (refered as "new").
- You can determine what source code is used when you
- look into the first code lines of the file. If the soruce file
- includes "lib/common.inc.php" the old template system is used. If it includes
- "lib2/web.inc.php", the new template engine is used.
- Directories ending with "2" belong to the new template engine. Directories
- without a "2" at the end belong the the old template engine.
-
-
-
code/htdocs/cache
-
code/htdocs/cache2
-
code/htdocs/cache2/smarty/cache
-
code/htdocs/cache2/smarty/compiled
-
code/htdocs/cache2/translate
-
code/htdocs/config2
-
code/htdocs/doc
-
code/htdocs/doc/sql/static-data
-
code/htdocs/doc/sql/stored-proc
-
code/htdocs/doc/sql/tables
-
code/htdocs/doc2
-
code/htdocs/doc2/images
-
code/htdocs/download
-
code/htdocs/html
-
code/htdocs/images
-
code/htdocs/lang/de/ocstyle
-
code/htdocs/lang/de/ocstyle/email
-
code/htdocs/lang/de/ocstyle/images
-
code/htdocs/lang/de/ocstyle/js
-
code/htdocs/lang/de/ocstyle/lib
-
code/htdocs/lib
-
code/htdocs/lib2
-
code/htdocs/lib2/logic
-
code/htdocs/resource2/misc
-
code/htdocs/resource2/ocstyle
-
code/htdocs/resource2/tinymce
-
code/htdocs/statpics
-
code/htdocs/templates/mail
-
code/htdocs/templates/ocstyle
-
code/htdocs/templates/ocstyle/articles
-
code/htdocs/util
-
code/htdocs/util2
-
code/htdocs/xml
-
-
-
\ No newline at end of file
diff --git a/doc/edit-permissions.txt b/doc/edit-permissions.txt
index 50c65956..54bc9fee 100644
--- a/doc/edit-permissions.txt
+++ b/doc/edit-permissions.txt
@@ -4,49 +4,42 @@
Rechteverwaltung
-Rechte gelten jeweils für alle zuordneten Objekte
+Rechte gelten jeweils für alle zuordneten Objekte
z.B. Beschreibung und Bilder.
-Für Caches
+Für Caches
Jeder Besitzer ADMIN_USER
Anzeigen *1 X X
Anlegen X
Bearbeiten X *2
-Löschen *3
+Löschen
*1 wenn Status 1-3
-
- *2 Status ändern
- GC-Wegpunkt ändern
- Beschreibung mit Fixtext ersetzen (Urheberrechtsverletzung)
- Bild mit Fixbild ersetzen (Urheberrechtsverletzung)
- Erzeugt auch E-Mail an den Owner
-
- *3 Zusammen mit Logs, Beschreibung und Bildern
- Erzeugt auch E-Mail an den Owner
+ *2 Status ändern
-Für Cachelogs
-
- Jeder Log-Besitzer Cache-Besitzer ADMIN_USER
-Anzeigen *1 *1 X X
-Anlegen X X X X
-Bearbeiten X
-Löschen X *2 *2
-
- *1 wenn Cache-Status 1-3
-
- *2 Mit Löschkommentar der an den Owner geschickt wird
-
-
-Für Beschreibungen und Bilder
+Für Cachebeschreibungen und Bilder
Jeder Besitzer ADMIN_USER
Anzeigen *1 X X
Anlegen X
-Bearbeiten
-Löschen X
+Bearbeiten X
+Löschen X
*1 wenn Cache-Status 1-3
+
+
+Für Cachelogs
+
+ Jeder Log-Besitzer Cache-Besitzer ADMIN_USER
+Anzeigen *1 *1 X X
+Anlegen X X X *4
+Bearbeiten X *2
+Löschen X *3
+
+ *1 wenn Cache-Status 1-3 (suboptiomal beim Log-Besitzer)
+ *2 geplant: Spoierflag setzen (siehe Todo #97)
+ *3 mit Löschkommentar der an den Owner geschickt wird
+ *4 mit OC-Team-Flag beim Abarbeiten einer Cachemeldung
diff --git a/doc/index.html b/doc/index.html
deleted file mode 100644
index 2662d65a..00000000
--- a/doc/index.html
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
Opencaching source code documentation
-
- Documentation is grouped into the following main parts:
-
-
-
License
-
Administraton
-
Database
-
Code
-
API
-
- If you are interested in writing 3rd party applications, you
- only need to know the licensing and API documentation.
- However, some knowledge of the database schema may be heplfull.
-
- Before reading other documents, you may want to inform youself about
- the directory structure.
-
-
-
-
-
-
\ No newline at end of file
diff --git a/doc/replication.txt b/doc/replication.txt
index e42fe56b..854a367c 100644
--- a/doc/replication.txt
+++ b/doc/replication.txt
@@ -47,11 +47,11 @@
You need to configure each slave database in the configuration see settings-dist.inc.php
for available options.
- 3.2 util2/replication_monitor/replication_monitor.sh
+ 3.2 local/prodsys/replication_monitor.sh
This script updates a timestamp in the database every 10 seconds.
This timestamp will be replicated to each slave and can therefore
- detect in a reliable way what time lack is in the binary log.
+ detect in a reliable way what time lag is in the binary log.
See remarks in the script how to install and use it.
@@ -64,7 +64,7 @@
The DB user requires privilege "REPLICATION CLIENT". If you require SSL
replication, this may be a security risk.
- 3.4 util2/replication_monitor/purge_master_logs.php
+ 3.4 local/prodsys/purge_master_logs.php
This script purges old binary logs that are no more required by any slave.
@@ -111,8 +111,12 @@
5.2 Scripts using slave servers
+ getNew.class.php -> 404.php, index.php
+ logpics.inc.php -> index.php, myhome.php, newlogpics.php, viewcache.php
+ map2.php
newcaches.php
newcachesrest.php
newlogs.php
search.php
+ search1.php
tops.php
diff --git a/doc/repository.html b/doc/repository.html
deleted file mode 100644
index 570f74a9..00000000
--- a/doc/repository.html
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
Repository usage
-
-
SVN update
-
- When doing an SVN update watch for changes in the following files:
-
-
code/config/*
-
code/htdocs/config2/settings-dist.inc.php
-
code/htdocs/doc/sql/*
-
code/htdocs/lib/settings-dist.inc.php
-
code/htdocs/documentation/*
-
- In most cases you have to review the changes and update your configuration
- or database. The update is done manually.
-
-
Changes in the setting files may have to be modified in the local config file.
-
- Changes in SQL table definitions have to be installed in the database via
- phpmyadmin. If there is a new table SQL file, you can create the new column
- or modify the existing column.
-
- If data.sql changes, you have to execute it with mysql binary
-
cat data.sql | mysql -uroot -p <database>
- If maintain.php changes, you have to execute it with you webbrowser.
-
-
-
- Changes in the documentation should be reviewed, of course.
-
-
-
-
-
SVN commit
-
- Commit your changes to the dev branch when you have finished the developlment.
- When these changes have been tested, they will be merged into the trunk.
-
-
-
\ No newline at end of file
diff --git a/htdocs/api/ping.php b/htdocs/api/ping.php
new file mode 100644
index 00000000..f486e2fa
--- /dev/null
+++ b/htdocs/api/ping.php
@@ -0,0 +1,9 @@
+
\ No newline at end of file
diff --git a/htdocs/editcache.php b/htdocs/editcache.php
index 266f0c24..307b8121 100644
--- a/htdocs/editcache.php
+++ b/htdocs/editcache.php
@@ -101,7 +101,7 @@ function getWaypoints($cacheid)
}
//here we read all used information from the form if submitted, otherwise from DB
- $cache_name = isset($_POST['name']) ? $_POST['name'] : $cache_record['name']; // Ocprop
+ $cache_name = trim(isset($_POST['name']) ? $_POST['name'] : $cache_record['name']); // Ocprop
$cache_type = isset($_POST['type']) ? $_POST['type'] : $cache_record['type'];
if (!isset($_POST['size']))
{
@@ -220,10 +220,9 @@ function getWaypoints($cacheid)
// name
$name_not_ok = false;
- if(isset($_POST['name']))
+ if($cache_name == "")
{
- if($_POST['name'] == "")
- $name_not_ok = true;
+ $name_not_ok = true;
}
if (isset($_POST['latNS']))
diff --git a/htdocs/newcache.php b/htdocs/newcache.php
index 6654af40..61f6f4df 100644
--- a/htdocs/newcache.php
+++ b/htdocs/newcache.php
@@ -119,7 +119,7 @@
tpl_set_var('lat_min', htmlspecialchars($lat_min, ENT_COMPAT, 'UTF-8'));
//name
- $name = isset($_POST['name']) ? $_POST['name'] : ''; // Ocprop
+ $name = isset($_POST['name']) ? trim($_POST['name']) : ''; // Ocprop
tpl_set_var('name', htmlspecialchars($name, ENT_COMPAT, 'UTF-8'));
//shortdesc
diff --git a/htdocs/search.php b/htdocs/search.php
index 8646136b..a6640c98 100644
--- a/htdocs/search.php
+++ b/htdocs/search.php
@@ -1197,9 +1197,7 @@
}
else // by name
{
- // Some names start with spaces ...
- // caches.name is not indexed, so ltrimming won't cost performance.
- $sql .= 'LTRIM(`caches`.`name`) ASC';
+ $sql .= '`caches`.`name` ASC';
}
// range of output
diff --git a/htdocs/util/archive/.htaccess b/htdocs/util/archive/.htaccess
deleted file mode 100644
index 4a242eec..00000000
--- a/htdocs/util/archive/.htaccess
+++ /dev/null
@@ -1,4 +0,0 @@
-AuthUserFile /path/to/passwdfile/.htpasswd
-AuthName "OC-Admin"
-AuthType Basic
-require valid-user
\ No newline at end of file
diff --git a/htdocs/util/archive/index.html b/htdocs/util/archive/index.html
deleted file mode 100644
index 3e6cee51..00000000
--- a/htdocs/util/archive/index.html
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-Caches archivieren
-
-
-
\ No newline at end of file
diff --git a/htdocs/util/archive/list.php b/htdocs/util/archive/list.php
deleted file mode 100644
index 132a8e2c..00000000
--- a/htdocs/util/archive/list.php
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
-
-' . $rCache['wp_oc'] . ' ';
- }
- mysql_free_result($rsCaches);
-?>
-
-
diff --git a/htdocs/util/archive/top.php b/htdocs/util/archive/top.php
deleted file mode 100644
index 32529433..00000000
--- a/htdocs/util/archive/top.php
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
- Archivieren
-
-
\ No newline at end of file
diff --git a/htdocs/util/caches_repairnames/index.php b/htdocs/util/caches_repairnames/index.php
deleted file mode 100644
index cfadc45c..00000000
--- a/htdocs/util/caches_repairnames/index.php
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/usr/local/bin/php -q
-
\ No newline at end of file
diff --git a/htdocs/util/delete/.htaccess b/htdocs/util/delete/.htaccess
deleted file mode 100644
index 4a242eec..00000000
--- a/htdocs/util/delete/.htaccess
+++ /dev/null
@@ -1,4 +0,0 @@
-AuthUserFile /path/to/passwdfile/.htpasswd
-AuthName "OC-Admin"
-AuthType Basic
-require valid-user
\ No newline at end of file
diff --git a/htdocs/util/delete/cache.php b/htdocs/util/delete/cache.php
deleted file mode 100644
index 9cea4b39..00000000
--- a/htdocs/util/delete/cache.php
+++ /dev/null
@@ -1,182 +0,0 @@
-
-
-
-
-