Code

Added POST variables
[gosa.git] / tests / ListTest / 3 / index.php
index 9ffc3c3c1e79ad5de6f0c6bc07498dbe05d102a6..2e94d0a5b1c964d2cf9868be9bc5331312a0f4a0 100644 (file)
@@ -37,6 +37,7 @@
 /* This is good for testing... */
 error_reporting (E_ALL | E_STRICT);
 
+session_start();
 
 function get_smarty()
 {
@@ -70,8 +71,14 @@ try {
        $cr->load("../../../gosa.conf");
 
        /* Get a new test instance of ObjectListViewports */
-       $vp1= new ObjectListViewport("plugin/sample");
-       $vp2= new ObjectListViewport("plugin/sample");
+
+       if(!isset($_SESSION['vp1'])){
+               $_SESSION['vp1'] = new ObjectListViewport("plugin/sample");
+               $_SESSION['vp2'] = new ObjectListViewport("plugin/sample");
+       }
+       $vp1 = $_SESSION['vp1'];
+       $vp2 = $_SESSION['vp2'];
+
        if(isset($_GET['d']) && preg_match("/f/",$_GET['d'])){
                $vp1->enableFooter(FALSE);
                $vp2->enableFooter(FALSE);