CasperSecurity
<?php
//return time into options box for schedule timing
function get_times( $default = '19:00', $interval = '+30 minutes' ) {
$output = '';
$current = strtotime( '00:00' );
$end = strtotime( '23:59' );
while( $current <= $end ) {
$time = date( 'H:i', $current );
$sel = ( $time == $default ) ? ' selected' : '';
$output .= "<option value=\"{$time}\"{$sel}>" . date( 'h.i A', $current ) .'</option>';
$current = strtotime( $interval, $current );
}
return $output;
}
$cmc_email = 'media@canadiancmc.com';
$site_url = 'http://maximsoftsol.net/cmc/';
?>