Jump to content

IonutRO

Bronze
  • Posts

    191
  • Joined

  • Last visited

  • Days Won

    5
  • Feedback

    0%

Everything posted by IonutRO

  1. Hello! He is right, the design was made by @ TuoraArts
  2. You could just check the query step by step.
  3. if($sqlQry) { //send email } else { echo'<p class="meldung">Registrierung fehlgeschlagen: Der Account existiert bereits.</p>'; } Basically, if the insertion fails, it will always show that the account already exists. Error cases are not treated. Maybe one of the columns that are not included in the query does not have a default value.
  4. I think that GD library is not enabled. Check this: [Hidden Content]
  5. In database (I think that you use navicat) got to account -> account and at the row of your account, set the value 9 on the column named "web_admin".
  6. That is the equivalent of mysql PASSWORD() function. If you use sha1, just update it: function getHashPassword($password) { return sha1($password); }
  7. Hi! Just go in include/functions/basic.php and edit getHashPassword function.
  8. 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.
  9. Congratulations! I'm glad you were able to provide an update to the community. Good work!
  10. What about index.php? And also, on register part, you need to have default values for all columns in account.account, or just allow them NULL.
  11. Sorry, I missed the point where you want to enter directly, without going through the login and character selection phase.
  12. 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.
  13. Update[19.05.2021]: Several objects have been added. (4929 items) The site has been slightly optimized.
  14. Just set default values to all columns in account.account or allow them NULL.
  15. Try just to save only what is important in log tables...
  16. There may be several reasons... Do you have ssl on your site?
  17. Wrong names in input values, in the php cehck you have: $_POST ['title'] ; $_POST ['content'] But in the html part you have: <input type="text" size="40" maxlength="200" name="titel" /> <textarea style="resize: none;" rows="5" cols="40" name="inhalt"> The names must match.
  18. Ok, but did you try to show the error at the attempting connection in the site? ...
  19. 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.
  20. 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]]
  21. 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.
×
×
  • 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.