phpnuke autologin in ijabbar aber wie

  • phpnuke 6.5 + ijabbar ( ejabberd ) einloggen in phpnuke autologin dann mit selben nick in ijabbar Homepage here http://accessdenied5k.no-ip.com

    phpnuke 6.5 code hinzugefügt footer.html
    Quote:
    </script>
    <script type="text/javascript" language="javascript" src="http://accessdenied5k.no-ip.com:5280/web/ijab-1.0-b…bnuke_config.js"></script>
    <script type="text/javascript" language="javascript" src="http://accessdenied5k.no-ip.com:5280/web/ijab-1.0-beta2/ijab_i18n_en.js"></script>
    <script type="text/javascript" language="javascript" src="http://accessdenied5k.no-ip.com:5280/web/ijab-1.0-b…ijab.nocache.js"></script>


    <script type="text/javascript">
    var loginiJab = function()
    {
    var userName = document.getElementById("login").value;
    var password = document.getElementById("password").value;
    if(userName == ""||password=="")
    {
    alert("username or password is empty!");
    };
    var handler =
    {
    onBeforeLogin:function()
    {
    alert("On Before login");
    },
    onEndLogin:function()
    {
    alert("On end login");
    },
    onError:function(message)
    {
    iJab.login('test','test');
    },
    onLogout:function()
    {
    alert("On logout");
    },
    onResume:function()
    {
    alert("On resume");
    },
    onSuspend:function()
    {
    alert("On suspend")
    },
    onAvatarClicked:function(x,y,username,jid)
    {
    alert("onAvatarClicked posX:"+x+" posY:"+y+" username:"+username+" jid:"+jid)
    },
    onAvatarMouseOver:function(x,y,username,jid)
    {
    alert("onAvatarMouseOver posX:"+x+" posY:"+y+" username:"+username+" jid:"+jid)
    },
    onStatusTextUpdated:function(text)
    {
    alert(" onStatusTextUpdated:+"+text);
    }
    };
    iJab.login(userName,password);
    }

    </script>


    Code:
    a2ensite ijabbar aktivert


    die /etc/apache2/sites-available/ijabbar
    Quote:
    Alias /http-bind "/var/lib/ejabberd/www/ijab-1.0-beta2"

    <Directory /var/lib/ejabberd/www/ijab-1.0-beta2>
    AddDefaultCharset UTF-8
    </Directory>

    ProxyRequests On
    ProxyPass /http-bind http://accessdenied5k.no-ip.com:5280/http-bind/
    ProxyPassReverse /http-bind http://accessdenied5k.no-ip.com:5280/http-bind/

    <Proxy http://accessdenied5k.no-ip.com:5280/http-bind/*>
    Allow from all
    </Proxy>


    Die ijabbar geht über http://accessdenied5k.no-ip.com:5280/http-bind bzw. http://accessdenied5k.no-ip.com:5280/we ... /iJab.html

    ijabbar ijabnuke_config.js
    auszug : Zeile 15 - 33
    Quote:
    xmpp:{
    domain:"accessdenied5k.no-ip.com",
    http_bind:"/http-bind",
    host:"192.168.1.35",
    port:5222,
    server_type:"ejabberd",
    roster_mode:"all",
    auto_login:true,
    none_roster:false,
    get_roster_delay:true,
    username_cookie_field:"user", <--was kommt da rein soweit ist das denk ich richtig laut cookie Editor
    token_cookie_field:"session_id", <--was kommt da rein soweit ist das denk ich richtig laut cookie Editor
    anonymous_prefix:"",
    max_reconnect:3,
    enable_muc:true,
    muc_servernode:"conference.accessdenied5k.no-ip.com",
    vcard_search_servernode:"vjud.accessdenied5k.no-ip.com",
    gateways:
    [

    aber wenn ich das sooo mache dann zeigt er mir keine nicknamen an sondern ein langen string

    hier die instruktion von der webseite ijabbar
    How to integrate iJab into your website?
    Quote:

    ==============How to integrate iJab into your website?==============
    iJab is a full-featured AJAX web chat client for XMPP/Jabber, which
    could work as Facebook like chat bar and Meebo web chat client.iJab supports
    1:1 chat, smiley, MUC, black-list, typing notification, receiving message
    notification, server-side chat history and etc.
    To use iJab in your website, you need to install a XMPP server with HTTP-BIND
    server enabled first.
    1) Download newest iJab from http://www.ijab.im or http://code.google.com/p/ijab
    2) Uncompress and put iJab files into your website's dirctory.
    You would find ijab_config.js and ijab_i18n_*.js and ijab directory in it.
    ijab_config.js is the config file for iJab and you should set this correct according to your
    setup.
    ijab_i18n_*.js is language file for iJab.
    iJab files are under ijab directory.
    3) Configure iJab and add the codes to your webpage(add this before including ijab.nochache.js).
    Change it according to your situations.
    var iJabConf =
    {
    client_type:"xmpp",
    app_type:"bar",
    theme:"standard",
    debug:false,
    avatar_url:"http://www.ijab.im/user_portraits/{username}",
    enable_roster_manage:false,
    disable_toolbox:true,
    disable_option_setting:true,
    disable_msg_browser_prompt:true,
    xmpp:{
    domain:"ijab.im",
    http_bind:"/http-bind",
    port:5222,
    server_type:"ejabberd",
    roster_mode:"all",
    auto_login:true,
    username_cookie_field:"username",
    token_cookie_field:"sessionid",
    anonymous_prefix:"",
    max_reconnect:3
    },
    tools:
    [
    {
    href:'http://www.google.com',
    target:'_blank',
    img:'http://www.google.cn/favicon.ico',
    text:'Google Search'
    },
    {
    href:'http://www.xing.com/',
    target:'_blank',
    img:'http://www.xing.com/favicon.ico',
    text:'Xing'
    }
    ],
    shortcuts: // if you want to hide this, delete all the lists
    [
    {
    href:'http://www.ijab.im/',
    target:'_blank',
    img:'http://www.anzsoft.com/favicon.ico',
    text:'Go to iJab'
    },
    {
    href:'http://www.google.com',
    target:'_blank',
    img:'http://www.google.cn/favicon.ico',
    text:'Google Search'
    }
    ],
    ijabcometd:{
    }
    };
    4)Include ijab.nocache.js in your webpage.
    5) Make iJab SSO with your website
    iJab would use the following two settings to get login token from browser cookies
    which was set by your website.
    user_cookie_field:"username",
    token_cookie_field:"sessionid",
    username and sessionid is cookie key and you could set it according to your website.
    if iJab could get values from browser cookies by the keys "username" and "sessionid",
    iJab would send the values to XMPP server and XMPP would use this value for authentication.
    ## We offer tech service to do this on server-side.
    6) Strongly suggest your use an IFrame solution to integrate iJab, just like this:
    Put your main content of your website into a iframe and ijab into the bottom, it
    would avoid resuming connection of iJab while navigating from page to page.

    gruss accessdenied

  • /modules/Your_Account index.php
    Zeile : 1069

    Code
    setcookie("user","$info",time()+2592000);


    hinzufügen

    Code
    setcookie("usernuke","$setusername");


    speichern und dann in der ijabbarxxxx.js


    Code
    username_cookie_field:"usernuke",
    token_cookie_field:"session_id",