Jump to content

n30x

Members
  • Posts

    8
  • Joined

  • Last visited

Details

  • Gang
    -rru-

n30x's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. It's for connecting server with forums. I'm encrypting password entered on form and then calling back the function, i'm checking if the encrypted form password is the same as the forum which is encrypted too. I use vbulletin.
  2. So, if i'm not wrong, it must be: callRemote("http://*****.php", md5it, password) And on the .php must be: "function md5it ()". Am i wrong ?
  3. Hi all. I'm using this on my login panel: callRemote("http://******.php", password) This sends password entered on form to the PHP SDK file This is the php file code: <?php include('sdk/mta_sdk.php'); $table = mta::getInput(); $text = $table[0]; if(isset($text)){ $encrypted = md5($text) mta::doReturn($encrypted); } ?> These are my codes. When i click at Login and username + password entered on debugscript says that 3rd value must be a string. Please help. Thanks.
  4. Hi all. I wanna know how to make a php file with PHP SDK where is a message for outputChatBox. Then with callremote() i wanna get that outputChatBox. I mean callremote() to .php then it sendds to script the message to output. Is there any method to do it ? Thanks.
  5. n30x

    md5 + Trigger

    I need help with md5 not outputchatbox. PD: outputChatBox is working.
  6. n30x

    md5 + Trigger

    Hi all. I tryed to do a form that sends your account to forums database on 'serveraccount' field of 'users' table. Here's the code located at the trigger that gets triggered when you click login and entered username + password: addEvent("rru:requestloginsite", true) addEventHandler("rru:requestloginsite", root, function(player, username, password) password = mysql_query(forum_connect,"SELECT password FROM user WHERE username = '"..username) encrypt.password = md5(password) local useraccount = getAccountName(getPlayerAccount(player)) outputChatBox(encrypt.password) if (encrypt.password == password) then -- SENDING YOUR ACCOUNT TO FORUMS outputChatBox"sending" --mysql_query(forum_connect,"ALTER TABLE users ADD serveraccount varchar(100)") mysql_query(forum_connect,"UPDATE users SET serveraccount = "..useraccount.." WHERE username = '"..username.."'") else -- FAILED SENDING YOUR ACCOUNT TO FORUMS outputChatBox"failed" end end ) The problem is that it outputs "failed". Can somebody help me, please ? Thanks.
  7. Now we've the problem: -bash: /home/rru-server/mta-server: No such file or directory I did chmod 777 /home/rru-server/mta-server because before it was saying: Permission Denied. But now, no such file or directory. Please help.
×
×
  • Create New...