<?php
echo "<script>
if( window.location.href =='http://localhos/tiendaonline/admin/index.php'){ var perio = 1 }
else{ var perio = 0 }
". $pagina = ." perio " ; ";
</script>";
if( $pagina == 1 ){ echo "<a href='index.php'><h2>Admin</h2></a>"; }
?>