aboutsummaryrefslogtreecommitdiff
path: root/src/globals.php
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-07-26 15:16:10 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-07-26 15:16:10 +0000
commitf967c953505e723ac904a2085552760430ffc54a (patch)
tree0ff0d1177907a51a4701adc75c661bece6210e5d /src/globals.php
parentdbb47c196ed8c4eedebef248d3252c9024170b0d (diff)
downloadboca-f967c953505e723ac904a2085552760430ffc54a.tar.gz
boca-f967c953505e723ac904a2085552760430ffc54a.zip
remove relation with next fields from site
Diffstat (limited to 'src/globals.php')
-rwxr-xr-xsrc/globals.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/globals.php b/src/globals.php
index d87db56..2391a8f 100755
--- a/src/globals.php
+++ b/src/globals.php
@@ -15,7 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
////////////////////////////////////////////////////////////////////////////////
-// Last modified 07/sep/2015 by cassio@ime.usp.br
+// Last modified 26/jul/2017 by cassio@ime.usp.br
require_once('db.php');
define("dbcompat_1_4_1",true);
@@ -254,6 +254,17 @@ function LOGLevel($msg,$level,$dodb=true) {
DBNewLog($_SESSION["usertable"]["contestnumber"], $_SESSION["usertable"]["usersitenumber"],
$_SESSION["usertable"]["usernumber"], $type, getIP(), $msga, "");
}
+function mytime() {
+ return time();
+}
+function mymtime() {
+ list($usec, $sec) = explode(" ", microtime());
+ return (float) (((int) (1000*$usec))/1000 + $sec);
+}
+function myunique() {
+ list($usec, $sec) = explode(" ", microtime());
+ return (int) ((int)($usec * 100)) + ($sec % 1000000);
+}
//retorna data e hora atuais
function now () {
return date('H\:i:s T \- d/M/Y');