Esempio n. 1
0
 public function arrayToObject($array)
 {
     if (!is_array($array)) {
         return $array;
     }
     $object = new stdClass();
     if (is_array($array) && count($array) > 0) {
         foreach ($array as $name => $value) {
             $name = strtolower(trim($name));
             if (!empty($name)) {
                 $object->{$name} = sql_connect::arrayToObject($value);
             }
         }
         return $object;
     } else {
         return FALSE;
     }
 }
Esempio n. 2
0
<?php

ob_start();
session_start();
include "config.php";
include "define.php";
include "extra.php";
include "functions.php";
include "content.php";
$f = new functns();
$con = new sql_connect();
$db = new custom_query();
$me = new myfunction();
$content = new allcontents();
$getcontent = new main_concontent();
$con->getconnect();
/*require 'facebook.php';
	$facebook = new Facebook(array(
  'appId'  => '613331932053999',
  'secret' => '67ca1bf4c03ee0481ed13099676141de',
));
$user = $facebook->getUser();
if ($user) {
  try {
    // Proceed knowing you have a logged in user who's authenticated.
    $user_profile = $facebook->api('/me');
	
  } catch (FacebookApiException $e) {
    error_log($e);
    $user = null;
  }
Esempio n. 3
0
 public function __construct($connectionInfo)
 {
     parent::__construct($connectionInfo);
 }