Update functions.php
This commit is contained in:
parent
611cd10d5a
commit
5eb89878b0
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user