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:

dc98d7eb2bb1
3cf3f8fd35f8
Show More
post-scratchpad.php
14 lines | 432 B | text/x-php | PhpLexer
/ post-scratchpad.php
Add most necessary files for admin interface.
r1 <?php
require_once('include/admin.inc.php');
auth_redirect(); // Require logged in user to access this page.
check_nonce('new-scratchpad');
Switch to mysqli_* in other php files.
r5 $mtdb->query( sprintf( 'INSERT INTO scratchpad (contributor, message) VALUES (%d, "%s")', (int)$currentuser->id, mysqli_real_escape_string($mtdb->link, $_REQUEST['message'])) );
Add most necessary files for admin interface.
r1
adminlog("User posted to scratchpad.", MTS_SCRATCH, MTA_INSERT);
_redirect( ADMIN_PATH . '/index.php' );
?>