Exemplo n.º 1
0
// Controller ///////////////////////
include_once 'controller/me.controller.php';
include_once 'controller/member.controller.php';
include_once 'controller/site.controller.php';
include_once 'controller/location.controller.php';
include_once 'controller/place.controller.php';
include_once 'controller/post.controller.php';
include_once 'controller/comment.controller.php';
include_once 'controller/photo.controller.php';
include_once 'controller/api.controller.php';
include_once 'controller/activity.controller.php';
include_once 'controller/category.controller.php';
include_once 'controller/notification.controller.php';
include_once 'controller/tag.controller.php';
// Object of Controller
$me = new MeController();
$member = new MemberController();
$site = new SiteController();
$location = new LocationController();
$place = new PlaceController();
$post = new PostController();
$comment = new CommentController();
$activity = new ActivityController();
$photo = new PhotoController();
$api = new APIController();
$detect = new Mobile_Detect();
$desktop = new Desktop_Detect();
$category = new CategoryController();
$notification = new NotificationController();
$tag = new TagController();
// Device access detact process
Exemplo n.º 2
0
include_once 'model/me.model.php';
include_once 'model/image.model.php';
include_once 'model/page.model.php';
include_once 'model/location.model.php';
// Controller ///////////////////////
include_once 'controller/site.controller.php';
include_once 'controller/api.controller.php';
include_once 'controller/me.controller.php';
include_once 'controller/image.controller.php';
include_once 'controller/page.controller.php';
include_once 'controller/location.controller.php';
// Object of Controller
$site = new SiteController();
$detect = new Mobile_Detect();
$api = new ApiController();
$me = new MeController();
$image = new ImageController();
$page = new PageController();
$location = new LocationController();
// Device access detact process
include 'device.access.php';
$_SESSION['facebook_id'] = '1818320188';
// Device define data
define('DEVICE_TYPE', $deviceType);
define('DEVICE_MODEL', $deviceModel);
define('DEVICE_OS', $deviceOS);
define('DEVICE_BROWSER', $deviceBrowser);
// Cookie Checking
if ($me->CookieChecking()) {
    $_SESSION['facebook_id'] = $_COOKIE['facebook_id'];
}