Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 2482

Přidáno uživatelem Ondřej Fibich před více než 9 roky(ů)

Opravy: refs #1009: Znak < v SMS zprave pro upozorneni

Zobrazit rozdíly:

freenetis/branches/1.2/application/controllers/messages.php
if (module::e('sms') &&
Message_Model::has_sms_content($message->type))
{
$sms_text = trim(text::cs_utf2ascii(strip_tags($form_data['sms_text'])));
$sms_text = trim(text::cs_utf2ascii($form_data['sms_text']));
$message->sms_text = empty($sms_text) ? NULL : $sms_text;
}
......
Message_Model::has_sms_content($message->type))
{
// sms text
$sms_text = trim(text::cs_utf2ascii(strip_tags($form_data['sms_text'])));
$sms_text = trim(text::cs_utf2ascii($form_data['sms_text']));
// set var
$message->sms_text = empty($sms_text) ? NULL : $sms_text;
}
freenetis/branches/1.2/application/views/messages/show.php
<h2><?php echo $headline ?></h2>
<br />
<table class="extended">
<tr>
<th colspan="2"><?php echo __('About notification message') ?></th>
</tr>
<tr>
<th><?php echo __('Message name') ?></th>
<td><?php echo $message->name ?></td>
</tr>
<tr>
<th><?php echo __('User-cancelable') ?></th>
<td><?php echo callback::boolean($message, 'self_cancel') ?></td>
</tr>
<tr>
<th><?php echo __('Ignore whitelist') ?></th>
<td><?php echo callback::boolean($message, 'ignore_whitelist') ?></td>
</tr>
</table>
<br>
<table class="extended">
<?php if (module::e('redirection') && $message->text): ?>
<tr>
<th><?php echo __('Content of the message for redirection') ?></th>
<td class="notification_message_content"><?php echo $message->text ?></td>
</tr>
<?php endif ?>
<?php if (module::e('email') && $message->email_text): ?>
<tr>
<th><?php echo __('Content of the message for E-mail') ?></th>
<td class="notification_message_content"><?php echo $message->email_text ?></td>
</tr>
<?php endif ?>
<?php if (module::e('sms') && $message->sms_text): ?>
<tr>
<th><?php echo __('Content of the message for SMS') ?></th>
<td class="notification_message_content"><?php echo $message->sms_text ?></td>
</tr>
<?php endif ?>
</table>
<h2><?php echo $headline ?></h2>
<br />
<table class="extended">
<tr>
<th colspan="2"><?php echo __('About notification message') ?></th>
</tr>
<tr>
<th><?php echo __('Message name') ?></th>
<td><?php echo $message->name ?></td>
</tr>
<tr>
<th><?php echo __('User-cancelable') ?></th>
<td><?php echo callback::boolean($message, 'self_cancel') ?></td>
</tr>
<tr>
<th><?php echo __('Ignore whitelist') ?></th>
<td><?php echo callback::boolean($message, 'ignore_whitelist') ?></td>
</tr>
</table>
<br>
<table class="extended">
<?php if (module::e('redirection') && $message->text): ?>
<tr>
<th><?php echo __('Content of the message for redirection') ?></th>
<td class="notification_message_content"><?php echo $message->text ?></td>
</tr>
<?php endif ?>
<?php if (module::e('email') && $message->email_text): ?>
<tr>
<th><?php echo __('Content of the message for E-mail') ?></th>
<td class="notification_message_content"><?php echo $message->email_text ?></td>
</tr>
<?php endif ?>
<?php if (module::e('sms') && $message->sms_text): ?>
<tr>
<th><?php echo __('Content of the message for SMS') ?></th>
<td class="notification_message_content"><?php echo html::specialchars($message->sms_text) ?></td>
</tr>
<?php endif ?>
</table>

Také k dispozici: Unified diff