new log picture gallery
@ -90,8 +90,10 @@
|
||||
$opt['locale']['JA']['locales'] = array('ja_JP.utf8', 'ja_JP', 'jp');
|
||||
|
||||
$opt['locale']['EN']['timezone'] = 'Europe/Berlin';
|
||||
$opt['locale']['EN']['format']['dm'] = '%m/%d';
|
||||
$opt['locale']['EN']['format']['dateshort'] = '%m/%d/%y';
|
||||
$opt['locale']['EN']['format']['date'] = '%x';
|
||||
$opt['locale']['EN']['format']['datelong'] = '%d. %B %Y';
|
||||
$opt['locale']['EN']['format']['datelong'] = '%B %d, %Y';
|
||||
$opt['locale']['EN']['format']['datetime'] = '%x %I:%M %p';
|
||||
$opt['locale']['EN']['format']['datetimesec'] = '%x %X';
|
||||
$opt['locale']['EN']['format']['time'] = '%I:%M %p';
|
||||
@ -101,6 +103,8 @@
|
||||
$opt['locale']['EN']['page']['subtitle2'] = '';
|
||||
|
||||
$opt['locale']['DE']['timezone'] = 'Europe/Berlin';
|
||||
$opt['locale']['DE']['format']['dm'] = '%d.%m.';
|
||||
$opt['locale']['DE']['format']['dateshort'] = '%d.%m.%y';
|
||||
$opt['locale']['DE']['format']['date'] = '%x';
|
||||
$opt['locale']['DE']['format']['datelong'] = '%d. %B %Y';
|
||||
$opt['locale']['DE']['format']['datetime'] = '%x %H:%M';
|
||||
@ -113,6 +117,8 @@
|
||||
$opt['locale']['DE']['helpwiki'] = "http://wiki.opencaching.de/index.php/";
|
||||
|
||||
$opt['locale']['FR']['timezone'] = 'Europe/Berlin';
|
||||
$opt['locale']['FR']['format']['dm'] = '%d.%m.';
|
||||
$opt['locale']['DE']['format']['dateshort'] = '%d.%m.%y';
|
||||
$opt['locale']['FR']['format']['date'] = '%x';
|
||||
$opt['locale']['FR']['format']['datelong'] = '%d. %B %Y';
|
||||
$opt['locale']['FR']['format']['datetime'] = '%x %H:%M';
|
||||
@ -122,6 +128,8 @@
|
||||
$opt['locale']['FR']['country'] = 'FR';
|
||||
|
||||
$opt['locale']['PL']['timezone'] = 'Europe/Berlin';
|
||||
$opt['locale']['PL']['format']['dm'] = '%d.%m.';
|
||||
$opt['locale']['DE']['format']['dateshort'] = '%d.%m.%y';
|
||||
$opt['locale']['PL']['format']['date'] = '%x';
|
||||
$opt['locale']['PL']['format']['datelong'] = '%d. %B %Y';
|
||||
$opt['locale']['PL']['format']['datetime'] = '%x %H:%M';
|
||||
@ -131,6 +139,8 @@
|
||||
$opt['locale']['PL']['country'] = 'PL';
|
||||
|
||||
$opt['locale']['NL']['timezone'] = 'Europe/Berlin';
|
||||
$opt['locale']['NL']['format']['dm'] = '%d.%m.';
|
||||
$opt['locale']['DE']['format']['dateshort'] = '%d.%m.%y';
|
||||
$opt['locale']['NL']['format']['date'] = '%x';
|
||||
$opt['locale']['NL']['format']['datelong'] = '%d. %B %Y';
|
||||
$opt['locale']['NL']['format']['datetime'] = '%x %H:%M';
|
||||
@ -142,6 +152,8 @@
|
||||
$opt['locale']['NL']['country'] = 'NL';
|
||||
|
||||
$opt['locale']['IT']['timezone'] = 'Europe/Berlin';
|
||||
$opt['locale']['DE']['format']['dateshort'] = '%d.%m.%y';
|
||||
$opt['locale']['IT']['format']['dm'] = '%d.%m.';
|
||||
$opt['locale']['IT']['format']['date'] = '%x';
|
||||
$opt['locale']['IT']['format']['datelong'] = '%d. %B %Y';
|
||||
$opt['locale']['IT']['format']['datetime'] = '%x %H:%M';
|
||||
@ -153,6 +165,8 @@
|
||||
$opt['locale']['IT']['page']['subtitle2'] = '';
|
||||
|
||||
$opt['locale']['RU']['timezone'] = 'Europe/Berlin';
|
||||
$opt['locale']['DE']['format']['dateshort'] = '%d.%m.%y';
|
||||
$opt['locale']['RU']['format']['dm'] = '%d.%m.';
|
||||
$opt['locale']['RU']['format']['date'] = '%x';
|
||||
$opt['locale']['RU']['format']['datelong'] = '%d. %B %Y';
|
||||
$opt['locale']['RU']['format']['datetime'] = '%x %H:%M';
|
||||
@ -162,6 +176,8 @@
|
||||
$opt['locale']['RU']['country'] = 'RU';
|
||||
|
||||
$opt['locale']['ES']['timezone'] = 'Europe/Berlin';
|
||||
$opt['locale']['DE']['format']['dateshort'] = '%d.%m.%y';
|
||||
$opt['locale']['ES']['format']['dm'] = '%d.%m.';
|
||||
$opt['locale']['ES']['format']['date'] = '%x';
|
||||
$opt['locale']['ES']['format']['datelong'] = '%d. %B %Y';
|
||||
$opt['locale']['ES']['format']['datetime'] = '%x %H:%M';
|
||||
@ -173,6 +189,8 @@
|
||||
$opt['locale']['ES']['page']['subtitle2'] = '';
|
||||
|
||||
$opt['locale']['SV']['timezone'] = 'Europe/Berlin';
|
||||
$opt['locale']['DE']['format']['dateshort'] = '%d.%m.%y';
|
||||
$opt['locale']['SV']['format']['dm'] = '%d.%m.';
|
||||
$opt['locale']['SV']['format']['date'] = '%Y-%m-%d';
|
||||
$opt['locale']['SV']['format']['datelong'] = '%Y-%m-%d';
|
||||
$opt['locale']['SV']['format']['datetime'] = '%x %H:%M';
|
||||
@ -184,6 +202,8 @@
|
||||
$opt['locale']['SV']['page']['subtitle2'] = '';
|
||||
|
||||
$opt['locale']['NO']['timezone'] = 'Europe/Berlin';
|
||||
$opt['locale']['DE']['format']['dateshort'] = '%d.%m.%y';
|
||||
$opt['locale']['NO']['format']['dm'] = '%d.%m.';
|
||||
$opt['locale']['NO']['format']['date'] = '%Y-%m-%d';
|
||||
$opt['locale']['NO']['format']['datelong'] = '%Y-%m-%d';
|
||||
$opt['locale']['NO']['format']['datetime'] = '%x %H:%M';
|
||||
@ -195,6 +215,8 @@
|
||||
$opt['locale']['NO']['page']['subtitle2'] = '';
|
||||
|
||||
$opt['locale']['DA']['timezone'] = 'Europe/Berlin';
|
||||
$opt['locale']['DE']['format']['dateshort'] = '%d.%m.%y';
|
||||
$opt['locale']['DA']['format']['dm'] = '%d.%m.';
|
||||
$opt['locale']['DA']['format']['date'] = '%Y-%m-%d';
|
||||
$opt['locale']['DA']['format']['datelong'] = '%Y-%m-%d';
|
||||
$opt['locale']['DA']['format']['datetime'] = '%x %H:%M';
|
||||
@ -206,6 +228,8 @@
|
||||
$opt['locale']['DA']['page']['subtitle2'] = '';
|
||||
|
||||
$opt['locale']['PT']['timezone'] = 'Europe/Berlin';
|
||||
$opt['locale']['DE']['format']['dateshort'] = '%d.%m.%y';
|
||||
$opt['locale']['PT']['format']['dm'] = '%d.%m.';
|
||||
$opt['locale']['PT']['format']['date'] = '%Y-%m-%d';
|
||||
$opt['locale']['PT']['format']['datelong'] = '%Y-%m-%d';
|
||||
$opt['locale']['PT']['format']['datetime'] = '%x %H:%M';
|
||||
@ -217,6 +241,8 @@
|
||||
$opt['locale']['PT']['page']['subtitle2'] = '';
|
||||
|
||||
$opt['locale']['JA']['timezone'] = 'Europe/Berlin';
|
||||
$opt['locale']['DE']['format']['dateshort'] = '%d.%m.%y';
|
||||
$opt['locale']['JA']['format']['dm'] = '%d.%m.';
|
||||
$opt['locale']['JA']['format']['date'] = '%Y-%m-%d';
|
||||
$opt['locale']['JA']['format']['datelong'] = '%Y-%m-%d';
|
||||
$opt['locale']['JA']['format']['datetime'] = '%x %H:%M';
|
||||
|
@ -707,6 +707,7 @@ INSERT INTO `profile_options` (`id`, `name`, `trans_id`, `internal_use`, `defaul
|
||||
INSERT INTO `profile_options` (`id`, `name`, `trans_id`, `internal_use`, `default_value`, `check_regex`, `option_order`, `option_input`, `optionset`) VALUES ('8', 'Maximum caches on map<br />(%1-%2, 0=automatic)', '1871', '1', '0', '^[1-9][0-9]{2,3}$', '130', 'text', '2');
|
||||
INSERT INTO `profile_options` (`id`, `name`, `trans_id`, `internal_use`, `default_value`, `check_regex`, `option_order`, `option_input`, `optionset`) VALUES ('9', 'Cache icons', '1872', '1', '1', '^[1-9]$', '140', 'select:1=classic OC,', '2');
|
||||
INSERT INTO `profile_options` (`id`, `name`, `trans_id`, `internal_use`, `default_value`, `check_regex`, `option_order`, `option_input`, `optionset`) VALUES ('10', 'Show %1preview pictures</a><br />(% of map area, 0=off)', '1928', '1', '7', '^[0-5]?[0-9]$', '150', 'text', '2');
|
||||
INSERT INTO `profile_options` (`id`, `name`, `trans_id`, `internal_use`, `default_value`, `check_regex`, `option_order`, `option_input`, `optionset`) VALUES ('11', 'Show picture stats and gallery', '1944', '1', '1', '^[0-1]$', '60', 'checkbox', '1');
|
||||
|
||||
-- Table replication_overwritetypes
|
||||
SET NAMES 'utf8';
|
||||
@ -842,7 +843,7 @@ INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustrin
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('5', 'MNU_START_NEWCACHES', 'New caches', '122', 'New caches', '122', '0', 'newcaches.php', '1', '1', '4', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('6', 'MNU_START_NEWCACHES_WITHOUTOWN', 'Without Germany', '121', 'Without Germany', '121', '0', 'newcachesrest.php', '1', '5', '1', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('7', 'MNU_START_NEWLOGS', 'New logs', '120', 'New logs', '120', '0', 'newlogs.php', '1', '1', '5', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('8', 'MNU_START_IMPRINT', 'Imprint', '15', 'Imprint', '15', '0', 'articles.php?page=impressum', '1', '1', '10', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('8', 'MNU_START_IMPRINT', 'Imprint', '15', 'Imprint', '15', '0', 'articles.php?page=impressum', '1', '1', '11', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('9', 'MNU_MYPROFILE', 'My profile', '119', 'My profile', '119', '0', 'myhome.php', '1', '0', '2', '#E8DDE4', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('10', 'MNU_CACHES', 'Caches', '118', 'Caches', '118', '0', 'search.php', '1', '0', '3', '#FFFFC5', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('12', 'MNU_ADMIN', 'Admin', '116', 'Admin', '116', '1', 'translate.php', '1', '0', '7', '#E8DDE4', '0', NULL);
|
||||
@ -853,8 +854,8 @@ INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustrin
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('24', 'MNU_ADMIN_MENU_NEWITEM', 'New Item', '124', 'New Item', '124', '0', 'newitem.php', '0', '13', '1', '', '0', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('25', 'MNU_CACHES_TOPS', 'Special caches', '52', 'Special caches', '52', '0', 'tops.php', '1', '10', '3', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('26', 'MNU_CACHES_HIDE_PREVIEW', 'HTML preview', '58', 'HTML preview', '58', '0', 'htmlprev.php', '1', '21', '2', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('27', 'MNU_START_CONTACT', 'Contact', '16', 'Contact', '16', '0', 'articles.php?page=contact', '0', '1', '11', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('28', 'MNU_START_PRIVACY', 'Privacy statement', '14', 'Privacy statement', '14', '0', 'articles.php?page=dsb', '0', '1', '12', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('27', 'MNU_START_CONTACT', 'Contact', '16', 'Contact', '16', '0', 'articles.php?page=contact', '0', '1', '12', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('28', 'MNU_START_PRIVACY', 'Privacy statement', '14', 'Privacy statement', '14', '0', 'articles.php?page=dsb', '0', '1', '13', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('29', 'MNU_START_REGISTER_ACTIVATION', 'Activation', '127', 'Activation', '127', '0', 'activation.php', '0', '3', '1', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('30', 'MNU_CACHES_USERPROFILE', 'Userprofile', '128', 'Userprofile', '128', '0', 'viewprofile.php', '0', '10', '4', '', '0', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('31', 'MNU_START_NEWS_POST', 'Post some news', '180', 'Post some news', '180', '0', 'newstopic.php', '0', '4', '1', '', '0', NULL);
|
||||
@ -892,15 +893,16 @@ INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustrin
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('64', 'MNU_CACHES_ADOPT', 'Adoptions', '827', 'Adoptions', '827', '0', 'adoptcache.php', '0', '10', '9', '', '0', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('65', 'MNU_ADMIN_USER', 'Manage User', '859', 'Manage User', '859', '0', 'adminuser.php', '1', '12', '4', '', '0', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('66', 'MNU_ADMIN_NEWS', 'News approve', '873', 'News approve', '873', '1', 'newsapprove.php', '1', '12', '5', '', '0', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('67', 'MNU_START_DONATE', 'Donations', '900', 'Donations', '900', '0', 'articles.php?page=donations', '1', '1', '6', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('68', 'MNU_START_TOS', 'Terms of use', '906', 'Terms of use', '906', '0', 'articles.php?page=impressum#tos', '1', '1', '9', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('69', 'MNU_START_TEAM', 'Our Team', '907', 'Our Team', '907', '0', 'articles.php?page=team', '1', '1', '7', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('67', 'MNU_START_DONATE', 'Donations', '900', 'Donations', '900', '0', 'articles.php?page=donations', '1', '1', '7', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('68', 'MNU_START_TOS', 'Terms of use', '906', 'Terms of use', '906', '0', 'articles.php?page=impressum#tos', '1', '1', '10', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('69', 'MNU_START_TEAM', 'Our Team', '907', 'Our Team', '907', '0', 'articles.php?page=team', '1', '1', '8', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('70', 'MNU_MAP', 'Map', '1269', 'Map', '1269', '0', 'map2.php', '1', '0', '4', '#FFFFC5', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('85', 'MNU_CACHES_LOG', 'Create a logentry', '1687', 'Create a logentry', '1687', '0', 'log2.php', '0', '10', '10', '', '0', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('86', 'MNU_START_CHANGELOG', 'Changelog', '1797', 'Changelog', '1797', '0', 'articles.php?page=changelog', '0', '1', '10', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('87', 'MNU_START_OPERATOR', 'Operator Association', '1798', 'Operator Association', '1798', '0', 'articles.php?page=verein', '1', '1', '8', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('86', 'MNU_START_CHANGELOG', 'Changelog', '1797', 'Changelog', '1797', '0', 'articles.php?page=changelog', '0', '0', '10', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('87', 'MNU_START_OPERATOR', 'Operator Association', '1798', 'Operator Association', '1798', '0', 'articles.php?page=verein', '1', '1', '9', '', '1', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('88', 'MNU_VERIFY_EMAIL', 'Verify e-mail address', '1824', 'Verify e-mail address', '1824', '0', 'verifyemail.php', '0', '0', '0', '', '0', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('89', 'MNU_ADMIN_ADMINS', 'Admins', '1831', 'Admins', '1831', '1', 'admins.php', '1', '12', '6', '', '0', NULL);
|
||||
INSERT INTO `sys_menu` (`id`, `id_string`, `title`, `title_trans_id`, `menustring`, `menustring_trans_id`, `access`, `href`, `visible`, `parent`, `position`, `color`, `sitemap`, `only_if_parent`) VALUES ('90', 'MNU_START_NEWLOGPICS', 'Picture gallery', '1940', 'Picture gallery', '1940', '0', 'newlogpics.php', '1', '7', '7', '', '1', NULL);
|
||||
|
||||
-- Table sys_trans
|
||||
SET NAMES 'utf8';
|
||||
@ -2361,6 +2363,8 @@ INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1875', 'You mus
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1876', 'Map data \© <a href=\"http://www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap</a> contributors', '2013-03-03 00:00:00');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1877', 'tiles provided by <a href=\"http://www.mapquest.com/\" target=\"_blank\">MapQuest</a>', '2013-03-03 00:00:00');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1878', 'Map data \© <a href=\"http://www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap</a> and <a href=\"http://www.thunderforest.com/opencyclemap/\" target=\"_blank\">OpenCycleMap</a> contributors', '2013-03-03 00:00:00');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1918', 'Please use the spoiler mark also for log pictures, to prevent that they appear on log gallery pages.', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1919', 'New log pictures', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1920', 'D', '2013-03-03 00:00:00');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1921', 'T', '2013-03-03 00:00:00');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1922', 'click on spoiler to display', '2013-03-03 00:00:00');
|
||||
@ -2372,6 +2376,27 @@ INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1927', 'Final',
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1928', 'Show %1preview pictures</a><br />(% of map area, 0=off)', '2013-03-03 00:00:00');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1929', 'Preview picture for map \– is shown when this cache is selected on the map. You can have only <em>one</em> preview picture per cache.', '2013-03-03 00:00:00');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1930', 'Max. %1 caches can be displayed with Microsoft Internet Explorer.', '2013-03-03 00:00:00');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1940', 'Picture gallery', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1941', 'Dates show the date of picture upload, wich can differ from the log date.', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1942', 'Maximum one picture per day and user is displayed here. The small gallery on the start page is additionally limited to one picture per cache and day.', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1943', 'All pictures are copyrighted. If you want to use them, ask the picture author for permission. From April 7, 2013, the logs including pictures may be used in unchanged form under the terms of the new <a href=\"articles.php?page=impressum#datalicense\">data license</a>.', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1944', 'Show picture stats and gallery', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1945', 'Log pictures', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1946', 'Log pictures: %1', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1947', 'Log pictures of %1', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1948', 'Your log pictures', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1949', 'Your latest log pictures', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1950', 'In your <a href=\"mydetails.php\">profile settings</a> you can choose if your log pictures stat and gallery is visible for other users.', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1951', 'This is what your profile looks like to other users:', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1952', 'Your public profile', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1953', 'You did not upload any log pictures yet.', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1954', 'Pictures marked as spoiler are not shown; therefore the number of pictures on this page can be smaller than in the profile statistics.', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1955', 'Other information', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1956', 'Log picture', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1957', '\"Spoiler\" pictures which show details of the stash should not be visible here. If you encounter an open visible spoiler, you may contact the logger by the e-mail button in his profile and ask him to mark it as spoiler.', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1958', 'Back to the cache description', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1959', 'Only the last %1 pictures are displayed.', '2013-02-23 19:00:04');
|
||||
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('1960', 'Page', '2013-02-23 19:00:04');
|
||||
|
||||
-- Table sys_trans_ref
|
||||
SET NAMES 'utf8';
|
||||
@ -4578,7 +4603,7 @@ INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUE
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('79', 'DE', 'Isländisch', '2010-08-28 11:48:06');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('80', 'DE', 'Startseite', '2010-08-28 11:48:06');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('81', 'DE', 'Was finde ich auf dieser Website?', '2010-08-28 11:48:06');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('82', 'DE', '<p>Hier findest du Geocaches aus der ganzen Welt, mit Schwerpunkt Deutschland, \Österreich, Schweiz, Italien und Spanien. Au\ßerdem gibt es Informationsangebote rund ums Geocaching, und ein Forum und einen Chat zum Austausch mit anderen Cachern.</p>', '2010-08-28 11:48:06');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('82', 'DE', 'Auf dieser Website findest du Geocaches aus der ganzen Welt, mit Schwerpunkt Deutschland, \Österreich, Schweiz, Italien und Spanien. Au\ßerdem gibt es Informationsangebote rund ums Geocaching, und ein Forum und einen Chat zum Austausch mit Gleichgesinnten.', '2010-08-28 11:48:06');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('83', 'DE', 'Bei der Dateiübertragung ist ein Fehler aufgetreten.', '2010-08-28 11:48:06');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('84', 'DE', 'Die Datei war zu groß. Es sind maximal 150 kB erlaubt.', '2010-08-28 11:48:06');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('85', 'DE', 'Kein Bild angegeben.', '2010-08-28 11:48:06');
|
||||
@ -5953,6 +5978,8 @@ INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUE
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1876', 'DE', 'Kartendaten \© <a href=\"http://www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap</a>-Mitwirkende', '2012-10-11 00:00:00');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1877', 'DE', 'Kacheln bereitgestellt von <a href=\"http://www.mapquest.com/\" target=\"_blank\">MapQuest</a>', '2012-10-11 00:00:00');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1878', 'DE', 'Kartendaten \© <a href=\"http://www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap</a>- und <a href=\"http://www.thunderforest.com/opencyclemap/\" target=\"_blank\">OpenCycleMap</a>-Mitwirkende', '2012-10-11 00:00:00');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1918', 'DE', 'Bitte verwende diese Markierung auch für Logbilder, damit sie nicht auf den Log-Galerieseiten erscheinen.', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1919', 'DE', 'Neue Logbilder', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1920', 'DE', 'D', '2012-10-11 00:00:00');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1921', 'DE', 'T', '2012-10-11 00:00:00');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1922', 'DE', 'Spoiler anklicken zum Anzeigen', '2012-10-11 00:00:00');
|
||||
@ -5964,6 +5991,27 @@ INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUE
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1928', 'DE', '%1Vorschaubilder</a> anzeigen<br />(% der Kartenfläche, 0=aus)', '2012-10-11 00:00:00');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1929', 'DE', 'Kartenvorschaubild \– wird angezeigt, wenn dieser Cache auf der Karte angeklickt wird. Es ist maximal <em>ein</em> Vorschaubild pro Cache wählbar.', '2012-10-11 00:00:00');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1930', 'DE', 'Mit dem Microsoft Internet Explorer werden<br />maximal %1 Caches angezeigt.', '2012-10-11 00:00:00');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1940', 'DE', 'Bildgalerie', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1941', 'DE', 'Es wird jeweils das Datum angezeigt, an dem das Bild hochgeladen wurde, das heißt es kann vom Logdatum abweichen.', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1942', 'DE', 'Es wird höchstens ein Bild pro Tag und Benutzer angezeigt. Die kleine Galerie auf der Startseite ist zusätzlich auf ein Bild pro Cache und Tag beschränkt.', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1943', 'DE', 'Alle Bilder sind urheberrechtlich geschützt. Wenn du sie verwenden möchtest, frage den jeweiligen Autor um Erlaubnis. Ab dem 7. April 2013 unterliegen die Logs inklusive Bildern der neuen <a href="articles.php?page=impressum#datalicense">Datenlizenz</a>.', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1944', 'DE', 'Bildstatistik und -galerie anzeigen', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1945', 'DE', 'Logbilder', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1946', 'DE', 'Logbilder: %1', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1947', 'DE', 'Logbilder von %1', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1948', 'DE', 'Deine Logbilder', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1949', 'DE', 'Deine neuesten Logbilder', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1950', 'DE', 'In deinen <a href=\"mydetails.php\">Profileinstellungen</a> kannst du festlegen, ob deine Logbild-Statistik und -Galerie für andere Benutzer sichtbar sein soll oder nicht.', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1951', 'DE', 'So sieht dein Profil für andere Benutzer aus:', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1952', 'DE', 'Dein öffentliches Profil', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1953', 'DE', 'Du hast noch keine Logbilder hochgeladen.', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1954', 'DE', 'Als Spoiler markierte Bilder werden nicht angezeigt; daher kann die Zahl der Bilder auf dieser Seite geringer sein als in der Benutzerstatistik.', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1955', 'DE', 'Sonstige Informationen', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1956', 'DE', 'Logbild', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1957', 'DE', '„Spoiler“-Bilder, die Details des Verstecks zeigen, sollten hier nicht sichbar sein. Falls du trotzdem ein offen sichtbares Spoilerfoto findest, kannst du den Logger über die E-Mail-Funktion in seinem Profil kontaktieren und ihn bitten, es als Spoiler zu kennzeichnen.', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1958', 'DE', 'zurück zur Cachebeschreibung', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1959', 'DE', 'Es werden nur die neuesten %1 Bilder angezeigt.', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1960', 'DE', 'Seite', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1', 'EN', 'Reorder IDs \r', '2010-09-02 00:15:30');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2', 'EN', 'The database could not be reconnected.', '2010-08-28 11:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('3', 'EN', 'Testing – please do not login', '2010-08-28 11:48:07');
|
||||
@ -7420,6 +7468,8 @@ INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUE
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1876', 'EN', 'Map data \© <a href=\"http://www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap</a> contributors', '2012-10-11 00:00:00');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1877', 'EN', 'tiles provided by <a href=\"http://www.mapquest.com/\" target=\"_blank\">MapQuest</a>', '2012-10-11 00:00:00');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1878', 'EN', 'Map data \© <a href=\"http://www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap</a> and <a href=\"http://www.thunderforest.com/opencyclemap/\" target=\"_blank\">OpenCycleMap</a> contributors', '2012-10-11 00:00:00');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1918', 'EN', 'Please use the spoiler mark also for log pictures, to prevent that they appear on log gallery pages.', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1919', 'EN', 'New log pictures', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1920', 'EN', 'D', '2012-10-11 00:00:00');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1921', 'EN', 'T', '2012-10-11 00:00:00');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1922', 'EN', 'click on spoler to display', '2012-10-11 00:00:00');
|
||||
@ -7431,6 +7481,27 @@ INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUE
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1928', 'EN', 'Show %1preview pictures</a><br />(% of map area, 0=off)', '2012-10-11 00:00:00');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1929', 'EN', 'Preview picture for map \– is shown when this cache is selected on the map. You can have only <em>one</em> preview picture per cache.', '2012-10-11 00:00:00');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1930', 'EN', 'Max. %1 caches can be displayed with Microsoft Internet Explorer.', '2012-10-11 00:00:00');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1940', 'EN', 'Picture gallery', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1941', 'EN', 'Dates show the date of picture upload, wich can differ from the log date. Therefore old dates can appear in the list.', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1942', 'EN', 'Maximum one picture per day and user is displayed here. The small gallery on the start page is additionally limited to one picture per cache and day.', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1943', 'EN', 'All pictures are copyrighted. If you want to use them, ask the picture author for permission. From April 7, 2013, the logs including pictures may be used in unchanged form under the terms of the new <a href="articles.php?page=impressum#datalicense">data license</a>.', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1944', 'EN', 'Show picture stats and gallery', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1945', 'EN', 'Log pictures', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1946', 'EN', 'Log pictures: %1', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1947', 'EN', 'Log pictures of %1', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1948', 'EN', 'Your log pictures', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1949', 'EN', 'Your latest log pictures', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1950', 'EN', 'In your <a href=\"mydetails.php\">profile settings</a> you can choose if your log pictures stat and gallery is visible for other users.', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1951', 'EN', 'This is what your profile looks like to other users:', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1952', 'EN', 'Your public profile', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1953', 'EN', 'You did not upload any log pictures yet.', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1954', 'EN', 'Pictures marked as spoiler are not shown; therefore the number of pictures on this page can be smaller than in the profile statistics.', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1955', 'EN', 'Other information', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1956', 'EN', 'Log picture', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1957', 'EN', '\"Spoiler\" pictures which show details of the stash should not be visible here. If you encounter an open visible spoiler, you may contact the logger by the e-mail button in his profile and ask him to mark it as spoiler.', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1958', 'EN', 'Back to the cache description', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1959', 'EN', 'Only the last %1 pictures are displayed.', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1960', 'EN', 'Seite', '2013-02-19 05:48:07');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('1', 'ES', 'Reordenar ID', '2010-12-09 00:17:55');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2', 'ES', 'La base de datos no se pudo conectar.', '2010-12-09 00:17:55');
|
||||
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('3', 'ES', 'En pruebas - por favor, no entre.', '2010-12-09 00:17:55');
|
||||
|
@ -8,6 +8,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
require('./lib2/web.inc.php');
|
||||
require('./lib2/logic/logpics.inc.php');
|
||||
$sUserCountry = $login->getUserCountry();
|
||||
|
||||
$tpl->name = 'start';
|
||||
@ -25,6 +26,9 @@
|
||||
else
|
||||
$tpl->assign('message',$translate->t('<p>You can find everything you need to go Geocaching ...</p>', '', '', 0));
|
||||
|
||||
// pictures
|
||||
$tpl->assign('pictures', get_logpics(LOGPICS_FOR_STARTPAGE_GALLERY));
|
||||
|
||||
// news entries
|
||||
$tpl->assign('news_onstart', $opt['news']['onstart'] );
|
||||
|
||||
|
BIN
htdocs/lang/de/ocstyle/images/thumb/thumb404_1.gif
Normal file
After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
BIN
htdocs/lang/de/ocstyle/images/thumb/thumbextern_1.gif
Normal file
After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
BIN
htdocs/lang/de/ocstyle/images/thumb/thumbintern_1.gif
Normal file
After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 987 B After Width: | Height: | Size: 987 B |
BIN
htdocs/lang/de/ocstyle/images/thumb/thumbspoiler_1.gif
Normal file
After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 718 B After Width: | Height: | Size: 718 B |
BIN
htdocs/lang/de/ocstyle/images/thumb/thumbunknown_1.gif
Normal file
After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
@ -115,7 +115,7 @@
|
||||
//-->
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" media="print" href="resource2/{style}/css/style_print.css?ft={print_css_time}">
|
||||
<script type="text/javascript" src="resource2/{style}/js/enlargeit.js"></script>
|
||||
<script type="text/javascript" src="resource2/{style}/js/enlargeit/enlargeit.js"></script>
|
||||
{htmlheaders}
|
||||
</head>
|
||||
|
||||
|
@ -37,4 +37,5 @@
|
||||
define('USR_OPT_GMZOOM', 1);
|
||||
define('USR_OPT_SHOWSTATS', 5);
|
||||
define('USR_OPT_TRANSLANG', 6);
|
||||
define('USR_OPT_PICSTAT', 11);
|
||||
?>
|
||||
|
@ -18,6 +18,7 @@
|
||||
sql_fetch_array($rs) ... mysql_fetch_array with charset conversion
|
||||
sql_fetch_assoc($rs) ... mysql_fetch_assoc with charset conversion
|
||||
sql_fetch_row($rs) ... mysql_fetch_row with charset conversion
|
||||
sql_fetch_assoc_table($rs) ... fetch_assoc for all rows
|
||||
sql_temp_table($table) ... registers an placeholder for use as temporary
|
||||
table and drop's temporary tables if
|
||||
mysql_pconnect is used
|
||||
@ -524,6 +525,15 @@
|
||||
return $retval;
|
||||
}
|
||||
|
||||
function sql_fetch_assoc_table($rs)
|
||||
{
|
||||
$result = array();
|
||||
while ($r = sql_fetch_assoc($rs))
|
||||
$result[] = $r;
|
||||
sql_free_result($rs);
|
||||
return $result;
|
||||
}
|
||||
|
||||
function sql_fetch_row($rs)
|
||||
{
|
||||
global $opt;
|
||||
|
@ -249,7 +249,7 @@ class cache
|
||||
sql("INSERT INTO `cache_visits` (`cache_id`, `user_id_ip`, `count`) VALUES (&1, '&2', 1)
|
||||
ON DUPLICATE KEY UPDATE `count`=`count`+1", $nCacheId, $sIdentifier);
|
||||
|
||||
// if the previous statement does an INSERT, it was the first visit for this user
|
||||
// if the previous statement does an INSERT, it was the first visit for this user today
|
||||
if (sql_affected_rows() == 1)
|
||||
{
|
||||
if ($nVisitUserId != sql_value("SELECT `user_id` FROM `caches` WHERE `cache_id`='&1'", 0, $nCacheId))
|
||||
@ -296,7 +296,7 @@ class cache
|
||||
while ($rLog = sql_fetch_assoc($rsLogs))
|
||||
{
|
||||
$pictures = array();
|
||||
$rsPictures = sql("SELECT `url`, `title`, `uuid` FROM `pictures` WHERE `object_id`='&1' AND `object_type`=1", $rLog['id']);
|
||||
$rsPictures = sql("SELECT `url`, `title`, `uuid`, `id`, `spoiler` FROM `pictures` WHERE `object_id`='&1' AND `object_type`=1", $rLog['id']);
|
||||
while ($rPicture = sql_fetch_assoc($rsPictures))
|
||||
$pictures[] = $rPicture;
|
||||
sql_free_result($rsPictures);
|
||||
|
@ -46,4 +46,11 @@
|
||||
define('OBJECT_TRAVELER', 5);
|
||||
define('OBJECT_PICTURE', 6);
|
||||
define('OBJECT_REMOVEDOBJECT', 7);
|
||||
|
||||
define('MAX_LOGENTRIES_ON_CACHEPAGE', 5);
|
||||
define('MAX_PICTURES_PER_GALLERY_PAGE', 48); // must be multiple of 6
|
||||
define('MAX_PICTURES_IN_CACHE_GALLERY', 120); // must be multiple of 6
|
||||
// As of march 2013, there are a good deal of OC.de caches with 50-100 pics,
|
||||
// but only one with more (~500 pics). If lots of caches have >100 pics,
|
||||
// it may pay out to limit the gallery e.g. to 60 pics and implement browsing.
|
||||
?>
|
186
htdocs/lib2/logic/logpics.inc.php
Normal file
@ -0,0 +1,186 @@
|
||||
<?php
|
||||
/***************************************************************************
|
||||
* For license information see doc/license.txt
|
||||
*
|
||||
* Unicode Reminder メモ
|
||||
*
|
||||
* retrieves data from pictures table for log picture stats and galleries;
|
||||
* data is mostly processed within res_logpictures.tpl
|
||||
***************************************************************************/
|
||||
|
||||
// This kind of purpose definition may be suboptimal. If functions need
|
||||
// to be reused of other purpose, change naming according to the retrieved
|
||||
// data set instead of destination view.
|
||||
|
||||
define('LOGPICS_FOR_STARTPAGE_GALLERY', 1);
|
||||
define('LOGPICS_FOR_NEWPICS_GALLERY', 2);
|
||||
define('LOGPICS_FOR_USER_STAT', 3);
|
||||
define('LOGPICS_FOR_USER_GALLERY', 4); // params: userid, startat
|
||||
define('LOGPICS_FOR_MYHOME_GALLERY', 5);
|
||||
define('LOGPICS_FOR_CACHE_STAT', 6); // params: cacheid
|
||||
define('LOGPICS_FOR_CACHE_GALLERY', 7); // params: userid, cacheid
|
||||
|
||||
|
||||
function get_logpics($purpose, $userid=0, $cacheid=0, $startat=0)
|
||||
{
|
||||
global $login;
|
||||
|
||||
// Variables to return for res_logpictures are
|
||||
//
|
||||
// from pictures: uuid, url and title
|
||||
// from cache_logs: id, cache_id, date and type (type currently unused)
|
||||
// from user: user_id and username, only if no $userid param is given
|
||||
|
||||
$rs = false;
|
||||
|
||||
$fields = "`pics`.`uuid` AS `pic_uuid`, `pics`.`url` AS `pic_url`,
|
||||
`pics`.`title`, `pics`.`date_created`,
|
||||
`logs`.`user_id`, `logs`.`cache_id`,
|
||||
`logs`.`date` AS `logdate`, `pics`.`date_created` < LEFT(NOW(),4) AS `oldyear`,
|
||||
`logs`.`id` AS `logid`, `logs`.`type` AS `logtype`";
|
||||
$join_logs = "INNER JOIN `cache_logs` `logs` ON `logs`.`id`=`pics`.`object_id`";
|
||||
$join_caches = "INNER JOIN `caches` ON `caches`.`cache_id`=`logs`.`cache_id`";
|
||||
$join_cachestatus =
|
||||
"INNER JOIN `cache_status` ON `caches`.`status`=`cache_status`.`id` AND `allow_user_view`=1";
|
||||
$join_user = "INNER JOIN `user` ON `user`.`user_id`=`logs`.`user_id`";
|
||||
|
||||
switch ($purpose)
|
||||
{
|
||||
case LOGPICS_FOR_STARTPAGE_GALLERY:
|
||||
// one pic per user and day,
|
||||
// one pic per cache and day
|
||||
// no spoilers, no bad data, no invisible or unpublished caches
|
||||
|
||||
// The group-by via nested query make this whole thing sufficiently performant.
|
||||
// Direct group-bys combined with the wheres are awful slow, and no kind of
|
||||
// index seems to be good enough to speed it up.
|
||||
|
||||
// Indexing the for the inner WHERE seems rather useless, as it filters out
|
||||
// only a few percent of caches. We must rely on fast data caching.
|
||||
|
||||
$rs = sql_slave(
|
||||
"SELECT $fields, `user`.`username`, `pics`.`date_created` AS `picdate`
|
||||
FROM (SELECT * FROM
|
||||
(SELECT `uuid`, `url`, `title`, `date_created`, `object_id` FROM `pictures`
|
||||
WHERE `local`=1 AND `display`=1 AND `spoiler`=0 AND `unknown_format`=0
|
||||
AND `object_type`=1
|
||||
ORDER BY `date_created` DESC
|
||||
LIMIT 120) `piics`
|
||||
/* 20 times reserve for filtering out user dups, cache dups and invisibles */
|
||||
GROUP BY `object_id`, LEFT(`date_created`,10)) `pics` /* max. 1 pic per cache and day */
|
||||
$join_logs
|
||||
$join_caches
|
||||
$join_cachestatus
|
||||
$join_user
|
||||
GROUP BY `user`.`user_id`, LEFT(`pics`.`date_created`,10) /* max. 1 pic per user and day */
|
||||
ORDER BY `pics`.`date_created` DESC
|
||||
LIMIT 6");
|
||||
break;
|
||||
|
||||
case LOGPICS_FOR_NEWPICS_GALLERY:
|
||||
// like above, without the "one pic per cache and day" condition
|
||||
// This saves us one grouped subquery.
|
||||
|
||||
$rs = sql_slave(
|
||||
"SELECT $fields, `user`.`username`, `pics`.`date_created` AS `picdate`
|
||||
FROM (SELECT `uuid`, `url`, `title`, `date_created`, `object_id` FROM `pictures`
|
||||
WHERE `local`=1 AND `display`=1 AND `spoiler`=0 AND `unknown_format`=0
|
||||
AND `object_type`=1
|
||||
ORDER BY `date_created` DESC
|
||||
LIMIT 480) `pics`
|
||||
/* 10 times reserve for filtering out user dups and invisibles */
|
||||
$join_logs
|
||||
$join_caches
|
||||
$join_cachestatus
|
||||
$join_user
|
||||
GROUP BY `user`.`user_id`, LEFT(`pics`.`date_created`,10)
|
||||
ORDER BY `date_created` DESC
|
||||
LIMIT &1", MAX_PICTURES_PER_GALLERY_PAGE);
|
||||
break;
|
||||
|
||||
case LOGPICS_FOR_USER_STAT:
|
||||
// just count all the logpics of one user
|
||||
|
||||
// It's faster, sensible and consistend with cache and log handling to count
|
||||
// also invisible data here. Actually, it is present, the pic was made and
|
||||
// uploaded with a log, and it is still visible for the logger himself
|
||||
// (and hopfully some time for all, independend of the invisible listing!).
|
||||
|
||||
$result = sql_value_slave(
|
||||
"SELECT COUNT(*)
|
||||
FROM `pictures` `pics`
|
||||
$join_logs
|
||||
WHERE `pics`.`object_type`=1 AND `logs`.`user_id`='&1'",
|
||||
0, $userid);
|
||||
break;
|
||||
|
||||
case LOGPICS_FOR_USER_GALLERY:
|
||||
// all pics of one user, except spoilers and invisibles
|
||||
|
||||
$rs = sql("SELECT $fields, `logs`.`date` AS `picdate`
|
||||
FROM `pictures` `pics`
|
||||
$join_logs
|
||||
$join_caches
|
||||
$join_cachestatus
|
||||
WHERE `object_type`=1 AND `logs`.`user_id`='&1' AND NOT `spoiler`
|
||||
ORDER BY `logs`.`date` DESC
|
||||
LIMIT &2, &3", $userid, $startat, MAX_PICTURES_PER_GALLERY_PAGE+1);
|
||||
break;
|
||||
|
||||
case LOGPICS_FOR_MYHOME_GALLERY:
|
||||
// all picture of one user, with the only exception of zombie pix hanging
|
||||
// by an old log deletion (we should remove those ...)
|
||||
|
||||
$rs = sql("SELECT $fields, `logs`.`date` AS `picdate`
|
||||
FROM `pictures` AS `pics`
|
||||
$join_logs
|
||||
WHERE `object_type`=1 AND `logs`.`user_id`='&1'
|
||||
ORDER BY `logs`.`date` DESC", $login->userid);
|
||||
|
||||
break;
|
||||
|
||||
case LOGPICS_FOR_CACHE_STAT:
|
||||
// all pictures for a cache
|
||||
// need not to exclude invisible caches, as this is only displayed in listing view
|
||||
|
||||
$result = sql_value(
|
||||
"SELECT COUNT(*)
|
||||
FROM `pictures` AS `pics`
|
||||
$join_logs
|
||||
WHERE `object_type`=1 AND `logs`.`cache_id`='&1'",
|
||||
0, $cacheid);
|
||||
break;
|
||||
|
||||
case LOGPICS_FOR_CACHE_GALLERY:
|
||||
// all picture for a cache
|
||||
// for all users except owner: also excluding invisble caches
|
||||
|
||||
$rs = sql("SELECT $fields, `user`.`username`, `logs`.`date` AS `picdate`
|
||||
FROM `pictures` AS `pics`
|
||||
$join_logs " .
|
||||
($userid == $login->userid ? "" : "$join_caches $join_cachestatus") . "
|
||||
$join_user
|
||||
WHERE `object_type`=1 AND `logs`.`cache_id`='&1'
|
||||
ORDER BY `logs`.`date` DESC
|
||||
LIMIT &2", $cacheid, MAX_PICTURES_IN_CACHE_GALLERY+1);
|
||||
break;
|
||||
|
||||
default:
|
||||
global $tpl;
|
||||
$tpl->error(ERROR_INVALID_OPERATION);
|
||||
return null;
|
||||
}
|
||||
|
||||
if ($rs !== false)
|
||||
{
|
||||
$result = sql_fetch_assoc_table($rs);
|
||||
while (count($result) % 6)
|
||||
// fill up table to full line length, so that < 6 pics do not spread over the table width
|
||||
$result[] = array('pic_uuid' => '');
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
?>
|
@ -233,6 +233,24 @@ class picture
|
||||
else
|
||||
return false;
|
||||
}
|
||||
function isVisibleOnCachePage()
|
||||
{
|
||||
if ($this->getObjectType() != OBJECT_CACHELOG)
|
||||
return null;
|
||||
else
|
||||
$rs = sql("SELECT `id` FROM `cache_logs` WHERE `cache_id`='&1'
|
||||
ORDER BY `date` DESC
|
||||
LIMIT &2",
|
||||
$this->getCacheId(), MAX_LOGENTRIES_ON_CACHEPAGE);
|
||||
$firstlogs = false;
|
||||
while ($r = sql_fetch_assoc($rs))
|
||||
if ($r['id'] == $this->getLogId())
|
||||
$firstlogs = true;
|
||||
|
||||
sql_free_result($rs);
|
||||
return $firstlogs;
|
||||
}
|
||||
|
||||
function getCacheId()
|
||||
{
|
||||
if ($this->getObjectType() == OBJECT_CACHELOG)
|
||||
|
@ -6,6 +6,8 @@
|
||||
***************************************************************************/
|
||||
|
||||
require_once('./lib2/web.inc.php');
|
||||
require('./lib2/logic/logpics.inc.php');
|
||||
|
||||
$tpl->name = 'myhome';
|
||||
$tpl->menuitem = MNU_MYPROFILE_OVERVIEW;
|
||||
$login->verify();
|
||||
@ -48,5 +50,10 @@
|
||||
// get number of sent emails
|
||||
$tpl->assign('emails', sql_value("SELECT COUNT(*) FROM `email_user` WHERE `from_user_id`='&1'", 0, $login->userid));
|
||||
|
||||
// get log pictures
|
||||
$tpl->assign('pictures', get_logpics(LOGPICS_FOR_MYHOME_GALLERY));
|
||||
$tpl->assign('allpics', isset($_REQUEST['allpics']) && $_REQUEST['allpics'] ? 1 : 0);
|
||||
|
||||
// display
|
||||
$tpl->display();
|
||||
?>
|
23
htdocs/newlogpics.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/***************************************************************************
|
||||
* For license information see doc/license.txt
|
||||
*
|
||||
* Unicode Reminder メモ
|
||||
*
|
||||
* Display some status information about the server and Opencaching
|
||||
***************************************************************************/
|
||||
|
||||
require('./lib2/web.inc.php');
|
||||
require('./lib2/logic/logpics.inc.php');
|
||||
|
||||
$tpl->name = 'newlogpics';
|
||||
$tpl->menuitem = MNU_START_NEWLOGPICS;
|
||||
|
||||
$tpl->caching = true;
|
||||
$tpl->cache_lifetime = 300;
|
||||
|
||||
if (!$tpl->is_cached())
|
||||
$tpl->assign('pictures', get_logpics(LOGPICS_FOR_NEWPICS_GALLERY));
|
||||
|
||||
$tpl->display();
|
||||
?>
|
@ -14,8 +14,6 @@
|
||||
|
||||
if (!$tpl->is_cached())
|
||||
{
|
||||
$newLogs = array();
|
||||
|
||||
sql_temp_table_slave('loglist');
|
||||
sql_slave("CREATE TEMPORARY TABLE &loglist (`id` INT(11) PRIMARY KEY) SELECT `cache_logs`.`id` FROM `cache_logs` INNER JOIN `caches` ON `cache_logs`.`cache_id`=`caches`.`cache_id` INNER JOIN `cache_status` ON `caches`.`status`=`cache_status`.`id` WHERE `cache_status`.`allow_user_view`=1 ORDER BY `cache_logs`.`date_created` DESC LIMIT 200");
|
||||
|
||||
@ -31,7 +29,11 @@
|
||||
`caches`.`wp_oc`,
|
||||
`cache_logs`.`type`,
|
||||
`cacheloguser`.`user_id`,
|
||||
`cacheloguser`.`username`
|
||||
`cacheloguser`.`username`,
|
||||
`cache_logs`.`cache_id`,
|
||||
'' AS `pic_uuid`,
|
||||
0 AS `picshown`,
|
||||
(SELECT COUNT(*) FROM `pictures` WHERE `object_type`=1 AND `object_id`=`cache_logs`.`id`) AS `pics`
|
||||
FROM &loglist
|
||||
INNER JOIN `cache_logs` ON &loglist.`id`=`cache_logs`.`id`
|
||||
INNER JOIN `caches` ON `cache_logs`.`cache_id`=`caches`.`cache_id`
|
||||
@ -40,8 +42,35 @@
|
||||
LEFT JOIN `sys_trans_text` ON `countries`.`trans_id`=`sys_trans_text`.`trans_id` AND `sys_trans_text`.`lang`='&1'
|
||||
ORDER BY " . $sqlOrderBy . "`cache_logs`.`date_created` DESC",
|
||||
$opt['template']['locale']);
|
||||
|
||||
$newLogs = array();
|
||||
|
||||
$lines_per_pic = 5;
|
||||
$tpl->assign('lines_per_pic',$lines_per_pic);
|
||||
$pics = 0;
|
||||
|
||||
while ($rLog = sql_fetch_assoc($rsLogs))
|
||||
{
|
||||
if ($pics <= 0 ||
|
||||
($pics == $lines_per_pic && count($newLogs)==1 && !$newLogs[0]['picshow']))
|
||||
{
|
||||
$rsPic = sql_slave("SELECT `uuid` FROM `pictures`
|
||||
WHERE `object_type`=1 AND `object_id`='&1'
|
||||
AND `local`=1 AND `display`=1 AND `spoiler`=0 AND `unknown_format`=0
|
||||
LIMIT 1", $rLog['id']);
|
||||
if ($rPic = sql_fetch_assoc($rsPic))
|
||||
{
|
||||
if (count($newLogs))
|
||||
$newLogs[count($newLogs)-1]['pic_uuid'] = $rPic['uuid'];
|
||||
else
|
||||
$rLog['pic_uuid'] = $rPic['uuid'];
|
||||
$rLog['picshown'] = true;
|
||||
$pics = $lines_per_pic;
|
||||
}
|
||||
sql_free_result($rsPic);
|
||||
}
|
||||
$pics--;
|
||||
|
||||
$newLogs[] = $rLog;
|
||||
}
|
||||
sql_free_result($rsLogs);
|
||||
|
@ -153,7 +153,14 @@
|
||||
$tpl->error(ERROR_PICTURE_NOT_EXISTS);
|
||||
|
||||
if ($redirect == '')
|
||||
{
|
||||
$redirect = 'viewcache.php?cacheid=' . urlencode($picture->getCacheId());
|
||||
if ($picture->getObjectType() == OBJECT_CACHELOG)
|
||||
if ($picture->isVisibleOnCachePage())
|
||||
$redirect .= "#logentries";
|
||||
else
|
||||
$redirect = "viewlogs.php?logid=" . urlencode($picture->getLogId());
|
||||
}
|
||||
|
||||
if ($picture->allowEdit() == false)
|
||||
$tpl->error(ERROR_NO_ACCESS);
|
||||
@ -175,6 +182,7 @@
|
||||
$picture->setTitle($title);
|
||||
|
||||
$picture->save();
|
||||
|
||||
$tpl->redirect($redirect);
|
||||
}
|
||||
}
|
||||
|
@ -741,6 +741,14 @@ p.main-totalstats {
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.img-shadow-loggallery {
|
||||
border: 1px solid #a9a9a9;
|
||||
padding: 2px;
|
||||
box-shadow: 1px 2px 2px #555;
|
||||
-moz-box-shadow: 1px 2px 2px #555;
|
||||
-webkit-box-shadow: 1px 2px 2px #555;
|
||||
}
|
||||
|
||||
form#register label {
|
||||
text-align: right;
|
||||
width: 14em;
|
||||
|
BIN
htdocs/resource2/ocstyle/images/misc/25x25-world.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
htdocs/resource2/ocstyle/images/misc/empty.png
Normal file
After Width: | Height: | Size: 181 B |
BIN
htdocs/resource2/ocstyle/images/viewcache/16x16-pictures.png
Normal file
After Width: | Height: | Size: 578 B |
@ -7,13 +7,13 @@ for details. */
|
||||
|
||||
// modify these
|
||||
var enl_gifpath='./resource2/ocstyle/js/enlargeit/'; // path to graphics
|
||||
var enl_brdsize=12; // border thickness (5-30)
|
||||
var enl_brdcolor=''; // border color (white if empty)
|
||||
var enl_brdsize=6; // border thickness (5-30)
|
||||
var enl_brdcolor='#000'; // border color (white if empty)
|
||||
var enl_brdbck=''; // border background pic, '' for no pic
|
||||
var enl_brdround=1; // use rounded borders (Mozilla/Safari only)
|
||||
var enl_maxstep=10; // ani steps (10-30)
|
||||
var enl_brdround=0; // use rounded borders (Mozilla/Safari only)
|
||||
var enl_maxstep=15; // ani steps (10-30)
|
||||
var enl_speed=1; // time between steps
|
||||
var enl_ani=3; // 0=no,1=fade,2=glide,3=bumpglide,4=smoothglide,5=expglide
|
||||
var enl_ani=2; // 0=no,1=fade,2=glide,3=bumpglide,4=smoothglide,5=expglide
|
||||
var enl_opaglide=1; // glide transparency
|
||||
var enl_shadow=1; // shadow under border
|
||||
var enl_shadowsize=2; // size of shadow right/bottom (0-20)
|
||||
@ -28,8 +28,8 @@ var enl_preload=0; // preload next/prev pic
|
||||
var enl_titlebar=1; // show pic title bar
|
||||
var enl_keynav=1; // key navigation
|
||||
var enl_wheelnav=1; // mouse wheel navigation
|
||||
var enl_titletxtcol='';// color of title bar text (empty: dark grey)
|
||||
var enl_ajaxcolor='#ffffff'; // background color for AJAX (empty: light grey)
|
||||
var enl_titletxtcol='#ddd';// color of title bar text (empty: dark grey)
|
||||
var enl_ajaxcolor='#000'; // background color for AJAX (empty: light grey)
|
||||
var enl_usecounter=0; // hidden call of counter page
|
||||
var enl_counterurl=''; // base URL of counter page
|
||||
var enl_btnact='bact.png'; // active buttons
|
1376
htdocs/resource2/ocstyle/js/enlargeit/enlargeit_source.js
Normal file
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
BIN
htdocs/resource2/ocstyle/js/enlargeit/original-pluscur.cur
Normal file
After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
@ -67,7 +67,7 @@
|
||||
<input type="text" name="inp{$useropt.id}" value="{$useropt.option_value|escape}" class="input200" />
|
||||
{/if}
|
||||
{if $useropt.option_input=="textarea"}
|
||||
<textarea class="logs" cols="68" rows="6" name="inp{$useropt.id}">{$useropt.option_value|escape}</textarea>
|
||||
<textarea class="logs" cols="68" rows="6" name="inp{$useropt.id}" style="max-width:500px; max-height:250px">{$useropt.option_value|escape}</textarea>
|
||||
{/if}
|
||||
{if $useropt.option_input=="checkbox"}
|
||||
<input type="checkbox" class="checkbox" name="inp{$useropt.id}" value="1" {if $useropt.option_value=="1"}checked="checked"{/if} />
|
||||
|
@ -4,73 +4,124 @@
|
||||
* Unicode Reminder メモ
|
||||
***************************************************************************}
|
||||
{* OCSTYLE *}
|
||||
|
||||
{* Welcome *}
|
||||
<div class="content2-pagetitle">
|
||||
<img src="resource2/{$opt.template.style}/images/misc/32x32-home.png" border="0" width="32px" height="32px" style="align: left; margin-right: 10px;" alt="Mein Profil" />
|
||||
{t 1=$login.username}Hello %1{/t}
|
||||
</div>
|
||||
|
||||
{if !$allpics}
|
||||
{* Geocaches found *}
|
||||
<div class="content2-container bg-blue02" style="margin-top:20px;">
|
||||
<p class="content-title-noshade-size3">
|
||||
<img src="resource2/{$opt.template.style}/images/description/22x22-logs.png" width="22" height="22" style="align: left; margin-right: 10px;" alt="{t}Logs{/t}"" />
|
||||
{t 1=$found}Geocaches found: %1{/t}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<p style="line-height: 1.6em;">[<a href="search.php?showresult=1&expert=0&output=HTML& ;sort=byname&finderid={$login.userid}&searchbyfinder=&f_inactive=0&logtype=1,7">{t}Show all{/t}</a>] - <b>{t}Your latest log entries:{/t}</b></p>
|
||||
|
||||
<table class="table">
|
||||
{foreach from=$logs item=logItem}
|
||||
<tr>
|
||||
<td>{include file="res_logtype.tpl" type=$logItem.type}</td>
|
||||
<td>{$logItem.date|date_format:$opt.format.datelong}</td>
|
||||
<td><a href="viewcache.php?wp={$logItem.wp_oc}">{$logItem.name|escape}</a> {t}by{/t} <a href="viewprofile.php?userid={$logItem.userid}">{$logItem.username|escape}</a></td>
|
||||
</tr>
|
||||
{foreachelse}
|
||||
<tr><td>{t}No entries found{/t}</td></tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
{* Log pictures *}
|
||||
<div class="content2-container bg-blue02" style="margin-top:20px;">
|
||||
<p class="content-title-noshade-size3">
|
||||
<img src="resource2/{$opt.template.style}/images/description/22x22-logs.png" width="22" height="22" style="align: left; margin-right: 10px;" alt="{t}Logs{/t}"" />
|
||||
{t 1=$found}Geocaches found: %1{/t}
|
||||
<img src="resource2/{$opt.template.style}/images/description/22x22-image.png" width="22" height="22" style="align: left; margin-right: 10px;" alt="{t}Logs{/t}"" />
|
||||
{t 1=$pictures|@count}Log pictures: %1{/t}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<p style="line-height: 1.6em;">[<a href="search.php?showresult=1&expert=0&output=HTML&sort=byname&finderid={$login.userid}&searchbyfinder=&f_inactive=0&logtype=1,7">{t}Show all{/t}</a>] - <b>{t}Your latest log entries:{/t}</b></p>
|
||||
|
||||
<table class="table">
|
||||
{foreach from=$logs item=logItem}
|
||||
<tr>
|
||||
<td>{include file="res_logtype.tpl" type=$logItem.type}</td>
|
||||
<td>{$logItem.date|date_format:$opt.format.datelong}</td>
|
||||
<td><a href="viewcache.php?wp={$logItem.wp_oc}">{$logItem.name|escape}</a> {t}by{/t} <a href="viewprofile.php?userid={$logItem.userid}">{$logItem.username|escape}</a></td>
|
||||
</tr>
|
||||
{foreachelse}
|
||||
<tr><td>{t}No entries found{/t}</td></tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
||||
<div class="content2-container bg-blue02" style="margin-top:20px;">
|
||||
<p class="content-title-noshade-size3">
|
||||
<img src="resource2/{$opt.template.style}/images/misc/22x22-traditional.gif" width="22" height="22" style="align: left; margin-right: 10px;" alt="{t}Caches{/t}" />
|
||||
{t 1=$hidden}Geocaches hidden: %1{/t}
|
||||
{if $pictures|@count == 0}
|
||||
<p>{t}You did not upload any log pictures yet.{/t}</p>
|
||||
{else}
|
||||
<p style="line-height: 1.6em;">
|
||||
{if !$allpics}
|
||||
[<a href="myhome.php?allpics=1">{t}Show all{/t}</a>] - <b>{t}Your latest log pictures{/t}:</b></p>
|
||||
{assign var=maxlines value=1}
|
||||
{else}
|
||||
<b>{t}Your log pictures{/t}:</b>
|
||||
{assign var=maxlines value=0}
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<p style="line-height: 1.6em;">
|
||||
{include file="res_logpictures.tpl" logdate=true loguser=false maxlines=$maxlines fullyear=true}
|
||||
|
||||
{if $allpics}
|
||||
<p>{t}In your <a href="mydetails.php">profile settings</a> you can choose if your log pictures stat and gallery is visible for other users.{/t}</p>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if !$allpics}
|
||||
{* Geocaches hidden *}
|
||||
<div class="content2-container bg-blue02" style="margin-top:5px;">
|
||||
<p class="content-title-noshade-size3">
|
||||
<img src="resource2/{$opt.template.style}/images/misc/22x22-traditional.gif" width="22" height="22" style="align: left; margin-right: 10px;" alt="{t}Caches{/t}" />
|
||||
{t 1=$hidden}Geocaches hidden: %1{/t}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<p style="line-height: 1.6em;">
|
||||
[<a href="search.php?showresult=1&expert=0&output=HTML&sort=byname&ownerid={$login.userid}&searchbyowner=&f_inactive=0"">{t}Show all{/t}</a>] -
|
||||
<b>{t}Your latest Geocaches hidden:{/t}</b>
|
||||
</p>
|
||||
<b>{t}Your latest Geocaches hidden:{/t}</b>
|
||||
</p>
|
||||
|
||||
<table class="table">
|
||||
{foreach from=$caches item=cacheItem}
|
||||
<tr>
|
||||
<td>{include file="res_cachestatus.tpl" status=$cacheItem.status}</td>
|
||||
<td nowrap="nowrap">{$cacheItem.date_hidden|date_format:$opt.format.datelong}</td>
|
||||
<td><a href="viewcache.php?wp={$cacheItem.wp_oc}">{$cacheItem.name|escape}</a></td>
|
||||
</tr>
|
||||
{foreachelse}
|
||||
<tr><td>{t}No Geocaches hidden{/t}</td></tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<table class="table">
|
||||
{foreach from=$caches item=cacheItem}
|
||||
<tr>
|
||||
<td>{include file="res_cachestatus.tpl" status=$cacheItem.status}</td>
|
||||
<td nowrap="nowrap">{$cacheItem.date_hidden|date_format:$opt.format.datelong}</td>
|
||||
<td><a href="viewcache.php?wp={$cacheItem.wp_oc}">{$cacheItem.name|escape}</a></td>
|
||||
</tr>
|
||||
{foreachelse}
|
||||
<tr><td>{t}No Geocaches hidden{/t}</td></tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
||||
<p style="line-height: 1.6em;"><b>{t}Not published Geocaches will be available{/t}</b></p>
|
||||
{* ... not published caches *}
|
||||
<p style="line-height: 1.4em; margin-top:12px;"><b>{t}Not published Geocaches will be available{/t}</b></p>
|
||||
|
||||
<table class="table">
|
||||
{foreach from=$notpublished item=notpublishedItem}
|
||||
<tr>
|
||||
<td>{include file="res_cachestatus.tpl" status=$notpublishedItem.status}</td>
|
||||
<td>{$notpublishedItem.date_activate|date_format:$opt.format.datelong}</td>
|
||||
<td><a href="viewcache.php?wp={$notpublishedItem.wp_oc}">{$notpublishedItem.name|escape}</a></td>
|
||||
</tr>
|
||||
{foreachelse}
|
||||
<tr><td>{t}All Geocaches are published{/t}</td></tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<table class="table">
|
||||
{foreach from=$notpublished item=notpublishedItem}
|
||||
<tr>
|
||||
<td>{include file="res_cachestatus.tpl" status=$notpublishedItem.status}</td>
|
||||
<td>{$notpublishedItem.date_activate|date_format:$opt.format.datelong}</td>
|
||||
<td><a href="viewcache.php?wp={$notpublishedItem.wp_oc}">{$notpublishedItem.name|escape}</a></td>
|
||||
</tr>
|
||||
{foreachelse}
|
||||
<tr><td>{t}All Geocaches are published{/t}</td></tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
||||
<p class="content-title-noshade-size3">
|
||||
<img src="resource2/{$opt.template.style}/images/misc/22x22-email.png" width="22" height="22" style="align: left; margin-right: 10px;" alt="{t}E-Mails sent{/t}" />
|
||||
{t 1=$emails}E-Mails sent: %1{/t}
|
||||
</p>
|
||||
{* Other information *}
|
||||
<div class="content2-container bg-blue02" style="margin-top:20px;">
|
||||
<p class="content-title-noshade-size3">
|
||||
<img src="resource2/{$opt.template.style}/images/misc/25x25-world.png" width="25" height="25" style="align: left; margin-right: 10px;" alt="{t}Other information{/t}" />
|
||||
{t}Other information{/t}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{* Emails sent *}
|
||||
<p>
|
||||
<img src="resource2/{$opt.template.style}/images/misc/22x22-email.png" width="22" height="22" style="align: left; margin-right: 10px;" alt="{t}E-Mails sent{/t}" />
|
||||
<strong>{t 1=$emails}E-Mails sent: %1{/t}</strong>
|
||||
</p>
|
||||
<div class="buffer"> </div>
|
||||
|
||||
{* link to public profile *}
|
||||
<p>{t}This is what your profile looks like to other users:{/t} <a href="viewprofile.php?userid={$login.userid}">{t}Your public profile{/t}</a></p>
|
||||
{/if}
|
||||
|
||||
<div class="buffer"> </div>
|
||||
|
||||
|
17
htdocs/templates2/ocstyle/newlogpics.tpl
Normal file
@ -0,0 +1,17 @@
|
||||
{***************************************************************************
|
||||
* You can find the license in the docs directory
|
||||
*
|
||||
* Unicode Reminder メモ
|
||||
***************************************************************************}
|
||||
{* OCSTYLE *}
|
||||
<div class="content2-pagetitle">
|
||||
<img src="resource2/{$opt.template.style}/images/cacheicon/traditional.gif" style="align: left; margin-right: 10px;" width="32" height="32" alt="{t}Latest logs entries{/t}" />
|
||||
{t}New log pictures{/t}
|
||||
</div>
|
||||
|
||||
{include file="res_logpictures.tpl" logdate=true loguser=true}
|
||||
|
||||
<p><img src="resource2/{$opt.template.style}/images/misc/hint.gif" border="0" width="15" height="11" alt="" align="middle" />{t}Dates show the date of picture upload, wich can differ from the log date.{/t} {t}Maximum one picture per day and user is displayed here. The small gallery on the start page is additionally limited to one picture per cache and day.{/t}</p>
|
||||
|
||||
<p>{t}All pictures are copyrighted. If you want to use them, ask the picture author for permission. From April 7, 2013, the logs including pictures may be used in unchanged form under the terms of the new <a href="articles.php?page=impressum#datalicense">data license</a>.{/t}</p>
|
||||
<p> </p>
|
@ -53,7 +53,17 @@
|
||||
{t 1=$smarty.capture.cachename 2=$smarty.capture.username}%2 want's to visit %1{/t}
|
||||
{/if}
|
||||
|
||||
{if $newLog.pics}
|
||||
<img src="resource2/ocstyle/images/action/16x16-addimage.png" />
|
||||
{if $newLog.picshown}→{/if}
|
||||
{/if}
|
||||
</td>
|
||||
{if $newLog.pic_uuid != ""}
|
||||
<td rowspan="{$lines_per_pic}">
|
||||
{include file="res_logpicture.tpl" picture=$newLog logdate=false loguser=false}
|
||||
</td>
|
||||
<td></td>
|
||||
{/if}
|
||||
</tr>
|
||||
{assign var='lastCountry' value=$newLog.country_name}
|
||||
{/foreach}
|
||||
|
@ -83,11 +83,16 @@
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
<tr>
|
||||
<td align="right"><input class="checkbox" type="checkbox" name="spoiler" value="1" {if $spoilerchecked==true}checked="checked"{/if} /></td>
|
||||
<td>{t}This picture is a spoiler - dont show a thumbnail.{/t} {if $objecttype==OBJECT_CACHELOG}{t}Please use the spoiler mark also for log pictures, to prevent that they appear on log gallery pages.{/t}{/if}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td height="8px"></td>
|
||||
</tr>
|
||||
|
||||
{if $objecttype==OBJECT_CACHE}
|
||||
<tr>
|
||||
<td align="right"><input class="checkbox" type="checkbox" name="spoiler" value="1" {if $spoilerchecked==true}checked="checked"{/if} /></td>
|
||||
<td>{t}This picture is a spoiler - dont show a thumbnail.{/t}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><input class="checkbox" type="checkbox" name="notdisplay" value="1" {if $displaychecked==false}checked="checked"{/if}></td>
|
||||
<td>{t}Do not separately display this picture (used in HTML description etc.){/t}</td>
|
||||
@ -106,11 +111,9 @@
|
||||
{t}After click to upload, it can take a while, until the next page is been shown.{/t}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
<tr><td class="spacer" colspan="2"></td></tr>
|
||||
<tr><td class="spacer" colspan="2"></td></tr>
|
||||
|
||||
{if $action == "add"}
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
{t}By submitting I accept the <a href="articles.php?page=impressum#tos" target="_blank">Opencaching.de Terms of Service</a> and the <a href="articles.php?page=impressum#datalicense" target="_blank">Opencaching.de Datalicense</a>{/t}
|
||||
|
@ -7,7 +7,7 @@
|
||||
{if $log != "N"}
|
||||
|
||||
{if $header==true}
|
||||
<div class="content2-container bg-blue02">
|
||||
<div class="content2-container bg-blue02" id="logentries">
|
||||
<p class="content-title-noshade-size2">
|
||||
<img src="resource2/{$opt.template.style}/images/description/22x22-logs.png" style="align: left; margin-right: 10px;" width="22" height="22" alt="Logs" />
|
||||
{capture name=cachename}<a href="viewcache.php?wp={$cache.wpoc|urlencode}">{$cache.name|escape}</a>{/capture}
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Unicode Reminder メモ
|
||||
***************************************************************************}
|
||||
<div class="content-txtbox-noshade">
|
||||
<div class="content-txtbox-noshade" id="log{$logItem.id}">
|
||||
<div class="logs">
|
||||
<p class="content-title-noshade-size1" style="display:inline;">
|
||||
{include file="res_logtype.tpl" type=$logItem.type}
|
||||
@ -62,10 +62,16 @@
|
||||
<b>{t}Pictures for this logentry:{/t}</b><br />
|
||||
{/if}
|
||||
|
||||
<a href="{$pictureItem.url}">{$pictureItem.title|escape}</a>
|
||||
<a onclick="javascript:enlarge(document.getElementById('pic{$pictureItem.id}'))" style="cursor:pointer">{$pictureItem.title|escape}</a>
|
||||
{* the position of this image is the anchor for enlargit activity: *}
|
||||
<img id="pic{$pictureItem.id}" src="resource2/ocstyle/images/misc/empty.png" longdesc="{$pictureItem.url}" alt="{$pictureItem.title|escape}" style="cursor:pointer" onclick="enlarge(this)"/>
|
||||
{if $logItem.userid==$login.userid}
|
||||
[<a href="picture.php?action=edit&uuid={$pictureItem.uuid|escape}">{t}Edit{/t}</a>]
|
||||
[<a href="picture.php?action=delete&uuid={$pictureItem.uuid|escape}">{t}Delete{/t}</a>]
|
||||
{/if}
|
||||
{if $pictureItem.spoiler}
|
||||
({t}Spoiler{/t})
|
||||
{/if}
|
||||
<br />
|
||||
{/foreach}
|
||||
</div>
|
||||
|
23
htdocs/templates2/ocstyle/res_logpicture.tpl
Normal file
@ -0,0 +1,23 @@
|
||||
<div style="width:{$itemwidth}px; height:{if $loguser || $logdate}150{else}120{/if}px; overflow:hidden">
|
||||
<table width="100%" height="100%"><tr>
|
||||
<td style="text-align:center; padding:0" align="center" valign="middle">
|
||||
<div style="max-width:{$itemwidth}px; overflow:hidden">
|
||||
<img src="thumbs.php?uuid={$picture.pic_uuid}" class="img-shadow-loggallery" onclick="enlarge(this);" longdesc="{$picture.pic_url}" onload="this.alt='{$picture.title}'"/>
|
||||
{if $logdate || $loguser}
|
||||
<div style="line-height:1.2em; max-height:2.4em; margin-top:5px">
|
||||
{if $logdate}
|
||||
{if $fullyear}
|
||||
{assign var=dateformat value=$opt.format.date}
|
||||
{elseif $picture.oldyear == "1" || $shortyear}
|
||||
{assign var=dateformat value=$opt.format.dateshort}
|
||||
{else}
|
||||
{assign var=dateformat value=$opt.format.dm}
|
||||
{/if}
|
||||
{if !$loguser}<a href="viewlogs.php?cacheid={$picture.cache_id}#log{$picture.logid}">{/if}{$picture.picdate|date_format:$dateformat}{if !$loguser}</a>{/if}{/if} {if $loguser}<a href="{if $profilelink}viewprofile.php?userid={$picture.user_id}{else}viewcache.php?cacheid={$picture.cache_id}#logentries{/if}">{$picture.username|escape}</a>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</td>
|
||||
</tr></table>
|
||||
</div>
|
28
htdocs/templates2/ocstyle/res_logpictures.tpl
Normal file
@ -0,0 +1,28 @@
|
||||
{* see lib2/logic/logpics.inc.php for data retreival *}
|
||||
|
||||
{assign var=itemwidth value=120}
|
||||
|
||||
<div style="padding-right:14px; clear:both">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
{assign var=piccount value=0}
|
||||
{assign var=lines value=0}
|
||||
{foreach from=$pictures item=picture}
|
||||
{if $piccount == 6}
|
||||
</tr><tr>
|
||||
{assign var=piccount value=0}
|
||||
{assign var=lines value=$lines+1}
|
||||
{/if}
|
||||
{if !$maxlines || $lines < $maxlines}
|
||||
<td width="{$itemwidth+6}px"> {* width is needed for empty fill-up cells *}
|
||||
{if $picture.pic_uuid != ""}
|
||||
{include file="res_logpicture.tpl" picture=$picture}
|
||||
{/if}
|
||||
</td>
|
||||
{assign var=piccount value=$piccount+1}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</tr>
|
||||
</table>
|
||||
<div style="height:8px"></div>
|
||||
</div>
|
@ -3,13 +3,10 @@
|
||||
*
|
||||
* Unicode Reminder メモ
|
||||
***************************************************************************}
|
||||
|
||||
<div class="content-txtbox-noshade">
|
||||
<div class="content2-pagetitle">
|
||||
<img src="resource2/{$opt.template.style}/images/misc/32x32-world.png" style="align: left; margin-right: 10px;" width="32" height="32" alt="" />
|
||||
{t}What do i find on this website?{/t}
|
||||
</div>
|
||||
<div class="content-txtbox-noshade welcome">
|
||||
{$message}
|
||||
<div class="content-txtbox-noshade">
|
||||
<p style="line-height: 1.6em;">{$message}</p>
|
||||
<div class="buffer" style="width: 500px;"> </div>
|
||||
</div>
|
||||
</div>
|
||||
@ -66,6 +63,15 @@
|
||||
{/foreach}
|
||||
</ul>
|
||||
|
||||
{* new logpix *}
|
||||
<div class="content2-container bg-blue02" style="margin-bottom:6px">
|
||||
<p class="content-title-noshade-size3">
|
||||
<img src="resource2/{$opt.template.style}/images/misc/32x32-news.png" style="align: left; margin-right: 10px;" width="24" height="24" alt="{t}News{/t}" />
|
||||
<a href="newlogpics.php" style="color:rgb(88,144,168); text-decoration: none;">{t}New log pictures{/t}</a>
|
||||
</p>
|
||||
</div>
|
||||
{include file="res_logpictures.tpl" logdate=true loguser=true}
|
||||
|
||||
{* recommendations *}
|
||||
<div class="content2-container bg-blue02">
|
||||
<p class="content-title-noshade-size3">
|
||||
@ -154,3 +160,4 @@
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
|
||||
|
@ -61,7 +61,7 @@
|
||||
//-->
|
||||
</script>
|
||||
{/literal}
|
||||
<script type="text/javascript" src="resource2/{$opt.template.style}/js/enlargeit.js"></script>
|
||||
<script type="text/javascript" src="resource2/{$opt.template.style}/js/enlargeit/enlargeit.js"></script>
|
||||
{if $opt.session.url==true}
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
|
@ -144,6 +144,24 @@
|
||||
{include file="res_state_warning.tpl" cache=$cache}
|
||||
<!-- End Warning -->
|
||||
|
||||
{if $show_logpics}
|
||||
<!-- picture gallery -->
|
||||
<div class="content2-container">
|
||||
<p><< <a href="viewcache.php?cacheid={$cache.cacheid|urlencode}">{t}Back to the cache description{/t}</a></p>
|
||||
{include file="res_logpictures.tpl" logdate=true loguser=true profilelink=true shortyear=true}
|
||||
|
||||
{if $morepics}
|
||||
<p>{t 1=$maxpics}Only the last %1 pictures are displayed.{/t}</p>
|
||||
{/if}
|
||||
|
||||
{if $cache.type != 5 && $cache.type != 6}
|
||||
<br />
|
||||
<img src="resource2/{$opt.template.style}/images/misc/hint.gif" border="0" width="15" height="11" alt="" align="middle" />
|
||||
{t}"Spoiler" pictures which show details of the stash should not be visible here. If you encounter an open visible spoiler, you may contact the logger by the e-mail button in his profile and ask him to mark it as spoiler.{/t}<br />
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{else}
|
||||
<!-- Cachedetails -->
|
||||
<div class="content2-container">
|
||||
<div class="content2-container-2col-left" id="viewcache-baseinfo">
|
||||
@ -213,6 +231,7 @@
|
||||
<img src="resource2/{$opt.template.style}/images/viewcache/16x16-watch.png" class="icon16" alt="" /> {$cache.watcher} {t}Watched{/t}<br />
|
||||
<img src="resource2/{$opt.template.style}/images/viewcache/ignore-16.png" class="icon16" alt="" /> {$cache.ignorercount} {t}Ignored{/t}<br />
|
||||
<img src="resource2/{$opt.template.style}/images/viewcache/16x16-visitors.png" class="icon16" alt="" /> {$cache.visits} {t}Page visits{/t}<br />
|
||||
<span style="white-space:nowrap;"><img src="resource2/{$opt.template.style}/images/viewcache/16x16-pictures.png" class="icon16" alt="" /> {$logpics} {if $logpics>0}<a class="link" href="viewcache.php?cacheid={$cache.cacheid|urlencode}&logpics=1">{/if}{if $logpics==1}{t}Log picture{/t}{else}{t}Log pictures{/t}{/if}{if $logpics>0}</a>{/if}</span><br />
|
||||
<span style="white-space:nowrap;"><img src="resource2/{$opt.template.style}/images/viewcache/gk.png" class="icon16" alt="" title="GeoKrety visited" /> <a class="links" href="http://geokrety.org/szukaj.php?lang=de_DE.UTF-8&wpt={$cache.wpoc}" target="_blank">{t}Geokrety history{/t}</a></span><br />
|
||||
{if $cache.topratings>0}
|
||||
<img src="resource2/{$opt.template.style}/images/viewcache/rating-star.gif" class="icon16" alt="" /> {$cache.topratings} {t}Recommendations{/t}<br />
|
||||
@ -359,9 +378,9 @@
|
||||
{foreach from=$pictures item=pictureItem}
|
||||
<div class="viewcache-pictureblock">
|
||||
<div class="img-shadow">
|
||||
<a href="{$pictureItem.url|escape}" target="_blank">
|
||||
<img src="thumbs.php?uuid={$pictureItem.uuid|urlencode}" alt="{$pictureItem.title|escape}" title="{$pictureItem.title|escape}" border="0" align="bottom" onclick="enlarge(this)" class="viewcache-thumbimg" />
|
||||
</a>
|
||||
<!-- a href="{$pictureItem.url|escape}" target="_blank" -->
|
||||
<img src="thumbs.php?uuid={$pictureItem.uuid|urlencode}" alt="{$pictureItem.title|escape}" title="{$pictureItem.title|escape}" longdesc="{$pictureItem.url|escape}" border="0" align="bottom" onclick="enlarge(this)" />
|
||||
<!-- /a -->
|
||||
</div>
|
||||
<span class="title">{$pictureItem.title|escape}</span>
|
||||
</div>
|
||||
@ -472,3 +491,4 @@
|
||||
</div>
|
||||
{/if}
|
||||
<!-- End Logs -->
|
||||
{/if} {* not $show_logpics *}
|
||||
|
@ -175,9 +175,20 @@
|
||||
|
||||
<tr>
|
||||
<td class="header-small">
|
||||
<img src="resource2/{$opt.template.style}/images/viewcache/cache-rate.png" align="middle" border="0" alt="{t}Recommendations{/t}" title="{t}Recommendations{/t}"> <b>{t}Recommendations{/t}:</b></td>
|
||||
<img src="resource2/{$opt.template.style}/images/viewcache/cache-rate.png" align="middle" border="0" alt="{t}Recommendations{/t}" title="{t}Recommendations{/t}"> <b>{t}Recommendations{/t}:</b></td>
|
||||
<td class="header-small" >{t 1=$recommended 2=$maxrecommended}%1 of %2 possibles{/t} [<a href="usertops.php?userid={$userid}">{t}Show all{/t}</a>]
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="spacer" colspan="2"></td></tr>
|
||||
|
||||
{if $show_picstat}
|
||||
<tr>
|
||||
<td class="header-small">
|
||||
<img src="resource2/{$opt.template.style}/images/action/16x16-addimage.png" align="middle" border="0" alt="{t}Log pictures{/t}" title="{t}Log pictures{/t}"> <b>{t}Log pictures{/t}:</b></td>
|
||||
<td class="header-small" >{$logpics} [<a href="viewprofile.php?userid={$userid}&allpics=1">{t}Show all{/t}</a>]
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
<tr><td class="spacer" colspan="2"></td></tr>
|
||||
</table>
|
||||
|
23
htdocs/templates2/ocstyle/viewprofile_pics.tpl
Normal file
@ -0,0 +1,23 @@
|
||||
{***************************************************************************
|
||||
* You can find the license in the docs directory
|
||||
*
|
||||
* Unicode Reminder メモ
|
||||
***************************************************************************}
|
||||
{* OCSTYLE *}
|
||||
<div class="content2-pagetitle">
|
||||
<img src="resource2/{$opt.template.style}/images/cacheicon/traditional.gif" style="align: left; margin-right: 10px;" width="32" height="32" alt="{t}Log pictures{/t}" />
|
||||
{t 1=$username}Log pictures of %1{/t}
|
||||
</div>
|
||||
|
||||
{if $paging}
|
||||
<div class="content2-container" style="text-align:right" >
|
||||
<p>{t}Page{/t} {$pagelinks}</p>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
{include file="res_logpictures.tpl" logdate=true loguser=false fullyear=true}
|
||||
|
||||
<p><br />{t}All pictures are copyrighted. If you want to use them, ask the picture author for permission. From April 7, 2013, the logs including pictures may be used in unchanged form under the terms of the new <a href="articles.php?page=impressum#datalicense">data license</a>.{/t}</p>
|
||||
<p>{t}In your <a href="mydetails.php">profile settings</a> you can choose if your log pictures stat and gallery is visible for other users.{/t} {t}Pictures marked as spoiler are not shown; therefore the number of pictures on this page can be smaller than in the profile statistics.{/t}</a></p>
|
||||
<p> </p>
|
@ -6,11 +6,16 @@
|
||||
***************************************************************************/
|
||||
|
||||
// define image paths
|
||||
$imgurl_404 = 'lang/de/ocstyle/images/thumb/thumb404.gif';
|
||||
$imgurl_intern = 'lang/de/ocstyle/images/thumb/thumbintern.gif';
|
||||
$imgurl_extern = 'lang/de/ocstyle/images/thumb/thumbextern.gif';
|
||||
$imgurl_spoiler = 'lang/de/ocstyle/images/thumb/thumbspoiler.gif';
|
||||
$imgurl_format = 'lang/de/ocstyle/images/thumb/thumbunknown.gif';
|
||||
$imgurl_404[1] = 'lang/de/ocstyle/images/thumb/thumb404_1.gif';
|
||||
$imgurl_404[2]= 'lang/de/ocstyle/images/thumb/thumb404_2.gif';
|
||||
$imgurl_intern[1] = 'lang/de/ocstyle/images/thumb/thumbintern_1.gif';
|
||||
$imgurl_intern[2] = 'lang/de/ocstyle/images/thumb/thumbintern_2.gif';
|
||||
$imgurl_extern[1] = 'lang/de/ocstyle/images/thumb/thumbextern_1.gif';
|
||||
$imgurl_extern[2] = 'lang/de/ocstyle/images/thumb/thumbextern_2.gif';
|
||||
$imgurl_spoiler[1] = 'lang/de/ocstyle/images/thumb/thumbspoiler_1.gif';
|
||||
$imgurl_spoiler[2] = 'lang/de/ocstyle/images/thumb/thumbspoiler_2.gif';
|
||||
$imgurl_format[1] = 'lang/de/ocstyle/images/thumb/thumbunknown_1.gif';
|
||||
$imgurl_format[2] = 'lang/de/ocstyle/images/thumb/thumbunknown_2.gif';
|
||||
|
||||
require('./lib2/web.inc.php');
|
||||
|
||||
@ -35,7 +40,7 @@
|
||||
if ($debug == 1)
|
||||
die('Debug: line ' . __LINE__);
|
||||
else
|
||||
$tpl->redirect($imgurl_extern);
|
||||
$tpl->redirect($imgurl_extern[$r['object_type']]);
|
||||
}
|
||||
}
|
||||
else if ($r['object_type'] == 2)
|
||||
@ -45,7 +50,7 @@
|
||||
if ($debug == 1)
|
||||
die('Debug: line ' . __LINE__);
|
||||
else
|
||||
$tpl->redirect($imgurl_extern);
|
||||
$tpl->redirect($imgurl_extern[$r['object_type']]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -53,13 +58,13 @@
|
||||
if ($debug == 1)
|
||||
die('Debug: line ' . __LINE__);
|
||||
else
|
||||
$tpl->redirect($imgurl_extern);
|
||||
$tpl->redirect($imgurl_extern[$r['object_type']]);
|
||||
|
||||
if (($r['spoiler'] == 1) && ($showspoiler != 1))
|
||||
if ($debug == 1)
|
||||
die('Debug: line ' . __LINE__);
|
||||
else
|
||||
$tpl->redirect($imgurl_spoiler);
|
||||
$tpl->redirect($imgurl_spoiler[$r['object_type']]);
|
||||
$imgurl = $r['url'];
|
||||
$urlparts = mb_split('/', $imgurl);
|
||||
|
||||
@ -67,7 +72,7 @@
|
||||
if ($debug == 1)
|
||||
die('Debug: line ' . __LINE__);
|
||||
else
|
||||
$tpl->redirect($imgurl_intern);
|
||||
$tpl->redirect($imgurl_intern[$r['object_type']]);
|
||||
|
||||
// thumb neu erstellen?
|
||||
$bGenerate = false;
|
||||
@ -85,7 +90,7 @@
|
||||
if ($debug == 1)
|
||||
die('Debug: line ' . __LINE__);
|
||||
else
|
||||
$tpl->redirect($imgurl_format);
|
||||
$tpl->redirect($imgurl_format[$r['object_type']]);
|
||||
|
||||
// ok, mal kucken ob das Dateiformat unterstützt wird
|
||||
$filename = $urlparts[count($urlparts) - 1];
|
||||
@ -99,7 +104,7 @@
|
||||
if ($debug == 1)
|
||||
die('Debug: line ' . __LINE__);
|
||||
else
|
||||
$tpl->redirect($imgurl_format);
|
||||
$tpl->redirect($imgurl_format[$r['object_type']]);
|
||||
}
|
||||
|
||||
if ($extension == 'jpeg') $extension = 'jpg';
|
||||
@ -130,7 +135,7 @@
|
||||
if ($debug == 1)
|
||||
die('Debug: line ' . __LINE__);
|
||||
else
|
||||
$tpl->redirect($imgurl_format);
|
||||
$tpl->redirect($imgurl_format[$r['object_type']]);
|
||||
}
|
||||
|
||||
$imheight = imagesy($im);
|
||||
@ -138,8 +143,10 @@
|
||||
|
||||
if ($r['object_type'] == 1)
|
||||
{
|
||||
$thumb_max_height = $opt['logic']['pictures']['thumb_max_height']/3;
|
||||
$thumb_max_width = $opt['logic']['pictures']['thumb_max_width']/3;
|
||||
// Log picture gallery in thumbs.php relies on this format!
|
||||
// It is large enough to have the pics look nice ...
|
||||
$thumb_max_height = 105;
|
||||
$thumb_max_width = 105;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -217,6 +224,6 @@
|
||||
if ($debug == 1)
|
||||
die('Debug: line ' . __LINE__);
|
||||
else
|
||||
$tpl->redirect($imgurl_404);
|
||||
$tpl->redirect($imgurl_404[$r['object_type']]);
|
||||
}
|
||||
?>
|
@ -12,7 +12,8 @@
|
||||
require_once('./lib2/logic/cache.class.php');
|
||||
require_once('./lib2/logic/attribute.class.php');
|
||||
require_once('./lib2/logic/coordinate.class.php');
|
||||
require_once($opt['rootpath'] . 'lib2/logic/useroptions.class.php');
|
||||
require_once('./lib2/logic/useroptions.class.php');
|
||||
require_once('./lib2/logic/logpics.inc.php');
|
||||
|
||||
$login->verify();
|
||||
|
||||
@ -70,6 +71,8 @@ function getChildWaypoints($cacheid)
|
||||
else
|
||||
$sPreferedDescLang = $opt['template']['locale'] . ',EN';
|
||||
|
||||
$logpics = isset($_REQUEST['logpics']) && ($_REQUEST['logpics'] == 1);
|
||||
|
||||
//$tpl->caching = true;
|
||||
//$tpl->cache_lifetime = 31*24*60*60;
|
||||
//$tpl->cache_id = $cacheid . '|' . $sPreferedDescLang;
|
||||
@ -198,7 +201,7 @@ function getChildWaypoints($cacheid)
|
||||
rewritten 2012-07-22 following for bugfix, first log was lost in print
|
||||
*/
|
||||
|
||||
$rscount = 5;
|
||||
$rscount = MAX_LOGENTRIES_ON_CACHEPAGE;
|
||||
|
||||
if (isset($_REQUEST['log']))
|
||||
switch ($_REQUEST['log'])
|
||||
@ -271,6 +274,20 @@ function getChildWaypoints($cacheid)
|
||||
$tpl->assign('log', $_REQUEST['log']);
|
||||
}
|
||||
|
||||
/* logpics
|
||||
*/
|
||||
$tpl->assign('show_logpics', $logpics ? 1 : 0);
|
||||
if ($logpics)
|
||||
{
|
||||
$pictures = get_logpics(LOGPICS_FOR_CACHE_GALLERY, 0, $cacheid);
|
||||
$tpl->assign('morepics', count($pictures) > MAX_PICTURES_IN_CACHE_GALLERY);
|
||||
$tpl->assign('maxpics', MAX_PICTURES_IN_CACHE_GALLERY);
|
||||
array_splice($pictures, MAX_PICTURES_IN_CACHE_GALLERY);
|
||||
$tpl->assign('pictures', $pictures);
|
||||
}
|
||||
else
|
||||
$tpl->assign('logpics', get_logpics(LOGPICS_FOR_CACHE_STAT, 0, $cacheid));
|
||||
|
||||
/* process the cachmap options
|
||||
*/
|
||||
$userzoom = 11;
|
||||
|
@ -9,11 +9,14 @@
|
||||
|
||||
require('./lib2/web.inc.php');
|
||||
require_once('./lib2/logic/useroptions.class.php');
|
||||
require_once('./lib2/logic/logpics.inc.php');
|
||||
|
||||
$tpl->name = 'viewprofile';
|
||||
$tpl->menuitem = MNU_CACHES_USERPROFILE;
|
||||
|
||||
$userid = isset($_REQUEST['userid']) ? $_REQUEST['userid']+0 : 0;
|
||||
$allpics = isset($_REQUEST['allpics']) ? $_REQUEST['allpics']+0 : 0;
|
||||
$startat = isset($_REQUEST['startat']) ? $_REQUEST['startat']+0 : 0;
|
||||
|
||||
$rs = sql("SELECT `user`.`username`,
|
||||
`user`.`last_login`,
|
||||
@ -95,6 +98,48 @@
|
||||
$tpl->assign('recommended', sql_value("SELECT COUNT(*) FROM `cache_rating` WHERE `user_id`='&1'", 0, $userid));
|
||||
$tpl->assign('maxrecommended', floor($record['found'] * $opt['logic']['rating']['percentageOfFounds'] / 100));
|
||||
|
||||
$picstat = ($useropt->getOptValue(USR_OPT_PICSTAT) == 1);
|
||||
$tpl->assign('show_picstat', $picstat);
|
||||
if ($picstat)
|
||||
{
|
||||
// user has allowed picture stat and gallery view
|
||||
$tpl->assign('allpics',$allpics);
|
||||
if ($allpics)
|
||||
{
|
||||
$pictures = get_logpics(LOGPICS_FOR_USER_GALLERY, $userid, 0, $startat);
|
||||
$more = (count($pictures) > MAX_PICTURES_PER_GALLERY_PAGE);
|
||||
if ($more)
|
||||
array_splice($pictures, MAX_PICTURES_PER_GALLERY_PAGE);
|
||||
$tpl->assign('pictures', $pictures);
|
||||
|
||||
$paging = $more || ($startat>0 && count($pictures)>0);
|
||||
$tpl->assign('paging', $paging);
|
||||
if ($paging)
|
||||
{
|
||||
$pages = floor(get_logpics(LOGPICS_FOR_USER_STAT, $userid)/MAX_PICTURES_PER_GALLERY_PAGE) + 1;
|
||||
$page = floor($startat/MAX_PICTURES_PER_GALLERY_PAGE) + 1;
|
||||
|
||||
$pl = "";
|
||||
for ($p=1; $p<=$pages; $p++)
|
||||
{
|
||||
if ($pl != "") $pl .= " ";
|
||||
if ($p != $page) $pl .= "<a href='viewprofile.php?userid=" . $userid . "&allpics=1&startat=" . (($p-1)*MAX_PICTURES_PER_GALLERY_PAGE) . "'>";
|
||||
else $pl .= "<strong>";
|
||||
$pl .= $p;
|
||||
if ($p != $page) $pl .= "</a>";
|
||||
else $pl .= "</strong>";
|
||||
}
|
||||
|
||||
$tpl->assign('pagelinks', $pl);
|
||||
}
|
||||
|
||||
$tpl->name = 'viewprofile_pics';
|
||||
// actually we dont need all the other stuff here ..
|
||||
}
|
||||
else
|
||||
$tpl->assign('logpics', get_logpics(LOGPICS_FOR_USER_STAT, $userid));
|
||||
}
|
||||
|
||||
$tpl->assign('showcountry', (strlen(trim($record['country'])) > 0));
|
||||
$tpl->assign('country', $record['country']);
|
||||
$tpl->assign('registered', $record['date_created']);
|
||||
|