Jump to content

Search the Community

Showing results for tags 'php'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • General
    • Releases and Announcements
  • Help and Support
    • Help and Support
  • Offtopic
    • Trinitycore.org Website issues
    • Chillout Room

Found 5 results

  1. Hi all, im trying now to make an php custom market for buying an items in website, and i would ask for help. Which is the proper way to add/send items to player with in-game mail? I need to add new entry in mail, mail_item, and item_instance ??? Something like that? $mail->insert( 'mail', array( 'messageType' => 0, 'stationery' => 61, 'mailTemplateId' => 0, 'sender' => 1, 'receiver' => 2, 'subject' => 'Market item', 'body' => 'You have successfully buyed an item from market!', 'has_items' => 1, 'checked' => 0 ), array( '%d', '%d', '%d', '%d', '%d', '%s', '%s', '%d', '%d' ) ); $mail->insert( 'mail_items', array( 'mail_id' => 44, 'item_guid' => 61, // ???? 'receiver' => 0 ), array( '%d', '%d', '%d' ) ); Thanks.
  2. Using SOAP without PHP

    I've been trying to implement my own simple cms solution without php, but can't figure out the formatting of the SOAP requests. I was wondering if anyone was able to explain where I can find the wsdl schema? Googling only really gives results for php... edit2 solved after 2 days. feel free to close. code was updated with correct structure. make sure to set basic authentication headers in your request. <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:ns1="urn:TC"> <SOAP-ENV:Header> </SOAP-ENV:Header> <SOAP-ENV:Body> <ns1:executeCommand> <command>server info</command> </ns1:executeCommand> </SOAP-ENV:Body> </SOAP-ENV:Envelope> The code is enough to get to the authorization stage but I'm not sure how to log in. Thanks!
  3. So i guess it is pretty obvious about what am i going to ask =) Problem is, previousle we could just sha1 username and password separated by colon and here is the sha_pass_hash. The problem i am facing right now, is that according to https://github.com/TrinityCore/TrinityCore/blob/86b98686a95e23247ecb774fb23ecd5b8d94b97b/src/server/game/Accounts/BattlenetAccountMgr.cpp#L177 Trinity now uses SHA256, so the hashes do not match anymore. The thing is, password length in database is 40 symbols (exactly as many as in sha1 hash), but sha256 hash length is 64 characters long. I am confused... I've tried to recreate whole "Cryptography" thing on PHP but, guess what, failed. Can somebody explain me how the password is generated nowadays? Thank you for your attention.
  4. change username php?

    ####### English Version ######## Hello Everyone!. I am requesting a script to change username in php, someone would be so kind as to contribute?. Thanks in advance ###### Version EspaƱol ###### Hola a todos. Estoy necesitando un codigo php para cambiar el nombre de usuario, alguno podria aportarlo? se los agradeceria mucho. saludos! Version: TrinityCore 3.3.5a.
  5. I've been out for awhile (2 1/2 years) and don't have any clue as to what has changed in the Trinity registration and cms scene. I've noticed a bunch of really cool web sites and templates with some great functionality. However, I noticed almost (or all) of these projects on this forum have ceased updating and are littered with dead links. (Thanks to the fall of Megaupload and now Filesonic). Can anyone please guid me to an open source website template or CMS system for Trinity? I'd really like to get back in as I have a brand new server I'm not using. Thanks. Flex