goto_url($urlshortener->baseurl.$shorturlid); }else{ if($_POST['longurl']){ $shorturl = $urlshortener->get_shorturl($_POST['longurl']); $hits = $urlshortener->get_hits($shorturl); } echo '
'; echo '

Hycus URL shortener script

'; echo '
'; echo '

'; echo ''; echo '
'; if($shorturl){ echo '

'.$shorturl.''; echo '


Hits: '.$hits.''; } echo '
'; } ?>