tombotxp
%Europe/Berlin %965 %2006, 00:10
Ik heb op het inet ergens een license script gevonden voor flash die een licentie kan controlleren voor je. Als de licentie verkeerd is krijg je "..." terug. M'n probleem is nu, hoe kan ik een werkende licentie code genereren? Is er iemand die ergens een scriptje in php of in flash of in nog iets anders kan maken die een goede licentie geeft, aan de hand van onderstaande code moet dat wel lukken voor iemand.
Dit is de code:
function Reg()
{
li = license;
if (li == null)
{
li = "...";
}
else if (li.length < 30)
{
li = "...";
}
else
{
l = 0;
for (i = 1; i < li.length; i++)
{
l = l + li.charCodeAt(i);
} // end of for
if (li.charCodeAt(0) - 70 + l % 10 != 6)
{
li = "...";
}
else
{
li = li.substr(1);
x = "XN69-IWCH7RVPJQF3Y4G8T05A1LB.2OMDEKZSU";
y = li;
li = "";
for (i = 0; i < y.length; i++)
{
x = StrRotate(x);
l = x.indexOf(y.charAt(i));
if (l < 26)
{
li = li + String.fromCharCode(l + 65);
continue;
} // end if
if (l < 36)
{
li = li + String.fromCharCode(l + 48 - 26);
continue;
} // end if
li = li + String.fromCharCode(l + 45 - 36);
} // end of for
li = li.substr(2, Number("0x" + li.substr(0, 2))).toLowerCase();
if (li.substr(li.length - 5) == "-bulk")
{
}
else
{
x = _url;
x = x.substr(x.indexOf("://") + 3);
x = x.substr(0, x.indexOf("/"));
if (x.indexOf(li) == -1 || li.length < 2)
{
li = "...";
} // end else if
} // end else if
} // end else if
} // end else if
} // End of the function
Dit is de code:
function Reg()
{
li = license;
if (li == null)
{
li = "...";
}
else if (li.length < 30)
{
li = "...";
}
else
{
l = 0;
for (i = 1; i < li.length; i++)
{
l = l + li.charCodeAt(i);
} // end of for
if (li.charCodeAt(0) - 70 + l % 10 != 6)
{
li = "...";
}
else
{
li = li.substr(1);
x = "XN69-IWCH7RVPJQF3Y4G8T05A1LB.2OMDEKZSU";
y = li;
li = "";
for (i = 0; i < y.length; i++)
{
x = StrRotate(x);
l = x.indexOf(y.charAt(i));
if (l < 26)
{
li = li + String.fromCharCode(l + 65);
continue;
} // end if
if (l < 36)
{
li = li + String.fromCharCode(l + 48 - 26);
continue;
} // end if
li = li + String.fromCharCode(l + 45 - 36);
} // end of for
li = li.substr(2, Number("0x" + li.substr(0, 2))).toLowerCase();
if (li.substr(li.length - 5) == "-bulk")
{
}
else
{
x = _url;
x = x.substr(x.indexOf("://") + 3);
x = x.substr(0, x.indexOf("/"));
if (x.indexOf(li) == -1 || li.length < 2)
{
li = "...";
} // end else if
} // end else if
} // end else if
} // end else if
} // End of the function