Revert "Open tags should have closing tags"

This reverts commit aeca8807db.

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.
This commit is contained in:
Evan Prodromou 2009-10-08 11:41:39 -04:00
parent aeca8807db
commit a6d4adc398
33 changed files with 4 additions and 34 deletions

View File

@ -38,4 +38,3 @@ if ($sn->find()) {
print "$sn->nickname\n"; print "$sn->nickname\n";
} }
} }
?>

View File

@ -140,4 +140,3 @@ $tagmax = (have_option('t', 'tags')) ? get_option_value('t', 'tags') : 10000
$userprefix = (have_option('x', 'prefix')) ? get_option_value('x', 'prefix') : 'testuser'; $userprefix = (have_option('x', 'prefix')) ? get_option_value('x', 'prefix') : 'testuser';
main($usercount, $noticeavg, $subsavg, $tagmax); main($usercount, $noticeavg, $subsavg, $tagmax);
?>

View File

@ -48,4 +48,3 @@ if (!$object) {
} }
$result = $object->decache(); $result = $object->decache();
?>

View File

@ -66,4 +66,3 @@ if (!have_option('y', 'yes')) {
print "Deleting..."; print "Deleting...";
$user->delete(); $user->delete();
print "DONE.\n"; print "DONE.\n";
?>

View File

@ -137,4 +137,3 @@ if ($handler->start()) {
} }
$handler->finish(); $handler->finish();
?>

View File

@ -72,4 +72,3 @@ if (have_option('i')) {
$handler = new FacebookQueueHandler($id); $handler = new FacebookQueueHandler($id);
$handler->runOnce(); $handler->runOnce();
?>

View File

@ -68,4 +68,3 @@ while ($nid->fetch()) {
print ".\n"; print ".\n";
} }
?>

View File

@ -45,4 +45,3 @@ while ($notice->fetch()) {
common_log_db_error($notice, 'UPDATE', __FILE__); common_log_db_error($notice, 'UPDATE', __FILE__);
} }
} }
?>

View File

@ -79,4 +79,3 @@ while ($user->fetch()) {
$cache->delete(common_cache_key('user:notices_with_friends:' . $user->id)); $cache->delete(common_cache_key('user:notices_with_friends:' . $user->id));
} }
} }
?>

View File

@ -49,4 +49,3 @@ while ($notice->fetch()) {
common_log_db_error($notice, 'UPDATE', __FILE__); common_log_db_error($notice, 'UPDATE', __FILE__);
} }
} }
?>

View File

@ -39,4 +39,3 @@ while ($notice->fetch()) {
common_log(LOG_INFO, 'Getting replies for notice #' . $notice->id); common_log(LOG_INFO, 'Getting replies for notice #' . $notice->id);
common_save_replies($notice); common_save_replies($notice);
} }
?>

View File

@ -363,4 +363,3 @@ $fixer = new UTF8FixerUpper(array('max_date' => $max_date,
$fixer->fixup(); $fixer->fixup();
?>

View File

@ -28,4 +28,3 @@ ENDOFHELP;
require_once INSTALLDIR.'/scripts/commandline.inc'; require_once INSTALLDIR.'/scripts/commandline.inc';
echo common_config('daemon', 'piddir'); echo common_config('daemon', 'piddir');
?>

View File

@ -52,4 +52,3 @@ echo "pingqueuehandler.php ";
if (common_config('sms', 'enabled')) { if (common_config('sms', 'enabled')) {
echo "smsqueuehandler.php "; echo "smsqueuehandler.php ";
} }
?>

View File

@ -105,4 +105,3 @@ foreach ($ids as $id) {
$cache->delete(common_cache_key('user:notices_with_friends:' . $user->id . ';last')); $cache->delete(common_cache_key('user:notices_with_friends:' . $user->id . ';last'));
} }
} }
?>

View File

@ -76,4 +76,3 @@ if (have_option('i')) {
$handler = new JabberQueueHandler($id); $handler = new JabberQueueHandler($id);
$handler->runOnce(); $handler->runOnce();
?>

View File

@ -389,4 +389,3 @@ if (common_config('emailpost', 'enabled')) {
$md = new MailerDaemon(); $md = new MailerDaemon();
$md->handle_message('php://stdin'); $md->handle_message('php://stdin');
} }
?>

View File

@ -85,4 +85,3 @@ if (have_option('i')) {
$handler = new OmbQueueHandler($id); $handler = new OmbQueueHandler($id);
$handler->runOnce(); $handler->runOnce();
?>

View File

@ -67,4 +67,3 @@ if (have_option('i')) {
$handler = new PingQueueHandler($id); $handler = new PingQueueHandler($id);
$handler->runOnce(); $handler->runOnce();
?>

View File

@ -74,4 +74,3 @@ if (have_option('i')) {
$handler = new PublicQueueHandler($id); $handler = new PublicQueueHandler($id);
$handler->runOnce(); $handler->runOnce();
?>

View File

@ -28,4 +28,3 @@ END_OF_SNAPSHOT_HELP;
require_once INSTALLDIR.'/scripts/commandline.inc'; require_once INSTALLDIR.'/scripts/commandline.inc';
Snapshot::check(); Snapshot::check();
?>

View File

@ -34,4 +34,3 @@ $maxlifetime = ini_get('session.gc_maxlifetime');
print "Deleting sessions older than $maxlifetime seconds.\n"; print "Deleting sessions older than $maxlifetime seconds.\n";
Session::gc($maxlifetime); Session::gc($maxlifetime);
?>

View File

@ -59,4 +59,3 @@ if (!$user->update($original)) {
print "Password for user '$nickname' updated.\n"; print "Password for user '$nickname' updated.\n";
exit(0); exit(0);
} }
?>

View File

@ -69,4 +69,3 @@ if (empty($obj)) {
var_dump($obj); var_dump($obj);
print "\n"; print "\n";
} }
?>

View File

@ -71,4 +71,3 @@ if (have_option('i')) {
$handler = new SmsQueueHandler($id); $handler = new SmsQueueHandler($id);
$handler->runOnce(); $handler->runOnce();
?>

View File

@ -283,4 +283,4 @@ if (have_option('d') || have_option('debug')) {
$syncer = new SyncTwitterFriendsDaemon($id, 60, 2, $debug); $syncer = new SyncTwitterFriendsDaemon($id, 60, 2, $debug);
$syncer->runOnce(); $syncer->runOnce();
?>

View File

@ -54,4 +54,3 @@ $cnt = $user->find();
while ($user->fetch()) { while ($user->fetch()) {
Notice_inbox::gc($user->id); Notice_inbox::gc($user->id);
} }
?>

View File

@ -72,4 +72,3 @@ if (have_option('i')) {
$handler = new TwitterQueueHandler($id); $handler = new TwitterQueueHandler($id);
$handler->runOnce(); $handler->runOnce();
?>

View File

@ -562,4 +562,4 @@ if (have_option('d') || have_option('debug')) {
$fetcher = new TwitterStatusFetcher($id, 60, 2, $debug); $fetcher = new TwitterStatusFetcher($id, 60, 2, $debug);
$fetcher->runOnce(); $fetcher->runOnce();
?>

View File

@ -50,4 +50,3 @@ foreach ($ids as $id) {
$memc->delete(common_cache_key('user:notices_with_friends:'. $user->id)); $memc->delete(common_cache_key('user:notices_with_friends:'. $user->id));
$memc->delete(common_cache_key('user:notices_with_friends:'. $user->id . ';last')); $memc->delete(common_cache_key('user:notices_with_friends:'. $user->id . ';last'));
} }
?>

View File

@ -96,4 +96,3 @@ function curl_get_file($url)
return FALSE; return FALSE;
} }
?>

View File

@ -160,4 +160,4 @@ if (have_option('i')) {
$handler = new XmppConfirmHandler($id); $handler = new XmppConfirmHandler($id);
$handler->runOnce(); $handler->runOnce();
?>

View File

@ -412,4 +412,3 @@ $foreground = have_option('f', 'foreground');
$daemon = new XMPPDaemon($id, !$foreground); $daemon = new XMPPDaemon($id, !$foreground);
$daemon->runOnce(); $daemon->runOnce();
?>