This should do the trick,
PHP Code:
$vbulletin->db->query_write("TRUNCATE TABLE " . TABLE_PREFIX . "session");
If you wanted to make it a PHP file...
logeveryoneout.php
PHP Code:
<?php
error_reporting(E_ALL ^ E_NOTICE ^ 8192);
require('./global.php');
if (!is_member_of($vbulletin->userinfo, 6)) {
print_no_permission();
}
$vbulletin->db->query_write("TRUNCATE TABLE " . TABLE_PREFIX . "session");
echo 'Done';