• Log in or sign up for an account here: https://www.sythe.org/login

found some codez

wizardzgame

Apprentice

Banned
Joined
Jul 30, 2007
Sythe Gold
0
Messages
966
Location
Internet
Code:
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}

xmlhttp.open("GET","simplename.php",false);
xmlhttp.send();
var simplename = xmlhttp.responseText;

xmlhttp.open("GET", "xmpppass.php?" + Math.floor(1000000* Math.random()) , false);
xmlhttp.send();
var token = xmlhttp.responseText;

if (token == "must be logged in to sythe.org") alert("You must be logged into Sythe.org to use chat. If you are logged in and still see this message then you need to enable cookies!");
var room = location.search.replace(/[^0-9a-zA-Z\-_]/mg, "");
var rooms = [];
var extraroom = "";
if (room.indexOf("_") != -1) {
    var n = room.split("_");
    var i = 0;
    for (i = 0 ; i < n.length; i++) rooms[i] = n[i] + '@conference.xmpp.sythe.org';
} else rooms[0] = room + '@conference.xmpp.sythe.org';
if (simplename != "" && token != "" && room != "")
$(document).ready(function() {
    Candy.init('http://xmpp.sythe.org:7070/http-bind/', {
        core: { debug: false, autojoin: rooms },
        view: { resources: 'http://xmpp.sythe.org/candy/res/' }
        });
        
        var x = Candy.Core.Event.Jabber.Room.Presence;
        Candy.Core.Event.Jabber.Room.Presence = function(h) {
            var i = 0;
            for (i = 0; i < rooms.length; i++)
                Candy.Core.getConnection().muc.saveConfiguration(rooms[i], {});
            return x(h);
        }

        
        Candy.Core.connect(simplename + "@xmpp.sythe.org/" +  Math.floor(1000000* Math.random()) , token);
        
        }); else document.writeln("not logged in");
        </script>

sythe why did you use openfire bro if you're going to do that at least run it on something other than Jetty
 
Runescape Gamblingrunescape gambling
Back
Top