Fix #10, Work on search #3, mySQLi to OOP style

Privacy check for viewing now is at loadquestions.php and not
profile.php , so the "warning" is inside the #qContainer. No problem.
mysqli_query($con, $query) becomes `$con->query($query)`
Small optimization at pending.php
Removed unused function at login.php