included graph generation to index.php
(could not test because gdlib is not working)