This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HTML page | |
// <h2>Customer Summary</h2> | |
// <div> | |
// <button id="esLastHour">Last Hour</button> | |
// <button id="esDaily">24 Hours</button> | |
// <button id="esWeekly">1 Week</button> | |
// <button id="esMonthly">4 Weeks</button> | |
// </div> | |
// <div id="errorSummaryDT" class="dataTable"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Default cache values | |
ExpiresActive ON | |
ExpiresByType text/html "access plus 1 minute" | |
ExpiresByType text/css "access plus 1 day" | |
ExpiresByType text/javascript "access plus 7 days" | |
ExpiresByType application/x-javascript "access plus 7 days" | |
ExpiresByType application/javascript "access plus 7 days" | |
ExpiresByType application/x-shockwave-flash "access plus 7 days" | |
ExpiresByType image/gif "access plus 1 month" | |
ExpiresByType image/jpg "access plus 1 month" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Auto-versioning. Append last modified datetime to filename, .htaccess needs to have the corresponding rule | |
* Similar function, same name in javascript, common.js | |
* E.g. "assets/css/style.css" converts to "assets/css/style.1363054031.css" | |
* @param $url String Relative path | |
* @return String Modified relative path | |
*/ | |
if ( ! function_exists('site_ver_url')) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function status($status, $is = true) | |
{ | |
// $status = 99 to show all result, ignore filtering | |
if($status !== null && $status != "" && (int)$status < 10) | |
{ | |
$status = (array) $status; | |
$statusString = implode(", ", (array) $status); | |
if($is) |
OlderNewer