activation-codes

Activation mail and hash check

一笑奈何 提交于 2020-01-01 22:25:11
问题 My question is,condition if(isset... is not seenable. Until now i didnt work with PDO so if someone sees the solution for my problem, please help me if you can, thanks. <?php mysql_connect("localhost", "xxxx", "") or die(mysql_error()); // Connect to database server(localhost) with username and password. mysql_select_db("database") or die(mysql_error()); // Select registration database. This if condition can't be seen if (isset($_GET['e_mail']) && !empty($_GET['e_mail']) AND isset($_GET['hash

Best way to generate activation codes for software?

前提是你 提交于 2019-12-20 01:04:02
问题 What is a good way to randomly generate some not-likely-to-be-randomly-generated-again activation codes to use for activating software? I am making an auto-fulfillment system for a web application. I am using C#. 回答1: Guid.NewGuid() 回答2: It depends on your goals. A GUID is simple to generate, but it's a pain if the user has to enter it manually. That's fine if activation is happening by (say) clicking on a URL provided in email, or if you can expect the user to copy and paste a value from an

Activation mail and hash check

被刻印的时光 ゝ 提交于 2019-12-04 22:05:52
My question is,condition if(isset... is not seenable. Until now i didnt work with PDO so if someone sees the solution for my problem, please help me if you can, thanks. <?php mysql_connect("localhost", "xxxx", "") or die(mysql_error()); // Connect to database server(localhost) with username and password. mysql_select_db("database") or die(mysql_error()); // Select registration database. This if condition can't be seen if (isset($_GET['e_mail']) && !empty($_GET['e_mail']) AND isset($_GET['hash']) && !empty($_GET['hash'])){ // Verify data $email = mysql_escape_string($_GET['e_mail']); // Set