Пример #1
0
<?php

/** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/
// Copyright 2008 - 2010 all rights reserved, SQLFusion LLC, info@sqlfusion.com
/** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/
$pageTitle = 'Ofuz :: Login';
$Author = 'SQLFusion LLC';
$Keywords = 'Keywords for search engine';
$Description = 'Description for search engine';
$background_color = 'white';
include_once 'config.php';
include_once 'includes/header.inc.php';
include_once 'facebook_client/facebook.php';
include_once 'class/OfuzFacebook.class.php';
$facebook = new Facebook(FACEBOOK_API_KEY, FACEBOOK_APP_SECRET);
$do_ofuz_fb = new OfuzFacebook($facebook);
$do_ofuz_fb->sessionPersistent("do_ofuz_fb", "logout.php", OFUZ_TTL);
$_SESSION['do_ofuz_fb']->isLoggedInFacebook();
$next_page = "index.php";
?>
<script type="text/javascript">
//<![CDATA[
var counter = <?php 
echo $_SESSION['do_ofuz_fb']->fb_uid ? 1 : 0;
?>
;
//]]>
</script>
<script src="fbconnect.js" type="text/javascript"></script>
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<script src="fbconnect.js" type="text/javascript"></script>
Пример #2
0
$Keywords = 'Keywords for search engine';
$Description = 'Description for search engine';
$background_color = 'white';
include_once 'config.php';
include_once 'includes/ofuz_check_access.script.inc.php';
include_once 'includes/header.inc.php';
set_time_limit(3600);
if (isset($_GET['ref']) && $_GET['ref'] == 'reg') {
    $ref = $_GET['ref'];
    $_SESSION["page_from"] = $ref;
}
include_once 'facebook_client/facebook.php';
include_once 'class/OfuzFacebook.class.php';
$facebook = new Facebook(FACEBOOK_API_KEY, FACEBOOK_APP_SECRET);
if (!is_object($_SESSION['do_ofuz_fb'])) {
    $do_ofuz_fb = new OfuzFacebook($facebook);
    $do_ofuz_fb->sessionPersistent("do_ofuz_fb", "index.php", OFUZ_TTL);
}
$_SESSION['do_ofuz_fb']->isLoggedInFacebook();
//if($fb_uid){
if ($_SESSION['do_ofuz_fb']->fb_uid) {
    ?>
    <script>
      var counter = 1;
    </script>
  <?php 
} else {
    ?>
    <script>
      var counter = 0;
    </script>
Пример #3
0
/** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/
// Copyright 2008 - 2010 all rights reserved, SQLFusion LLC, info@sqlfusion.com
/** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/
$pageTitle = 'Ofuz :: Contacts';
$Author = 'SQLFusion LLC';
$Keywords = 'Keywords for search engine';
$Description = 'Description for search engine';
$background_color = 'white';
include_once 'config.php';
include_once 'includes/ofuz_check_access.script.inc.php';
include_once 'includes/header.inc.php';
include_once 'facebook_client/facebook.php';
include_once 'class/OfuzFacebook.class.php';
$facebook = new Facebook(FACEBOOK_API_KEY, FACEBOOK_APP_SECRET);
if (!is_object($_SESSION['do_ofuz_fb'])) {
    $do_ofuz_fb = new OfuzFacebook($facebook);
    $do_ofuz_fb->sessionPersistent("do_ofuz_fb", "index.php", 36000);
}
$_SESSION['do_ofuz_fb']->istLoggedInFacebook();
//if($fb_uid){
if ($_SESSION['do_ofuz_fb']->fb_uid) {
    ?>
    <script>
      var counter = 1;
    </script>
  <?php 
} else {
    ?>
    <script>
      var counter = 0;
    </script>