Example #1
0
 /**
  * Execute the command.
  *
  * @param  InputInterface $input
  * @param  OutputInterface $output
  * @return void
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $memcached = Connection::get($input->getOption('host'), $input->getOption('port'));
     if (!$memcached) {
         return $output->writeln('<error>Could not connect to memcached server!</error>');
     }
     $stats = (object) array_values($memcached->getStats())[0];
     $output->writeln('Memcached Server Stats');
     $output->writeln('Version: <info>' . $stats->version . '</info>');
     $output->writeln('Uptime: <info>' . timeAgoInWords(date('c', time() - $stats->uptime)) . '</info>');
     $output->writeln('Items in cache: <info>' . $stats->curr_items . '</info>');
     $output->writeln('Size of cache: <info>' . Units::bytes($stats->bytes)->format() . '</info>');
 }
Example #2
0
</div>
				<div class="title"> <?php 
echo $row['title'] ? $row['title'] : '&nbsp;';
?>
</div>
				<div class="info">
					<img class="avatar" src="<?php 
echo $row['avatar'];
?>
" width="40px" height="40px" align="middle" />
					<div class="user-name"><?php 
echo $row['username'];
?>
</div>
					<div class="date"><?php 
echo timeAgoInWords(date('Y-m-d H:i:s', $row['update_time']), 'Asia/Seoul', 'ko');
?>
</div>
				</div>
				<div class="divider"></div>
				<div class="frame">
					<iframe id="embed-frame" src="<?php 
echo $embed_url;
?>
" width="100%" height="800px" allowfullscreen></iframe>
					<div class="resizer" title="Please drag for content resizing "><i class="icon-grip1"></i></div>
				</div>
			</div>
			<div class="right">
				<div class="button-group">
    echo "</p>";
}
test_time("-2 year", "over 2 years");
timeAgoInWords("-2 year");
test_time("-1 year", "about 1 year");
timeAgoInWords("-1 year");
test_time("-1 month", "about 1 month");
timeAgoInWords("-1 month");
test_time("-2 month", "about 2 months");
timeAgoInWords("-2 month");
test_time("-1 day", "1 day");
timeAgoInWords("-1 day");
test_time("-2 day", "2 days");
timeAgoInWords("-2 day");
test_time("-1 hour", "about 1 hour");
timeAgoInWords("-1 hour");
test_time("-2 hour", "about 2 hours");
timeAgoInWords("-2 hour");
test_time("-1 minute", "about 1 minute");
timeAgoInWords("-1 minute");
test_time("-2 minute", "about 2 minutes");
timeAgoInWords("-2 minute");
test_time("-44 minute", "about 44 minutes");
timeAgoInWords("-44 minute");
test_time("-45 minute", "about 1 hour");
timeAgoInWords("-45 minute");
test_time("-1 second", "less than a minute");
timeAgoInWords("-1 second");
test_time("-31 second", "1 minute");
timeAgoInWords("-31 second");
Example #4
0
                ' . htmlspecialchars($Project) . ' · <b>' . htmlspecialchars($Exception['errorClass']) . '</b> · ' . htmlspecialchars(empty($Event['context']) ? '' : $Event['context']) . '
            </div>
            <div class="panel-body">
                <form action="index.php" method="post">
                    <input type="hidden" name="delete_event" value="' . $EventID . '">
                    <button type="submit" class="pull-right btn btn-link">Delete</button>
                </form>
                
                
                <a class="btn-group pull-right" href="event.php?id=' . $EventID . '">
                    <span class="btn btn-' . ($Details['count'] < 10 ? 'primary' : 'danger') . '">' . $Details['count'] . ' occurrence' . ($Details['count'] == 1 ? '' : 's') . '</span>
                    <span class="btn btn-default">View details</span>
                </a>
                
                <p>' . htmlspecialchars($Exception['message']) . '</p>
                <p class="text-muted">Last event ' . timeAgoInWords($Date) . '</p>
            </div>
        </div>
        ';
}
?>
    </div>
    
    <footer class="bs-docs-footer" role="contentinfo">
        <div class="container">
            <p>Page rendered in <span class="text-success"><?php 
echo number_format(microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'], 5);
?>
</span> seconds.</p>
            <p>Made by <a rel="author" href="https://xpaw.me">xPaw</a>. Code licensed under <a rel="license" href="https://github.com/xPaw/Bugsnuggle/blob/master/LICENSE" target="_blank">MIT</a> and is available on <a href="https://github.com/xPaw/Bugsnuggle">GitHub</a>.</p>
            <p>Bugsnag notifier clients are © Bugsnag Inc.</p>
Example #5
0
?>
</a> 
    <?php 
if (is_numeric($member["cb_team"])) {
    ?>
      (Team <?php 
    echo $member["cb_team"];
    ?>
)
    <?php 
}
?>
    <br/>

    <?php 
echo emailLink($member["email"]);
?>
<br/>

    wrote <?php 
echo timeAgoInWords($member["days_ago"]);
?>
<br/>

    <em><?php 
echo $member["title"];
?>
</em>
  </div>
</li>