function get_content()
 {
     global $COURSE, $CFG;
     if ($this->content !== NULL) {
         return $this->content;
     }
     if (empty($this->config->width)) {
         $width = 220;
     } else {
         $width = $this->config->width;
     }
     if (empty($this->config->height)) {
         $height = 180;
     } else {
         $height = $this->config->height;
     }
     if (!function_exists('Insert_Slideshow')) {
         require_once "slideshow.php";
     }
     if (empty($this->config->imagedir)) {
         $data = get_string('content', 'block_directory_slideshow');
     } else {
         $data = "<div style=\"text-align:center;\"><br/><br/>";
         $data .= Insert_Slideshow("{$CFG->wwwroot}/blocks/directory_slideshow/slideshow.swf", "{$CFG->wwwroot}/blocks/directory_slideshow/slideshowdata.php?imagedir={$COURSE->id}/" . $this->config->imagedir, $width, $height, "DUBKOMOOWEKJUJHLRTO9DN6IKN49JK");
         $data .= "</div>";
     }
     $this->content = new stdClass();
     $this->content->text = $data;
     //$this->content->footer = !empty($this->config->text) ? $this->config->text : '';
     return $this->content;
 }
<HTML>
<BODY bgcolor="#FFFFFF">

<?php 
/// http://www.maani.us/slideshow/index.php
require_once '../../config.php';
$id = optional_param('id', 0, PARAM_INT);
//include slideshow.php to access the Insert_Slideshow function
include "slideshow.php";
//insert the slideshow.swf flash file into the web page
//tell slideshow.swf to get the slideshow's data from sample.php created in the first step
//set the slideshow's width to 320 pixels and the height to 240
echo Insert_Slideshow("slideshow.swf", "slideshowdata.php?id=" . $id, 640, 480);
?>

</BODY>
</HTML>
<?php

/// http://www.maani.us/slideshow/index.php
require_once '../../config.php';
$id = optional_param('id', 0, PARAM_INT);
$l = optional_param('l', 0, PARAM_INT);
//include slideshow.php to access the Insert_Slideshow function
include_once "slideshow.php";
//insert the slideshow.swf flash file into the web page
//tell slideshow.swf to get the slideshow's data from sample.php created in the first step
//set the slideshow's width to 320 pixels and the height to 240
echo Insert_Slideshow("slideshow.swf", "slideshowdata.php?id={$id}&l={$l}", 640, 480);