Initial commit.
This commit is contained in:
27
lib/php/monica/curtime.inc.php
Normal file
27
lib/php/monica/curtime.inc.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
// File name: curtime.inc.php
|
||||
// Description: PHP current time constants
|
||||
// Date: 2007-08-08
|
||||
// Author: imacat <imacat@pristine.com.tw>
|
||||
// Copyright: Copyright (C) 2007 Pristine Communications
|
||||
|
||||
// Set the include path
|
||||
if (!defined("INCPATH_SET")) {
|
||||
require_once dirname(__FILE__) . "/incpath.inc.php";
|
||||
}
|
||||
// Referenced subroutines
|
||||
require_once "monica/hires.inc.php";
|
||||
|
||||
// Settings
|
||||
if (!defined("NOW")) {
|
||||
define("NOW", time());
|
||||
}
|
||||
if (!defined("TODAY")) {
|
||||
define("TODAY", date("Y-m-d"));
|
||||
}
|
||||
// Log the start time
|
||||
if (!defined("T_START")) {
|
||||
define("T_START", time_hires());
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user