php /* function checkDateWindow(dateString) { // Input string of yyyy-mm-dd var newDaysWindow = 7 * (1000 * 60 * 60 * 24); // Only new for 7 days var dateArray = dateString.split('-'); var newDate = (new Date( dateArray[0], dateArray[1] - 1, dateArray[2])).valueOf() + newDaysWindow; return ( newDate > (new Date()).valueOf() ); } */ $extensionArray = array(); function makeExtensionGrid($extensionArray) { if (count($extensionArray) == 0) { echo('

A JavaScript Error has probably occurred

'); } echo(''); } function listExtensions($extensionArray) { $howMany = count($extensionArray); $ret = '

This list contains most known Phoenix Extensions. There are currently ' . $howMany . ' extensions available here.

'; for ($i = 0; $i < $howMany; $i++) { $ret .= ''; $ret .= ''; $ret .= ''; $ret .= ''; $ret .= '
'; $ret .= $extensionArray[$i]['name']; $ret .= '
Size:'; $ret .= $extensionArray[$i]['size']; $ret .= ' KBAuthor:'; for ($j=0; $extensionArray[$i]['author'][$j] != ''; $j++) { if ($j > 0 && count($extensionArray[$i]['author']) > 1 ) { $ret .= ', '; } if ($extensionArray[$i]['authorEmail'][$j] != '') { $ret .= ''; } $ret .= $extensionArray[$i]['author'][$j]; if ($extensionArray[$i]['authorEmail'][$j] != '') { $ret .= ''; } } $ret .= '
Install:Click HereHomepage:'; if ($extensionArray[$i].homepage != '') { $ret .= ''; $ret .= $extensionArray[$i]['homepage']; $ret .= ''; } else { $ret .= 'N/A'; } $ret .= '
'; $ret .= $extensionArray[$i]['description']; $ret .= '
'; } return $ret; } ?>