This reverts commit
aeca8807dbce951beccbc3fb0e5a4ae5600e5e5f.
We specifically DON'T have closing tags so we don't get errors with
whitespace after the closing tag.
I realize this is less of an issue with scripts, but we should still
not use closing tags.
while ($sn->fetch()) {
print "$sn->nickname\n";
}
-}
-?>
+}
\ No newline at end of file
$userprefix = (have_option('x', 'prefix')) ? get_option_value('x', 'prefix') : 'testuser';
main($usercount, $noticeavg, $subsavg, $tagmax);
-?>
}
$result = $object->decache();
-?>
print "Deleting...";
$user->delete();
print "DONE.\n";
-?>
}
$handler->finish();
-?>
$handler = new FacebookQueueHandler($id);
$handler->runOnce();
-?>
common_log_db_error($notice, 'UPDATE', __FILE__);
}
}
-?>
$cache->delete(common_cache_key('user:notices_with_friends:' . $user->id));
}
}
-?>
common_log_db_error($notice, 'UPDATE', __FILE__);
}
}
-?>
common_log(LOG_INFO, 'Getting replies for notice #' . $notice->id);
common_save_replies($notice);
}
-?>
require_once INSTALLDIR.'/scripts/commandline.inc';
echo common_config('daemon', 'piddir');
-?>
if (common_config('sms', 'enabled')) {
echo "smsqueuehandler.php ";
}
-?>
$cache->delete(common_cache_key('user:notices_with_friends:' . $user->id . ';last'));
}
}
-?>
$handler = new JabberQueueHandler($id);
$handler->runOnce();
-?>
$md = new MailerDaemon();
$md->handle_message('php://stdin');
}
-?>
$handler = new OmbQueueHandler($id);
$handler->runOnce();
-?>
$handler = new PingQueueHandler($id);
$handler->runOnce();
-?>
$handler = new PublicQueueHandler($id);
$handler->runOnce();
-?>
require_once INSTALLDIR.'/scripts/commandline.inc';
Snapshot::check();
-?>
print "Deleting sessions older than $maxlifetime seconds.\n";
Session::gc($maxlifetime);
-?>
print "Password for user '$nickname' updated.\n";
exit(0);
}
-?>
var_dump($obj);
print "\n";
}
-?>
$handler = new SmsQueueHandler($id);
$handler->runOnce();
-?>
$syncer = new SyncTwitterFriendsDaemon($id, 60, 2, $debug);
$syncer->runOnce();
-?>
+
while ($user->fetch()) {
Notice_inbox::gc($user->id);
}
-?>
$handler = new TwitterQueueHandler($id);
$handler->runOnce();
-?>
$fetcher = new TwitterStatusFetcher($id, 60, 2, $debug);
$fetcher->runOnce();
-?>
+
$memc->delete(common_cache_key('user:notices_with_friends:'. $user->id));
$memc->delete(common_cache_key('user:notices_with_friends:'. $user->id . ';last'));
}
-?>
$handler = new XmppConfirmHandler($id);
$handler->runOnce();
-?>
+
$daemon = new XMPPDaemon($id, !$foreground);
$daemon->runOnce();
-?>