index 9ffc3c3c1e79ad5de6f0c6bc07498dbe05d102a6..2e94d0a5b1c964d2cf9868be9bc5331312a0f4a0 100644 (file)
/* This is good for testing... */
error_reporting (E_ALL | E_STRICT);
+session_start();
function get_smarty()
{
$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);