Update functions.php

This commit is contained in:
tripathyr 2021-11-08 09:32:03 +05:30 committed by GitHub
parent 611cd10d5a
commit 5eb89878b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,4 @@
<?php
/**
* Created by PhpStorm.
* User: Abhishek Kumar Sinha
* Date: 10/3/2017
* Time: 6:33 PM
*/
function round_it($num=0, $deci=2) {
$decimal = abs(number_format((float)$num, $deci, '.', ''));
@ -17,7 +11,7 @@ function redirect_to($url=null) {
}
function checkLoginStatus() {
if(!isset($_SESSION['fb_id']) || !isset($_SESSION['user_id']) || !isset($_SESSION['user_name'])) {
if($_SESSION['authenticated'] != true) {
return false;
}
return true;
@ -120,4 +114,4 @@ function get_bcx_user_by_email($em='') {
}
return $data;
}
}