index d7043ab94e8dd35a386aea36ee36d83aa135bb05..bbfb491613ecef328fefa41cafdde643dd1c503e 100644 (file)
+<?php
+
+require_once("../../../include/autoload.inc");
+restore_error_handler();
+session_start();
+?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
/* This is good for testing... */
error_reporting (E_ALL | E_STRICT);
-
function get_smarty()
{
echo "Smarty fake in each ./tests/ListTest[1-9]/index.php";
/* Initiate autoloader... */
-require_once("../../../include/autoload.inc");
-restore_error_handler();
try {
/* Get new test instance of the Configuration */
$cr->load("../../../gosa.conf");
/* Get a new test instance of ObjectListViewports */
- $vp= new ObjectListViewport("plugin/sample");
+ if(!isset($_SESSION['vp'])){
+ $_SESSION['vp'] = new ObjectListViewport("plugin/sample");
+ }
+ $vp = $_SESSION['vp'];
if(isset($_GET['d']) && preg_match("/f/",$_GET['d'])){
$vp->enableFooter(FALSE);
}