mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
2013-08-19 Miguel de Dios <miguel.dedios@artica.es>
* general/logon_ok.php, godmode/setup/news.php: fixed the lost "<br>" in the news. Fixes: #2380 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8675 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
59a8bc9c60
commit
de3742d915
@ -1,3 +1,10 @@
|
|||||||
|
2013-08-19 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* general/logon_ok.php, godmode/setup/news.php: fixed the lost
|
||||||
|
"<br>" in the news.
|
||||||
|
|
||||||
|
Fixes: #2380
|
||||||
|
|
||||||
2013-08-19 Hirofumi Kosaka <kosaka@rworks.jp>
|
2013-08-19 Hirofumi Kosaka <kosaka@rworks.jp>
|
||||||
|
|
||||||
* godmode/agentes/module_manager_editor.php,
|
* godmode/agentes/module_manager_editor.php,
|
||||||
|
@ -44,10 +44,16 @@ echo '<div style="width:50%; float:left;" id="leftcolumn">';
|
|||||||
switch ($config["dbtype"]) {
|
switch ($config["dbtype"]) {
|
||||||
case "mysql":
|
case "mysql":
|
||||||
case "postgresql":
|
case "postgresql":
|
||||||
$sql = "SELECT subject,timestamp,text,author FROM tnews ORDER by timestamp DESC LIMIT 3";
|
$sql = "SELECT subject,timestamp,text,author
|
||||||
|
FROM tnews
|
||||||
|
ORDER BY timestamp DESC
|
||||||
|
LIMIT 3";
|
||||||
break;
|
break;
|
||||||
case "oracle":
|
case "oracle":
|
||||||
$sql = "SELECT subject,timestamp,text,author FROM tnews where rownum <= 3 ORDER by timestamp DESC";
|
$sql = "SELECT subject,timestamp,text,author
|
||||||
|
FROM tnews
|
||||||
|
WHERE rownum <= 3
|
||||||
|
ORDER BY timestamp DESC";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -62,10 +68,13 @@ echo '<div style="width:50%; float:left;" id="leftcolumn">';
|
|||||||
$comparation_suffix = __('ago');
|
$comparation_suffix = __('ago');
|
||||||
}
|
}
|
||||||
foreach ($news as $article) {
|
foreach ($news as $article) {
|
||||||
|
$text = io_safe_output($article["text"]);
|
||||||
|
|
||||||
|
|
||||||
echo '<tr><th><b>'.$article["subject"].'</b></th></tr>';
|
echo '<tr><th><b>'.$article["subject"].'</b></th></tr>';
|
||||||
echo '<tr><td>'.__('by').' <b>'.$article["author"].'</b> <i>' . ui_print_timestamp ($article["timestamp"], true).'</i> ' . $comparation_suffix . '</td></tr>';
|
echo '<tr><td>'.__('by').' <b>'.$article["author"].'</b> <i>' . ui_print_timestamp ($article["timestamp"], true).'</i> ' . $comparation_suffix . '</td></tr>';
|
||||||
echo '<tr><td class="datos">';
|
echo '<tr><td class="datos">';
|
||||||
echo nl2br ($article["text"]);
|
echo nl2br($text);
|
||||||
echo '</td></tr>';
|
echo '</td></tr>';
|
||||||
}
|
}
|
||||||
echo '</table>';
|
echo '</table>';
|
||||||
|
@ -56,7 +56,7 @@ if (isset ($_POST["update"])) { // if update
|
|||||||
|
|
||||||
$values = array('subject' => $subject, 'text' => $text, 'timestamp' => $timestamp);
|
$values = array('subject' => $subject, 'text' => $text, 'timestamp' => $timestamp);
|
||||||
$result = db_process_sql_update('tnews', $values, array('id_news' => $id_news));
|
$result = db_process_sql_update('tnews', $values, array('id_news' => $id_news));
|
||||||
|
|
||||||
ui_print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
__('Successfully updated'),
|
__('Successfully updated'),
|
||||||
__('Not updated. Error updating data'));
|
__('Not updated. Error updating data'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user