public function glmMembersAdminAjax()
{
+ $defaultTimeZone = date_default_timezone_get();
+ date_default_timezone_set($this->config['settings']['time_zone']);
+
if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
trigger_error(glmAssociateMemoryUsage(),E_USER_NOTICE);
}
trigger_error(glmAssociateMemoryUsage(),E_USER_NOTICE);
}
+ // Restore timezone that was set before our code was called
+ date_default_timezone_set($defaultTimeZone);
+
exit; // Need to test if this is here for a reason!
wp_die();
fData = fData.replace(/\{ filename \}/g, fileData.files[i].name);
fData = fData.replace(/\{ fileurl \}/g, fileData.files[i].newFileUrl);
fData = fData.replace(/\{ newfilename \}/g, fileData.files[i].newFileName);
+ fData = fData.replace(/\{ lastaccesstime \}/g, fileData.files[i].lastAccessTime);
$('#AfterNewFiles').before(fData);
// $('#fileContainer_' + fileData.files[i].id).removeClass('glm-fileLibraryItemHidden');
$file['newFileName'] = $newFilename;
$file['newFileUrl'] = GLM_MEMBERS_WORDPRESS_FILE_LIBRARY_URL.$newFilename;
-
-
- $lastAccessTime = date('Y-m-d H:i:s');
+ $file['lastAccessTimeMysql'] = date('Y-m-d H:i:s');
+ $file['lastAccessTime'] = date('m/d/Y h:i A');
// Store image name in images table
$sql = "
'".$file['newFileName']."',
'',
'',
- '$lastAccessTime'
+ '".$file['lastAccessTimeMysql']."'
);
";
$this->wpdb->query($sql);
</td>
<td class="glm-file-library-table-left">
-  
+ { lastaccesstime }
</td>
</tr>
<tr id="fileLinks_{ id }" class="glm-hidden glm-file-links"">
<td colspan="5" style="border: 1px #ccc solid;">
<div class="glm-row" style="margin-bottom: 0px !important; margin-top: .5rem;">
<div class="glm-columns glm-small-6">
- <label>File Title: </label><BR>
+ <label>File Title: </label><br>
<input id="InputTitle_{ id }" class="glm-form-text-input-medium" type="text" name="title" value=""><br>
</div>
<div class="glm-columns glm-small-5">
- Description:
+ <label>Description: </label><br>
<textarea id="InputDescr_{ id }" class="glm-form-text-input-medium" name="descr"></textarea>
</div>
</div>
</div>
</div>
- <p>NOTE: The "Copy" button will copy the entire URL for the uploaded file to the user's "Clipboard".</p>
+ <p>NOTE:
+ Hover over a line to show actions.
+ For reference, any files you edit, download, or copy the link will have a difffernt background color till the page is refreshed and
+ the last file you edit, download, or copy will be hilighted.
+ </p>
<div class="glm-admin-table">
<div class="glm-admin-table-inner">
{if $paging}
</tr>
</thead>
<tbody>
- <tr class="glm-NewFileHidden glm-fileLibraryItemHidden" style="background-color: #fff;"><th colspan="4" style="color: blue;"> New Uploads</th></tr>
+ <tr class="glm-NewFileHidden glm-fileLibraryItemHidden" style="background-color: #fff;"><th colspan="4" style="color: gray;"> New Uploads</th></tr>
</tbody>
<tbody id="AfterNewFiles">
<tr class="glm-NewFileHidden glm-fileLibraryItemHidden" style="background-color: #fff;"><td colspan="4"> </td></tr>
- <tr class="glm-NewFileHidden glm-fileLibraryItemHidden" style="background-color: #fff;"><th colspan="4" style="color: blue;"> Previous Uploads</th></tr>
+ <tr class="glm-NewFileHidden glm-fileLibraryItemHidden" style="background-color: #fff;"><th colspan="4" style="color: gray;"> Previous Uploads</th></tr>
</tbody>
{if $haveFiles}
{assign var="i" value="0"}
<td colspan="5" style="border: 1px #ccc solid;">
<div class="glm-row" style="margin-bottom: 0px !important; margin-top: .5rem;">
<div class="glm-columns glm-small-6">
- <label>File Title: </label><BR>
+ <label>File Title: </label><br>
<input id="InputTitle_{$f.id}" class="glm-form-text-input-medium" type="text" name="title" value="{$f.title}"><br>
</div>
<div class="glm-columns glm-small-5">
- Description:
+ <label>Description: </label><br>
<textarea id="InputDescr_{$f.id}" class="glm-form-text-input-medium" name="descr">{$f.descr}</textarea>
</div>
</div>