";
if (!is_null($page_id)) $out .= '' . $page_id . ' | ';
if (!is_null($page_title)) $out .= '' . wrReportSandboxParse('[[' . $page_title . ']]') . ' | ';
$out .= '' . $date_report . ' | ';
if (!is_null($date_entry)) $out .= '' . date('Y-m-d, H:i', strtotime($date_entry)) . ' | ';
if (!is_null($date_invalid)) $out .= '' . date('Y-m-d, H:i', strtotime($date_invalid)) . ' | ';
$out .= '' . $condition . ' | ';
$out .= '' . htmlspecialchars($description) . ' | ';
$out .= '' . htmlspecialchars($author_name) . ' | ';
$out .= "
\n";
return $out;
}
/// \brief It returns a table (string containing HTML) showing the results.
///
/// Is called when the tag Es wurden keine Bahnberichte in der Datenbank gefunden.
\n";
}
$dbr->freeResult($res);
return $out;
}
/// \brief It returns an array of the "condition" (as number) and the date of the "most recent" report of the specified page (to decode as list($condition, $date);
///
/// If no condition is present, array(NULL, NULL) is returned
function wrReportConditionRender($page_title) {
$dbr = wfGetDB(DB_SLAVE);
$res = $dbr->select('wrreport', array('max(wrreport.id) as max'), array('page_title' => $page_title, 'condition is not null', 'date_invalid > now()'));
// select condition, date_report from wrreport where id = (select max(wrreport.id) as max from wrreport where page_title='Birgitzer Alm (vom Adelshof)' and date_invalid > now() and condition is not null);
if ($res->numRows() <= 0) return array(NULL, NULL);
$row = $dbr->fetchObject($res);
$res = $dbr->select('wrreport', array('condition', 'date_report'), array('id' => $row->max));
if ($res->numRows() <= 0) return array(NULL, NULL);
$row = $dbr->fetchObject($res);
return array($row->condition, $row->date_report);
}
// Parser Hook Functions
// ---------------------
/// \brief Is called when the tag Der Bahnbericht für [[') . $page_title . utf8_encode('#Einträge|') . $page_title . utf8_encode(']] wurde erfolgreich gespeichert.
'));
// We could redirect to result with the following line but we don't want to.
// $wgOut->redirect($title->getFullURL() . '#Eintr.C3.A4ge');
}
if ($action == 'preview') {
$wgOut->addHTML("