</div> </div> <div class="container"> <div class="row"> <?php if (id_in_session()) { echo ' <div class="col-md-4"> <h2>PHP Gateway with Airavata</h2> <p> PGA is a science gateway built with the Airavata API. You can reference PGA as you integrate Airavata into your own gateway, or you can create your gateway on top of PGA by cloning it at the link below. PGA is known to work well in the Chrome, Firefox, and Internet Explorer browsers. </p> <p><a href="https://github.com/SciGaP/PHP-Reference-Gateway" target="_blank">See the code <span class="glyphicon glyphicon-new-window"></span></a></p> <p><a href="https://cwiki.apache.org/confluence/display/AIRAVATA/XSEDE+2014+Tutorial" target="_blank">View the XSEDE 2014 tutorial documentation <span class="glyphicon glyphicon-new-window"></span></a></p> </div> ';
/** * Verify user is already logged in. If not, redirect to login. */ function verify_login() { if (id_in_session()) { return; } else { print_error_message('User is not logged in!'); redirect('index.php'); } }