Move admin CSS into a subdirectory.
Move admin CSS into a subdirectory.

File last commit:

3b807424bd87
64df00e7cb3d
Show More
delete-tweet.php
26 lines | 691 B | text/x-php | PhpLexer
/ delete-tweet.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.
// 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)
{
Update more admin pages to use DBAL functions.
r30 $r = $dbConnection->executeUpdate('DELETE FROM twitter_post WHERE id = ?', array($victim));
Add most necessary files for admin interface.
r1 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' );
Clean up extraneous spaces at the ends of lines.
r8 ?>