} $sw->reset(); $c = $sw->ge - $sw->a_s * $sw->e_p_s; $search = array('#' . date('d.m.Y') . '#', '#' . date('d.m.Y', time() - 86400) . '#'); $replace = array('Today', 'Yesterday'); while (DB::nextResult()) { ?> <p class="listing"> <span><?php print '#' . $c . ' [' . preg_replace($search, $replace, DB::result('zeit')) . ']'; ?> via <?php print DB::result('accounts'); ?> </span> <?php print Funclib::keywordUrl($keywords, DB::result('text')); ?> </p> <?php $c--; } if ($sw->gs > 1) { print '<p class="seitenwechsel"><strong>page:</strong> ' . $sw->siteChange() . '</p>'; } } else { print '<p class="nonexist">there are still no messages available</p>'; } ?> </div>
} ?> <div class="pvorlage1" style="position: relative;"> <span class="pheading">Message log (last 20 messages)</span> <?php DB::moveBufferToCurrentResult('messages'); if (DB::numRows() > 0) { $search = array('#' . date('d.m.Y') . '#', '#' . date('d.m.Y', time() - 86400) . '#'); $replace = array('Today', 'Yesterday'); while (DB::nextResult()) { ?> <p class="listing"> <span><?php print '[' . preg_replace($search, $replace, DB::result('zeit')) . ']'; ?> via <?php print DB::result('accounts'); ?> </span> <?php print Funclib::keywordUrl(array(), DB::result('text')); ?> </p> <?php } } else { print '<p class="nonexist">there are still no messages available</p>'; } ?> </div>