added mina link to mian.php, added register, added regec for PATHINFO in main