Skip to content
Permalink
Browse files

discarded html preview function

  • Loading branch information...
following
following committed Mar 15, 2013
1 parent 1c40b83 commit 55c9d3e23cdc3fd0eaf811188eb2a32958905014

Large diffs are not rendered by default.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -17,7 +17,6 @@
$error_wrong_node = t('This description has been created on another Opencaching website. The cache can only be edited there.');
$desc_not_ok_message = '<br /><br /><p style="margin-top:0px;margin-left:0px;width:550px;background-color:#e5e5e5;border:1px solid black;text-align:left;padding:3px 8px 3px 8px;"><span class="errormsg">' . t('This HTML-Code is invalid.') . '</span><br />%text%</p><br />';
$show_all_langs_submit = '&nbsp;<input type="submit" name="show_all_langs" value="' . t('Show all') . '" />';
$error_desc_not_found = t('(internal error) The description is not available.');
@@ -163,13 +163,6 @@
'filename' => 'articles.php?page=cacheinfo',
'siteid' => 'articles/cacheinfo'
),
array(
'title' => t('HTML preview'),
'menustring' => t('HTML preview'),
'visible' => true,
'filename' => 'htmlprev.php',
'siteid' => 'htmlprev'
),
array(
'title' => t('HTML Tags'),
'menustring' => t('HTML Tags'),
@@ -30,14 +30,11 @@
$date_not_ok_message = '<span class="errormsg">' . t('Invalid date, format:DD-MM-JJJJ') . '</span>';
$name_not_ok_message = '&nbsp;<span class="errormsg">' . t('Cachename is invalid') . '</span>';
$tos_not_ok_message = '<br/><span class="errormsg">' . t('The cache can only be adopted if you agree our terms of use.') . '</span>';
$desc_not_ok_message = '<br/><span class="errormsg">' . t('This HTML-code is invalid. To find out the exact cause of the error, you should use the <a href="htmlprev.php" target="_blank">HTML preview</a>.') . '</span>';
$type_not_ok_message = '&nbsp;<span class="errormsg">' . t('No cache-type is chosen.') . '</span>';
$size_not_ok_message = '&nbsp;<span class="errormsg">' . t('No cache-size is chosen.') . '</span>';
$diff_not_ok_message = '&nbsp;<span class="errormsg">' . t('Choose both valuations!') . '</span>';
$sizemismatch_message = '&nbsp;<span class="errormsg">' . t('For virtual and webcam caches, the cache size has to be -no container-!') . '</span>';
$html_desc_errbox = '<br /><br /><p style="margin-top:0px;margin-left:0px;width:550px;background-color:#e5e5e5;border:1px solid black;text-align:left;padding:3px 8px 3px 8px;"><span class="errormsg">' . t('This HTML-Code is invalid.') . '</span><br />%text%</p><br />';
$cache_submitted = t('Your cache is successfully added to the database. You will be redirected to the cache page, now.');
$sel_message = t('Select');
@@ -725,22 +725,13 @@
}
//html-desc?
$desc_html_not_ok = false;
if ($descMode != 1)
{
// Filter Input
$purifier = new HTMLPurifier();
$desc = $purifier->purify($desc);
tpl_set_var('desc', htmlspecialchars($desc, ENT_COMPAT, 'UTF-8'));
$desc_html_not_ok = false;
if ($desc_html_not_ok == true)
{
tpl_set_var('desc_message', mb_ereg_replace('%text%', $errmsg, $html_desc_errbox));
$error = true;
}
}
//cache-size
@@ -778,7 +769,7 @@
}
//no errors?
if (!($tos_not_ok || $name_not_ok || $hidden_date_not_ok || $activation_date_not_ok || $lon_not_ok || $lat_not_ok || $desc_html_not_ok || $time_not_ok || $way_length_not_ok || $size_not_ok || $type_not_ok || $diff_not_ok))
if (!($tos_not_ok || $name_not_ok || $hidden_date_not_ok || $activation_date_not_ok || $lon_not_ok || $lat_not_ok || $time_not_ok || $way_length_not_ok || $size_not_ok || $type_not_ok || $diff_not_ok))
{
//sel_status
$now = getdate();
@@ -53,6 +53,7 @@
<li>verbesserte Bildeinbettung in GPX-Dateien, nun alles wie im Originallisting</li>
<li>viele Detailverbesserungen bei Formuarlayouts</li>
<li>Adminliste (intern)</li>
<li>alte HTML-Vorschaufunktion entsorgt</li>
</ul>

<p>Korrigiert (Bugfixes):</p>
@@ -51,6 +51,7 @@
<li>improved picture embedding in GPX files, should be identical now with listing display</li>
<li>many detail improvements of form layouts</li>
<li>admin list (internal)</li>
<li>discarded old HTML preview function</li>
</ul>

<p>Fixed:</p>

This file was deleted.

Oops, something went wrong.

0 comments on commit 55c9d3e

Please sign in to comment.
You can’t perform that action at this time.