Merge branch 'stable'
This commit is contained in:
commit
67827dfa83
@ -541,6 +541,7 @@ INSERT INTO `helppages` (`ocpage`, `language`, `helppage`) VALUES ('newcache', '
|
||||
INSERT INTO `helppages` (`ocpage`, `language`, `helppage`) VALUES ('newdesc', 'DE', 'Beschreibungstext');
|
||||
INSERT INTO `helppages` (`ocpage`, `language`, `helppage`) VALUES ('newlogpics', 'DE', 'Logbild-Galerien');
|
||||
INSERT INTO `helppages` (`ocpage`, `language`, `helppage`) VALUES ('newpw', 'DE', 'Passwort');
|
||||
INSERT INTO `helppages` (`ocpage`, `language`, `helppage`) VALUES ('oconly', 'DE', 'OConly');
|
||||
INSERT INTO `helppages` (`ocpage`, `language`, `helppage`) VALUES ('picture', 'DE', 'Bilder');
|
||||
INSERT INTO `helppages` (`ocpage`, `language`, `helppage`) VALUES ('previewpics', 'DE', 'Vorschaubilder');
|
||||
INSERT INTO `helppages` (`ocpage`, `language`, `helppage`) VALUES ('query', 'DE', 'Gespeicherte Suchen');
|
||||
|
@ -182,6 +182,7 @@ class OcSmarty extends Smarty
|
||||
$optn['cms'] = $opt['cms'];
|
||||
$optn['geokrety'] = $opt['geokrety'];
|
||||
$optn['template']['usercountrieslist'] = labels::getLabels('usercountrieslist');
|
||||
$optn['help']['oconly'] = helppagelink('oconly');
|
||||
|
||||
// url-sessions? (for session timout display)
|
||||
$optn['session']['url'] = false;
|
||||
|
@ -108,12 +108,14 @@ class getNew
|
||||
IFNULL(`sys_trans_text`.`text`,`cache_location`.`adm1`) AS `adm1`,
|
||||
`cache_location`.`adm2`,
|
||||
`cache_location`.`adm3`,
|
||||
`cache_location`.`adm4`
|
||||
`cache_location`.`adm4`,
|
||||
`ca`.`attrib_id` IS NOT NULL AS `oconly`
|
||||
FROM `caches`
|
||||
INNER JOIN `user` ON `user`.`user_id`=`caches`.`user_id`
|
||||
LEFT JOIN `cache_location` ON `caches`.`cache_id`=`cache_location`.`cache_id`
|
||||
LEFT JOIN `countries` ON `countries`.`short`=`cache_location`.`code1`
|
||||
LEFT JOIN `sys_trans_text` ON `sys_trans_text`.`trans_id`=`countries`.`trans_id` AND `sys_trans_text`.`lang`='&2'
|
||||
LEFT JOIN `caches_attributes` `ca` ON `ca`.`cache_id`=`caches`.`cache_id` AND `ca`.`attrib_id`=6
|
||||
WHERE `caches`.`country`='&1' AND
|
||||
`caches`.`type` != 6 AND
|
||||
`caches`.`status` = 1
|
||||
@ -150,12 +152,14 @@ class getNew
|
||||
IFNULL(`sys_trans_text`.`text`,`cache_location`.`adm1`) AS `adm1`,
|
||||
`cache_location`.`adm2`,
|
||||
`cache_location`.`adm3`,
|
||||
`cache_location`.`adm4`
|
||||
`cache_location`.`adm4`,
|
||||
`ca`.`attrib_id` IS NOT NULL AS `oconly`
|
||||
FROM `caches`
|
||||
INNER JOIN `user` ON `user`.`user_id`=`caches`.`user_id`
|
||||
LEFT JOIN `cache_location` ON `caches`.`cache_id`=`cache_location`.`cache_id`
|
||||
LEFT JOIN `countries` ON `countries`.`short`=`cache_location`.`code1`
|
||||
LEFT JOIN `sys_trans_text` ON `sys_trans_text`.`trans_id`=`countries`.`trans_id` AND `sys_trans_text`.`lang`='&2'
|
||||
LEFT JOIN `caches_attributes` `ca` ON `ca`.`cache_id`=`caches`.`cache_id` AND `ca`.`attrib_id`=6
|
||||
WHERE `caches`.`country`='&1' AND
|
||||
`caches`.`date_hidden` >= curdate() AND
|
||||
`caches`.`type` = 6 AND
|
||||
@ -197,13 +201,15 @@ class getNew
|
||||
IFNULL(`sys_trans_text`.`text`,`cache_location`.`adm1`) AS `adm1`,
|
||||
`cache_location`.`adm2`,
|
||||
`cache_location`.`adm3`,
|
||||
`cache_location`.`adm4`
|
||||
`cache_location`.`adm4`,
|
||||
`ca`.`attrib_id` IS NOT NULL AS `oconly`
|
||||
FROM `cache_rating`
|
||||
INNER JOIN `caches` ON `caches`.`cache_id`=`cache_rating`.`cache_id`
|
||||
INNER JOIN `user` ON `user`.`user_id`=`caches`.`user_id`
|
||||
LEFT JOIN `cache_location` ON `cache_rating`.`cache_id`=`cache_location`.`cache_id`
|
||||
LEFT JOIN `countries` ON `countries`.`short`=`cache_location`.`code1`
|
||||
LEFT JOIN `sys_trans_text` ON `sys_trans_text`.`trans_id`=`countries`.`trans_id` AND `sys_trans_text`.`lang`='&2'
|
||||
LEFT JOIN `caches_attributes` `ca` ON `ca`.`cache_id`=`caches`.`cache_id` AND `ca`.`attrib_id`=6
|
||||
WHERE `caches`.`country`='&1' AND
|
||||
`cache_rating`.`rating_date`>DATE_SUB(NOW(), INTERVAL 30 DAY) AND
|
||||
`caches`.`type`!=6 AND
|
||||
|
@ -32,12 +32,14 @@
|
||||
`caches`.`name` `cachename`, `caches`.`type`, `caches`.`country` `country`,
|
||||
`caches`.`date_created` `date_created`,
|
||||
IFNULL(`sys_trans_text`.`text`,`countries`.`en`) AS `country_name`,
|
||||
`user`.`user_id` `userid`, `user`.`username` `username`
|
||||
`user`.`user_id` `userid`, `user`.`username` `username`,
|
||||
`ca`.`attrib_id` IS NOT NULL AS `oconly`
|
||||
FROM `caches`
|
||||
INNER JOIN `user` ON `caches`.`user_id`=`user`.`user_id`
|
||||
LEFT JOIN `countries` ON `countries`.`short` = `caches`.`country`
|
||||
LEFT JOIN `sys_trans_text` ON `sys_trans_text`.`trans_id` = `countries`.`trans_id`
|
||||
AND `sys_trans_text`.`lang` = '" . sql_escape($opt['template']['locale']) . "'
|
||||
LEFT JOIN `caches_attributes` `ca` ON `ca`.`cache_id`=`caches`.`cache_id` AND `ca`.`attrib_id`=6
|
||||
WHERE `caches`.`status` = 1
|
||||
ORDER BY `caches`.`date_created` DESC
|
||||
LIMIT " . ($startat+0) . ', ' . ($perpage+0));
|
||||
|
@ -21,7 +21,7 @@
|
||||
sql_temp_table_slave('cachelist');
|
||||
sql_slave("CREATE TEMPORARY TABLE &cachelist (`cache_id` INT(11) PRIMARY KEY) SELECT `cache_id` FROM `caches` INNER JOIN `cache_status` ON `caches`.`status`=`cache_status`.`id` WHERE `cache_status`.`allow_user_view`=1 AND `country`!='DE' ORDER BY `date_created` DESC LIMIT 200");
|
||||
|
||||
$rsNewCaches = sql_slave("SELECT IFNULL(`sys_trans_text`.`text`, `countries`.`name`) `country_name`, `caches`.`cache_id` `cacheid`, `caches`.`wp_oc` `wpoc`, `user`.`user_id` `userid`, `caches`.`country` `country`, `caches`.`name` `cachename`, `caches`.`type`, `caches`.`country` `country`, `user`.`username` `username`, `caches`.`date_created` `date_created`, `cache_type`.`icon_large` `icon_large`
|
||||
$rsNewCaches = sql_slave("SELECT IFNULL(`sys_trans_text`.`text`, `countries`.`name`) `country_name`, `caches`.`cache_id` `cacheid`, `caches`.`wp_oc` `wpoc`, `user`.`user_id` `userid`, `caches`.`country` `country`, `caches`.`name` `cachename`, `caches`.`type`, `caches`.`country` `country`, `user`.`username` `username`, `caches`.`date_created` `date_created`, `cache_type`.`icon_large` `icon_large`, `ca`.`attrib_id` IS NOT NULL AS `oconly`
|
||||
FROM `caches`
|
||||
INNER JOIN `user` ON `caches`.`user_id`=`user`.`user_id`
|
||||
INNER JOIN `cache_type` ON `caches`.`type`=`cache_type`.`id`
|
||||
@ -29,6 +29,7 @@
|
||||
INNER JOIN `countries` ON `countries`.`short`=`caches`.`country`
|
||||
LEFT JOIN `sys_trans` ON `countries`.`trans_id`=`sys_trans`.`id`
|
||||
LEFT JOIN `sys_trans_text` ON `sys_trans`.`id`=`sys_trans_text`.`trans_id` AND `sys_trans_text`.`lang`='&1'
|
||||
LEFT JOIN `caches_attributes` `ca` ON `ca`.`cache_id`=`caches`.`cache_id` AND `ca`.`attrib_id`=6
|
||||
WHERE `status` = 1
|
||||
ORDER BY `country_name`, `caches`.`date_created` DESC LIMIT 200",
|
||||
$opt['template']['locale']);
|
||||
|
BIN
htdocs/resource2/ocstyle/images/misc/15x15-oc.png
Normal file
BIN
htdocs/resource2/ocstyle/images/misc/15x15-oc.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 698 B |
@ -20,7 +20,7 @@
|
||||
{foreach name=newCaches from=$newCaches item=newCache}
|
||||
<tr>
|
||||
<td style="width:1%; vertical-align:center">{$newCache.date_created|date_format:$opt.format.date}</td>
|
||||
<td class="listicon"><img src="resource2/{$opt.template.style}/images/cacheicon/16x16-{$newCache.type}.gif" width="16" height="16" border="0" /></td><td style="vertical-align:center"> <a href="viewcache.php?wp={$newCache.wpoc}">{$newCache.cachename|escape}</a> {t}by{/t} <a href="viewprofile.php?userid={$newCache.userid}">{$newCache.username|escape}</a> {if $newCache.country != $defaultcountry} <img src="images/flags/{$newCache.country|lower}.gif" alt="({$newCache.country_name})" title="{$newCache.country_name}" />{/if} </td>
|
||||
<td class="listicon"><img src="resource2/{$opt.template.style}/images/cacheicon/16x16-{$newCache.type}.gif" width="16" height="16" border="0" /></td><td style="vertical-align:center"> <a href="viewcache.php?wp={$newCache.wpoc}">{$newCache.cachename|escape}</a> {include file="res_oconly.tpl" oconly=$newCache.oconly} {t}by{/t} <a href="viewprofile.php?userid={$newCache.userid}">{$newCache.username|escape}</a> {if $newCache.country != $defaultcountry} <img src="images/flags/{$newCache.country|lower}.gif" alt="({$newCache.country_name})" title="{$newCache.country_name}" />{/if} </td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
<td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr><td width="1%">{$newCache.date_created|date_format:$opt.format.date}</td><td class="listicon"><img src="resource2/{$opt.template.style}/images/cacheicon/16x16-{$newCache.type}.gif" width="16" height="16" border="0" /></td><td><a href="viewcache.php?wp={$newCache.wpoc}">{$newCache.cachename|escape}</a> {t}by{/t} <a href="viewprofile.php?userid={$newCache.userid}">{$newCache.username|escape}</a></td></tr>
|
||||
<tr><td width="1%">{$newCache.date_created|date_format:$opt.format.date}</td><td class="listicon"><img src="resource2/{$opt.template.style}/images/cacheicon/16x16-{$newCache.type}.gif" width="16" height="16" border="0" /></td><td><a href="viewcache.php?wp={$newCache.wpoc}">{$newCache.cachename|escape}</a> {include file="res_oconly.tpl" oconly=$newCache.oconly} {t}by{/t} <a href="viewprofile.php?userid={$newCache.userid}">{$newCache.username|escape}</a></td></tr>
|
||||
{assign var='lastCountry' value=$newCache.country_name}
|
||||
{/foreach}
|
||||
<tr><td class="spacer"></td></tr>
|
||||
|
@ -13,7 +13,7 @@
|
||||
<table class="null" cellspacing="0" cellpadding="0"><tr>
|
||||
<td style="vertical-align:top; padding-right:2px; padding-top:2px" rowspan="2">{include file="res_cacheicon_22.tpl" cachetype=$cacheitem.type}</td>
|
||||
<td style="vertical-align:top; ">{$cacheitem.date_created|date_format:$opt.format.date} </td>
|
||||
<td style="text-align:left; width:100%"><b><a class="links" href="viewcache.php?cacheid={$cacheitem.cache_id}">{$cacheitem.name|escape}</a></b>
|
||||
<td style="text-align:left; width:100%"><b><a class="links" href="viewcache.php?cacheid={$cacheitem.cache_id}">{$cacheitem.name|escape}</a></b> {include file="res_oconly.tpl" oconly=$cacheitem.oconly}
|
||||
{t}by{/t}
|
||||
<b><a class="links" href="viewprofile.php?userid={$cacheitem.user_id}">{$cacheitem.username|escape}</a></b></td>
|
||||
</tr>
|
||||
|
@ -9,7 +9,7 @@
|
||||
<table class="null" cellspacing="0" cellpadding="0"><tr>
|
||||
<td style="vertical-align:top; padding-right:2px; padding-top:2px" rowspan="2"><img src="resource2/{$opt.template.style}/images/cacheicon/event-rand{rand min=1 max=4}.gif" alt="{t}Event Geocache{/t}" border="0" width="22" height="22" align="left" style="margin-right: 5px;" /></td>
|
||||
<td style="vertical-align:top; ">{$eventitem.date_hidden|date_format:$opt.format.date} </td>
|
||||
<td style="text-align:left; width:100%"><b><a class="links" href="viewcache.php?cacheid={$eventitem.cache_id}">{$eventitem.name|escape}</a></b>
|
||||
<td style="text-align:left; width:100%"><b><a class="links" href="viewcache.php?cacheid={$eventitem.cache_id}">{$eventitem.name|escape}</a></b> {include file="res_oconly.tpl" oconly=$eventitem.oconly}
|
||||
{t}by{/t}
|
||||
<b><a class="links" href="viewprofile.php?userid={$eventitem.user_id}">{$eventitem.username|escape}</a></b></td>
|
||||
</tr>
|
||||
|
@ -14,7 +14,7 @@
|
||||
{if $cacheitem.cRatings==3}<img src="images/rating-star.gif" border="0" alt="{t 1=$cacheitem.cRatings}%1 Recommendations in the last 30 days{/t}">{/if}
|
||||
{if $cacheitem.cRatings>3}<img src="images/rating-plus.gif" border="0" alt="{t 1=$cacheitem.cRatings}%1 Recommendations in the last 30 days{/t}">{/if}
|
||||
|
||||
<b><a class="links" href="viewcache.php?cacheid={$cacheitem.cache_id}">{$cacheitem.name|escape}</a></b>
|
||||
<b><a class="links" href="viewcache.php?cacheid={$cacheitem.cache_id}">{$cacheitem.name|escape}</a></b> {include file="res_oconly.tpl" oconly=$cacheitem.oconly}
|
||||
{t}by{/t}
|
||||
<b><a class="links" href="viewprofile.php?userid={$cacheitem.user_id}">{$cacheitem.username|escape}</a></b></td>
|
||||
</tr>
|
||||
|
8
htdocs/templates2/ocstyle/res_oconly.tpl
Normal file
8
htdocs/templates2/ocstyle/res_oconly.tpl
Normal file
@ -0,0 +1,8 @@
|
||||
{***************************************************************************
|
||||
* You can find the license in the docs directory
|
||||
*
|
||||
* Unicode Reminder メモ
|
||||
***************************************************************************}
|
||||
{if $oconly}
|
||||
{if $opt.help.oconly != ''}{$opt.help.oconly}{/if}<img src="resource2/ocstyle/images/misc/15x15-oc.png" width="15" height="15" >{if $opt.help.oconly != ''}</a>{/if}
|
||||
{/if}
|
Loading…
x
Reference in New Issue
Block a user