Whats the fix for this? when I edit my acc culti it keeps loading and it doesnt end/edit it.
Anyhelp?
Whats the fix for this? when I edit my acc culti it keeps loading and it doesnt end/edit it.
Anyhelp?
Last edited by NoName123456; 31-03-14 at 04:01 PM.
Good Night Mr Sora,
Sorry for bother you but i am having some issue with addon's tab. My first problem is i cant log an account. My problem is on login.jsp, more specific on the code of this function:
Could you share your code? Since i am not good on jsp i dont know how to use thisCode:String pw_encode(String salt, MessageDigest alg) { alg.reset(); alg.update(salt.getBytes()); byte[] digest = alg.digest(); StringBuffer hashedpasswd = new StringBuffer(); String hx; for(int i=0; i<digest.length; i++) { hx = Integer.toHexString(0xFF & digest[i]); //0x03 is equal to 0x3, but we need 0x03 for our md5sum if(hx.length() == 1) { hx = "0" + hx; } hashedpasswd.append(hx); } salt = "0x" + hashedpasswd.toString(); return salt; }.Code:base64_encode(md5($user.$pass, true));
My second problem is:
I managed to make work "GET GOLD ADDON" on a char BUT with a GM account
When i try with a normal account, i cant make it work, dont know why
Even more, i used same method as GM account and work on other addon like GET ITEM like you can see here
Any clue why? Thank you in advance!
Regards
Thank You Mr Regano for your answer but i replaced your index,jsp and get an error
And iif i use the code on login.jsp, i get error too
But you gave me some ideas...ill try to resolve it...thank you!String pw_encode(String salt, MessageDigest alg)
{
alg.reset();
alg.update(salt.getBytes());
byte[] digest = alg.digest();
return Base64Util.encode(digest);
}
Please copy and overwrite all of the target folder.
No need Mr Regano XD!
Just need to do this change on login.jsp
And put your Base64Util.class on /WEB-INF/classes/org/seasar/framework/util/Base64Util.class or overwrite the folder class hehe, sry for explain with apple and banana but not all have the skill to know.Code:<%@page import="java.sql.*"%> <%@page import="java.util.*"%> <%@page import="java.security.*"%> <%@page import="org.seasar.framework.util.Base64Util"%> <%@include file="../../WEB-INF/.pwadminconf.jsp"%> <%! String pw_encode(String salt, MessageDigest alg) { alg.reset(); alg.update(salt.getBytes()); byte[] digest = alg.digest(); String passCod = Base64Util.encode(digest); return passCod; } %>
That is all! Work to me!
Thank to you Mr Regano, i could fix this problem. Regards!
Last edited by elche27; 10-04-14 at 03:35 AM.
Guys, thanks verry mutch for the tips, but they dont works for me!!!
First, i accesed http://192.168.200.100:8080/pwAdmin/ and i got this:
Now, after i got the error, i was looking in the thread to find a fix, and i found this:
And so i did, i went to /<root> and pasted the file "pwadmin.sh" (i also saved it on root dir, just in case!)
And now, i`m try to run it, first time i used "chmod 755 pwadmin.sh" and second "./pwadmin.sh" but it seem that non of them work! And i`m kinda blocked here, and dont know what do to next\1
![]()
if you made the file on Crapdows then do:
cd /
apt-get install tofrodos
fromdos pwadmin.sh
chmod 755 pwadmin.sh
./pwadmin.sh
Also the ~# means the current users folder! eg. "/root" not root dir "/"
if you ever need to know the exact directory you are in then use pwd
basic unix knowledge is a must!!
Last edited by sora1984; 10-04-14 at 08:22 PM.
Any help guys, please? :)
---Edit--
Nvm
Last edited by Ben; 01-05-14 at 07:45 PM.
Whaaay thanks for the sticky!