Configure the new TinyMCE to have almost the same buttons as the old one.
Configure the new TinyMCE to have almost the same buttons as the old one.

File last commit:

c1e4c31f199d
3cf3f8fd35f8
Show More
rss-striplog.php
31 lines | 1.3 KiB | text/x-php | XmlPhpLexer
/ rss-striplog.php
Add most necessary files for admin interface.
r1 <?php
require_once('include/admin.inc.php');
$count = isset($_REQUEST['count']) && ctype_digit($_REQUEST['count']) ? $_REQUEST['count'] : 25;
$entries = $mtdb->getAll("SELECT UNIX_TIMESTAMP(l.logdate) AS logdate, s.name AS section, action, message FROM admin_log l JOIN admin_section s ON l.section = s.id WHERE s.name = 'strip' ORDER BY l.logdate DESC LIMIT $count");
header("Content-Type: application/rss+xml;charset=utf-8");
echo "<?xml version=\"1.0\" ?>\n";
?>
<rss version="2.0">
<channel>
<title>Megatokyo Admin Log</title>
<link>http://www.megatokyo.com/admin</link>
<description>Listing of administrative events: errors, warnings, and notifications.</description>
<language>en-us</language>
<?php foreach($entries as $k=>$v) { ?>
<item>
<title><?php echo htmlentities($v->message, ENT_COMPAT, 'UTF-8') ?></title>
<author><?php printf('%s (%s)', $v->cmail, $v->cname) ?></author>
<pubDate><?php echo date( DATE_RFC822, $v->logdate ) ?></pubDate>
<guid><?php printf('%s%s/%s/view-adminlog.php?timestamp=%d', SITE_HOST, SITE_PATH, SITE_ADMIN, $v->logdate) ?></guid>
<category domain="<?php printf('%s%s/%s/log-acion', SITE_HOST, SITE_PATH, SITE_ADMIN) ?>"><?php echo $v->action ?></category>
<description><?php echo htmlentities($v->message, ENT_COMPAT, 'UTF-8') ?></description>
</item>
<?php } ?>
</channel>
</rss>