Code:
base64_decode = function (inp)
{
var b64_tab_e = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/"];
var _loc2 = [];
var _loc1 = 0;
while (_loc1 < 256)
{
_loc2[_loc1] = -1;
++_loc1;
} // end while
var _loc1 = 0;
while (_loc1 < 65)
{
_loc2[ord(b64_tab_e[_loc1])] = _loc1;
++_loc1;
} // end while
_loc2[10] = -2;
var out = "";
var _loc3 = 0;
var buf = 0;
var pst = 0;
var len = inp.length - 1;
while (pst < len)
{
while (_loc3 < 8)
{
do
{
code = _loc2[inp.charCodeAt(pst++)];
} while (code < -1)
if (code < 0)
{
return (-1);
} // end if
buf = (buf << 6 | code) & 63;
_loc3 = _loc3 + 6;
} // end while
_loc3 = _loc3 - 8;
out = out + chr(buf >>> _loc3 & 255);
} // end while
return (out);
};
if (_root.soundFile != "images/None")
{
_root.soundFX = new Sound();
_root.soundFX.loadSound(_root.soundFile, false);
} // end if
wrap_start = "";
wrap_end = "";
_root.btext = wrap_start + _root.intext + wrap_end;
pass = false;
if (_root.copyright_by == "photonfxsoftware")
{
if (_url.indexOf("file://") != "-1")
{
pass = true;
}
else
{
decId = base64_decode(_root.id);
if (decId == "photonfx")
{
pass = true;
} // end if
} // end else if
if (pass)
{
_root.btext = wrap_start + _root.intext + wrap_end;
} // end if
} // end if
Alvast bedankt !!!
Favorieten/bladwijzers