query( sprintf('INSERT INTO twitter_status (position, message) VALUES (%d, "%s")', $position, mysqli_real_escape_string($mtdb->link, $msg)) ); adminlog("Added new preset: $msg", MTS_TWITTER, MTA_ADD); } elseif(empty($msg)) { // Delete an existing preset $mtdb->query( "DELETE FROM twitter_status WHERE id = $id" ); adminlog("Removed preset: $id", MTS_TWITTER, MTA_ADD); } else { // Modify an existing preset $mtdb->query( sprintf('UPDATE twitter_status SET position = %d, message = "%s" WHERE id = %d', $position, mysqli_real_escape_string($mtdb->link, $msg), $id) ); } } } $statuses = $mtdb->getAll('SELECT id, position, message FROM twitter_status ORDER BY position, id'); adminhead('Manage Twitter Presets'); adminmenu(); ?>
To add a new preset, enter it into the empty box below.
To delete a preset, remove all text from its message box.