aboutsummaryrefslogtreecommitdiffstats
path: root/php/misc.php
blob: 556d41196ce7ad5315f404ddab51cbacf85eb81e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
require_once "user.php";

function generate_email_verification_link()
{
	/*TODO*/
	$url="{$domain_name}/register/"+random_bytes(20);
	mail($email,"Registration at ${domain_name}","Click here to register {$url}.");
}


function var_error_log( $object=null ){
    ob_start();                    // start buffer capture
    var_dump( $object );           // dump the values
    $contents = ob_get_contents(); // put the buffer into a variable
    ob_end_clean();                // end capture
    error_log( $contents );        // log contents of the result of var_dump( $object )
}


?>