Commits

Anonymous committed 1f22e32

Fixed time stamp problems

Comments (0)

Files changed (3)

 <?php
+date_default_timezone_set('America/New_York');
 error_reporting(0);
 $username = $_POST['userID'];
 if(is_dir("temp/" . $username) == false | $username == '') {
 $canvasNum *= 80;
 echo "<table id='fileManager' width=\"400\" align=\"center\" cellpadding='3' cellspacing='2' style='border: 1px solid #CCCCCC;background-color:#DEEBDC; '>
 		<tr><td><input type='checkbox' id='toggle' checked onchange='Javascript:toggleCheckboxes()'></input></td><td>Toggle Selection</td></tr>
-		<tr><td>&nbsp;</td><td>Filename</td><td>Date uploaded</td><td>Filesize (KB)</td><td rowspan=$rowNum><canvas width='300' height='$canvasNum' id='relationsCanvas'></canvas></td></tr>";
+		<tr><td>&nbsp;</td><td>Filename</td><td>Date uploaded</td><td>Filesize</td><td rowspan=$rowNum><canvas width='300' height='$canvasNum' id='relationsCanvas'></canvas></td></tr>";
 foreach ($files as $allfile1) {
 	if(substr($allfile1, strlen($username) + 6) != 'hist' & substr($allfile1, strlen($username) + 6) != 'relations.txt' & substr($allfile1, strlen($username)+6, -6) != 'zzzzzzz' & substr($allfile1, strlen($username)+6, -6) != 'zzzzzz' & substr($allfile1, strlen($username) + 6) != 'logs') {
 		$time = filemtime($allfile1);
 		echo "<tr style='display: table-row'><td height='70' class='". $class ."'><input id='$allfile1' type='checkbox' class='". $class ."' value=" .  $allfile1. "
 				name='delList[]' checked></input></td>";
 		echo "<td class='". $class ."'>" . substr($allfile1, strlen($username) + 6) . "</td>";
-		echo "<td class='". $class ."'>" .date(n, $time). "/". date(j, $time). "/". date(y,$time). "</td>";
-		echo "<td id='".$class."' class='". $class ."'>" . round(filesize($allfile1)/1024, 1) . "</td>";
+		$filetime = filemtime($allfile1);
+		$date = date("F d Y H:i:s.", $filetime);
+		echo "<td class='". $class ."'>" . $date . "</td>";
+		echo "<td id='".$class."' class='". $class ."'>" . round(filesize($allfile1)/1024, 1) . " KB</td>";
 		if (empty($images[$c]) == false) {
 			$imgClass = substr($images[$c], 11 + strlen($username));
 			$imgExplode = explode(".", $imgClass);
 <div id="user_div" name="user_div" align=center></div>
 <table align='center'><tr><td>
 <div id='tabs'>
-  <ul>
+<ul>
     <li><a href="#idForm_div" onclick="Javascript: optionsinit = {target: '#seed_div', url: 'fileupload.php' };  $('#idForm').ajaxSubmit(optionsinit); "><span>File Manager</span></a></li>
     <li><a id='tab2' href="#generator"><span>RCircos</span></a></li>
     <li><a href="#workflow"><span>Workflow</span></a></li>
     <li><a href="#help"><span>File Formatting</span></a></li>
-  </ul>
+</ul>
 <div id='workflow'><br>
 <table align="center"><tr align="left"><td>
 <h2>Step by step instructions</h2>
 </div>
 </td></tr></table>
 <div id='stop_div'><a style="display:none">huehuehue</a></div>
-<div id='modal' style="display:none">We have begun generating your plot. If you proved an email we will send you a notification when it is complete. Please wait until this has finished before starting another one.</div>
-<div id='modal2' style="display:none">We have begun generating your plot. If you proved an email we will send you a notification when it is complete. Please wait until this has finished before starting another one.</div>
+<div id='modal' style="display:none">We have begun generating your plot. If you provided an email we will send you a notification when it is complete. Please wait until this has finished before starting another one.</div>
+<div id='modal2' style="display:none">We have begun generating your plot. If you provided an email we will send you a notification when it is complete. Please wait until this has finished before starting another one.</div>
 <div align="center">
 Questions? Comments? Contact peter.hansen.nih@gmail.com
 </div>

rcircos_action.php

 <?php
+date_default_timezone_set('America/New_York');
 // move uploaded files to the temp directory
 $outDir="temp/";
 $linkFile = $_POST['linkLines'];