Jump to content

IonutRO

Member
  • Posts

    191
  • Joined

  • Last visited

  • Days Won

    5
  • Feedback

    0%

Posts posted by IonutRO

  1. Just now, vinkogyorgy said:

    very kind of you to reply so quickly, but this is sha1 I see. Or am I mistaken?

    function getHashPassword($password)
        {
            $hash = "*".sha1(sha1($password, true));
            return strtoupper($hash);
        }

    That is the equivalent of mysql PASSWORD() function. If you use sha1, just update it:

    function getHashPassword($password)
    {
        return sha1($password);
    }

     

  2. 5 minutes ago, vinkogyorgy said:

    Dear Support!

    Your cms system is really great, but my mysql uses sha1 password, how can I change it to store sha1 password instead of md5 on the registration page?

    Thank you in advance for your answer!

    Hi! Just go in include/functions/basic.php and edit getHashPassword function.

  3. Update v2.12

    • Fixed XSS injection in donation list and player search, thanks to Xniveres.
    • Rewrote the checks at Vote4Coins. It is completely solved.
    • Remove extra files and unused functions. Fixed performance issues in existing functions.
    • Fixed a serious issue on the admin side: in old versions, language/module/theme links were in the form, so they could be changed by someone with admin rights to upload any zip file to the site.
    • Introduced default values for the columns that are created in the account during the first installation.
    • Removed the query that excluded banned players. The method was a very bad poor, and on a server with a lot of players it would use a lot of mysql.
    • Rewrote the function that checks for updates in administration. Now it is checked only once a day, so the official Metin2CMS website is no longer accessed.
    • Fixed captcha, the problem was occurring when the site was not on the main domain.
    • Now the character deletion code is a number.
    • Updated PHPMailer and PCLZip libraries.
    • Added a new language: Arabic.
  4. 4 hours ago, ByLost said:

     

    The idea is not to click on anything. It already enters directly, and to remove this option, it would be deleting the text file generated at the client root.

    Sorry, I missed the point where you want to enter directly, without going through the login and character selection phase. 😳 

  5. You can start with the structure of the login saver system. When you log in, you save your username and password in some variables in winreg. Likewise, when you select the character, you save something unique for identification, such as name or id.

    And, after all this, when you open the client, you check if you have something saved in that variable, if so, you fill them in the user and password fields, and simply in python simulate pressing the login button. If the login was successful, wait for the characters to load, and then check if you have stored one, if so, select it.

  6. 6 minutes ago, Mustang said:

    Hi Ionut,

     

     

    in your code " return result it generates a syserr

     

    1016 10:14:05861 :: TypeError 1016 10:14:05861 :: : 1016 10:14:05861 :: an integer is required

     

    maybe in this way, he can't return 2 values ?

    You also need to rewrite the code where you call GET_ACCESSORY_MATERIAL_VNUM(), in this moment is expected only one int number. In the new function, will return an array with 2 int numbers.

  7. You can't just return in the first loop, a return means that the function did the job, and has an result, anythink after return will not be used. One example about what can you do:

    def GET_ACCESSORY_MATERIAL_VNUM(vnum, subType):
    	ret = vnum
    	item_base = (vnum / 10) * 10
    
    	result = [None, None]
    
    	for info in JewelAccessoryInfos:
    		if item.ARMOR_WRIST == subType:
    			if info[1] == item_base:
    				result[0] = info[0]
    		elif item.ARMOR_NECK == subType:
    			if info[2] == item_base:
    				result[0] = info[0]
    		elif item.ARMOR_EAR == subType:
    			if info[3] == item_base:
    				result[0] = info[0]
    
    	for info2 in JewelAccessoryInfos2:
    		if item.ARMOR_WRIST == subType:
    			if info2[1] == item_base:
    				result[1] = info2[0]
    		elif item.ARMOR_NECK == subType:
    			if info2[2] == item_base:
    				result[1] = info2[0]
    		elif item.ARMOR_EAR == subType:
    			if info2[3] == item_base:
    				result[1] = info2[0]
        
    	return result #will be [info[0], info2[0]]

     

  8. 7 minutes ago, Defacer35 said:

    Hello, it's possible i think but problem is i dont know how to exactly do it.

     

    I just want the delete useless tables, like this ones ;

     

    cf367ac7e7b563d9283f95482420079a.png

     

    Thanks for the advices.

     

    Best Regards.

    These are tables provided by websites, you don't need them, only if your homepage use them, you can delete them by select them -> right click -> delete. 

    • Love 1
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.