Location: PHPKode > scripts > Aurigma Up > AurigmaUpSamples/PHP/Samples_iPhoneUploaderJavaScript/BasicDemo/index.php
<!DOCTYPE html>

  // Put Aurigma Up license key here.

  require_once '../Includes/demodata.php';
  $current = DemoData::getCurrentNode();
  list($rootTitle, $rootUrl) = DemoData::getRootPage();
  function build_url($upload_url, $redirect_url, $return_url, $add_session_cookie) {
  	$params = array(
  	 'uploadUrl=' . get_absolute_uri($upload_url),
  	 'redirectUrl=' . get_absolute_uri($redirect_url),
  	 'returnUrl=' . get_absolute_uri($return_url),
  	 'licenseKey=' . LICENSE_KEY
  	if ($add_session_cookie && session_id()) {
  		$params[] = 'cookies=' . session_name() . '=' . session_id();
  	return 'aurup:?' . implode('&', $params);
  function get_absolute_uri($relative_uri) {
  	$url = ((empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] === 'off') ? "http://" : "https://") . $_SERVER['SERVER_NAME'];
  	$url .= dirname($_SERVER['REQUEST_URI']) . '/' . $relative_uri;
  	return $url;
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <link href="../Libraries/jquery.mobile/jquery.mobile-1.0b2.min.css" rel="stylesheet" type="text/css" />
  <link href="../Styles/style.css" rel="stylesheet" type="text/css" />
  <script src="../Libraries/jquery/jquery-1.6.2.min.js" type="text/javascript"></script>
  <script src="../Libraries/jquery.mobile/jquery.mobile-1.0b2.min.js" type="text/javascript"></script>
  <form id="form1" class="page" data-role="page" data-theme="d">
  <div data-role="header" id="header" data-backbtn="false">
    <img class="logo" src="../Images/logo_dark.png" alt="Aurigma logo" />
    <?php echo DemoData::getSecondHeader(); ?>
  <div data-role="content" id="content">
    <div id="center">
      <p><?php echo DemoData::getShortDescription($current['demo']); ?></p>
      <div class="demo">
        <div class="inner">
          <div class="container">
            <?php $ua = $_SERVER['HTTP_USER_AGENT']; ?>
            <?php if (preg_match('#iPad|iPod#', $ua)):?>
              <a href="<?php echo build_url('upload.php', 'gallery.php', 'index.php', TRUE); ?>" data-role="button">Upload files</a>
						    You need to <a href="http://itunes.apple.com/us/app/aurigma-up/id432611633">install
						      Aurigma Up</a> to be able to upload images from your iPad/iPhone.
            <?php else: ?>
						    Aurigma Up works on Apple iPad and iPhone only. If you are looking for upload solution
						    working on other platforms take a look at <a href="http://demo.aurigma.com/ImageUploader7">Aurigma 
						    Image Uploader</a>.</p>
            <?php endif; ?>
      <ul class="tabs">
        <li class="selected"><span>Description</span></li>
      <div class="tab-containers">
        <div class="tab-container">
          <div class="tab-inner">
            <?php echo DemoData::getFullDescription($current['demo']); ?>
  <div data-role="footer" id="footer">
    <span class="copyright">&copy; 2011 Aurigma, Inc.</span>
Return current item: Aurigma Up