<?php
require_once('modules/Iframeapp/Iframeapp.php');
if(!empty($_REQUEST['fullurlandheight'])) {
  echo json_encode(array(
    'config_url' => Iframeapp::get_config_url(),
    'ts' => Iframeapp::get_url_ts(),
    'suid' => '&suid='.(isset($GLOBALS['current_user']->id) ? $GLOBALS['current_user']->id : NULL),
    'iframe_height' => Iframeapp::get_config_height(),
  ));
}
else {
  echo Iframeapp::get_url_ts();
}
