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() { if (extensionArray.length == 0) { document.write('

A JavaScript Error has probably occurred

'); } document.write(''); } function listExtensions() { document.write('

This list contains most known Phoenix Extensions. There are currently ' + extensionArray.length + ' extensions available here.

'); for (var i = 0; i < extensionArray.length; i++) { document.write(''); document.write(''); document.write(''); document.write(''); document.write('
'); document.write(extensionArray[i].name); document.write('
Size:'); document.write(extensionArray[i].size); document.write(' KBAuthor:'); for (var j=0; j < extensionArray[i].author.length; j++) { if (j > 0 && extensionArray[i].author.length > 1 ) { document.write(', '); } if (extensionArray[i].authorEmail[j] != '') { document.write(''); } document.write(extensionArray[i].author[j]); if (extensionArray[i].authorEmail[j] != '') { document.write(''); } } document.write('
Install:Click HereHomepage:'); if (extensionArray[i].homepage != '') { document.write(''); document.write(extensionArray[i].homepage); document.write(''); } else { document.write('N/A'); } document.write('
'); document.write(extensionArray[i].description); document.write('
'); } } */ function listExtensions() { $ret = '

This list contains most known Phoenix Extensions. There are currently ' . count($extensionArray) . ' extensions available here.

'; //for (var i = 0; i < extensionArray.length; i++) //{ $i = 0; $ret .= ''; $ret .= ''; $ret .= ''; $ret .= ''; $ret .= '
'; $ret .= $extensionArray[$i]['name']; $ret .= '
Size:'; $ret .= $extensionArray[$i].size); $ret .= ' KBAuthor:'; /* for ($j=0; $j < $extensionArray[$i].author.length; $j++) { if (j > 0 && $extensionArray[$i].author.length > 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; } ?>