/* get the sid ... if any */ if(!empty($_REQUEST['sid'])) $sid = intval($_REQUEST['sid']); $bg = ''; /* sid selected for testing */ if(!empty($sid)) { $sql = "SELECT status,owner,realm,theme FROM ".$GLOBALS['ESPCONFIG']['survey_table']." WHERE id=${sid}"; $result = execute_sql($sql); list($status,$owner,$realm,$theme) = fetch_row($result); db_close($result); /* check ACL to see if user is allowed to test * _this_ survey */ $realms = array_intersect( $_SESSION['acl']['pall'], $_SESSION['acl']['pdesign']); if($_SESSION['acl']['superuser'] != 'Y' && $owner != $_SESSION['acl']['username'] && !in_array($realm, $realms) && !auth_no_access(_('to access this survey'))) { return; } if (($status & STATUS_TEST) && !($status & (STATUS_DONE | STATUS_DELETED | STATUS_ACTIVE))) { /* cleared for testing ... was that enough tests? */ ?> '); ?> ()
&test=1">
" . _('Go back to Management Interface') . "\n"); ?>
| "> (">) | "> |