<?php
/**
 * Look for the server path to the file wp-load.php for user authentication
 *
 */

$wp_include = "../wp-load.php";
$i = 0;
while (!file_exists($wp_include) && $i++ < 10) {
  $wp_include = "../$wp_include";
}

// let's load WordPress
require($wp_include);

?>