Ejemplo n.º 1
0
function SERVICE_CMSOPEN_postnuke($authenticate_only)
{
    global $phpnuke, $default_access, $web_root, $root_dir, $cms_user_access, $cms_type, $include_path;
    if (!defined("LOADED_AS_MODULE") and $phpnuke == "false") {
        die("You can't access this file directly...<br><br>Generally this means that Jinzora was " . "installed as a PostNuke module and you're trying to access it outside of PostNuke");
    }
    if (function_exists('pnSecAuthAction')) {
        if (!pnSecAuthAction(0, 'Jinzora::', "::", ACCESS_READ)) {
            include 'header.php';
            die('Access Denied');
            include 'footer.php';
        }
    }
    // Now let's get the users name IF we need it
    if (pnUserGetVar('uname') != "") {
        $username = pnUserGetVar('uname');
    } else {
        $username = "******";
    }
    // Ok, now let's authenticate this user
    userAuthenticate($username);
    // Now let's see if we only wanted the user access
    if ($authenticate_only == true) {
        return;
    }
    include_once "header.php";
    // Now let's open the table
    OpenTable();
}
Ejemplo n.º 2
0
function SERVICE_CMSOPEN_mambo($authenticate_only)
{
    global $mainframe, $my, $include_path, $thename;
    defined('_VALID_MOS') or die('Direct Access to this location is not allowed.');
    // Let's get this users username
    $username = $my->username;
    if ($username == "") {
        $username = "******";
    }
    // Ok, now let's authenticate this user
    userAuthenticate($username);
}
Ejemplo n.º 3
0
function SERVICE_CMSOPEN_cpgnuke($authenticate_only)
{
    global $this_site, $web_root, $path_to_zip, $root_dir, $media_dir, $audio_types, $video_types, $ext_graphic, $cms_user_access, $default_access, $CLASS, $include_path;
    $userinfo =& $CLASS['member']->members[is_user()];
    $username = $userinfo['username'];
    userAuthenticate($username);
    // Now let's see if we only wanted the user access
    if ($authenticate_only == true) {
        return;
    }
    include_once "header.php";
    OpenTable();
}
Ejemplo n.º 4
0
function SERVICE_CMSOPEN_e107($authenticate_only)
{
    global $sql, $sql2, $aj, $sysprefs, $eTraffic, $tp, $HEADER, $USERNAME;
    if (defined('USERNAME')) {
        $user = USERNAME;
    } else {
        $user = "******";
    }
    userAuthenticate($user);
    if ($authenticate_only == true) {
        return;
    }
    include_once HEADERF;
}
Ejemplo n.º 5
0
function SERVICE_CMSOPEN_geeklog($authenticate_only)
{
    global $_USER;
    // Let's get this users username
    $username = $_USER['username'];
    if ($username == "") {
        $username = "******";
    }
    // Ok, now let's authenticate this user
    userAuthenticate($username);
    // Now let's see if we only wanted the user access
    if ($authenticate_only == true) {
        return;
    }
    echo COM_siteHeader();
}
Ejemplo n.º 6
0
function SERVICE_CMSOPEN_phpnuke($authenticate_only)
{
    global $this_site, $web_root, $path_to_zip, $root_dir, $media_dir, $audio_types, $video_types, $ext_graphic, $cms_user_access, $default_access, $cms_mode, $css, $include_path, $image_dir;
    // Now let's get the users name IF we need it
    $cookie = cookiedecode($_COOKIE['user']);
    $username = $cookie[1];
    if ($username == "") {
        $username = "******";
    }
    userAuthenticate($username);
    // Now let's see if we only wanted the user access
    if ($authenticate_only == true) {
        return;
    }
    include_once "header.php";
}
Ejemplo n.º 7
0
function SERVICE_CMSOPEN_xoops($authenticate_only)
{
    global $xoopsUser, $xoopsOption;
    // Let's get this users username
    if (is_object($xoopsUser)) {
        $username = $xoopsUser->getVar('uname');
    } else {
        $username = "******";
    }
    // Ok, now let's authenticate this user
    userAuthenticate($username);
    // Now let's see if we only wanted the user access
    if ($authenticate_only == true) {
        return;
    }
    ob_start();
}
Ejemplo n.º 8
0
<?php

/**
 * Include iFlyChat PHP SDK files
 * Ensure that path to iFlyChat PHP SDK files are correct
 *
**/
require_once dirname(__FILE__) . '/iflychatsettings.php';
require_once dirname(__FILE__) . '/iflychatuserdetails.php';
require_once dirname(__FILE__) . '/iflychat.php';
/**
 * Use iFlyChat class to render mobile auth
 *
**/
if (isset($_POST['username']) && isset($_POST['password'])) {
    if (userAuthenticate($_POST['username'], $_POST['password'])) {
        global $iflychat_userinfo;
        $iflychat_settings = new iFlyChatSettings();
        $iflychat = new iFlyChat($iflychat_settings->iflychat_settings, $iflychat_userinfo->getUserDetails());
        $ifly_render_chat_code = $iflychat->renderChatAjax();
        header('Content-type: application/json');
        print $ifly_render_chat_code;
    }
} else {
    print_r('Access Denied');
}
/**
 * Print iFlyChat user chat code
 *
**/
function userAuthenticate($username, $password)