modified public/index.php and sqlquery.class.php