Fix a handful of typos in include/pages.php.
Fix a handful of typos in include/pages.php.

File last commit:

c1e4c31f199d
f1e0050abc35
Show More
delete-tweet.php
25 lines | 666 B | text/x-php | PhpLexer
/ delete-tweet.php
<?php
require_once('include/admin.inc.php');
auth_redirect(); // Require logged in user to access this page.
// Deliberatly don't pass a nonce here, always AYS
check_nonce('delete-tweet-'.(int)$_REQUEST['tweet_id']);
//Filter input first
$victim = (int)$_REQUEST['tweet_id'];
if($victim)
{
$r = $mtdb->query("DELETE FROM twitter_post WHERE id = '$victim'");
if(!$r)
{
adminlog('Error deleting scheduled tweet ' . $victim, MTS_TWITTER, MTA_DELETE, E_ERROR);
mtdie('Error deleting the specified tweet.', 'SQL Error');
}
}
adminlog("Tweet $victim deleted.", MTS_TWITTER, MTA_DELETE);
_redirect( ADMIN_PATH . '/character-twitter.php?deleted=success' );
?>