diff options
-rw-r--r-- | phpfspot_db.php | 4 | ||||
-rw-r--r-- | phpfspot_img.php | 8 | ||||
-rw-r--r-- | phpfspot_tmpl.php | 17 |
3 files changed, 24 insertions, 5 deletions
diff --git a/phpfspot_db.php b/phpfspot_db.php index 83376ad..90fdb8c 100644 --- a/phpfspot_db.php +++ b/phpfspot_db.php @@ -42,7 +42,9 @@ class PHPFSPOT_DB { */ public function __construct($parent, $db_path) { - $this->parent = $parent; + global $phpfspot; + + $this->parent = $phpfspot; $this->db_path = $db_path; /* We are starting disconnected */ diff --git a/phpfspot_img.php b/phpfspot_img.php index 8379b83..f298b00 100644 --- a/phpfspot_img.php +++ b/phpfspot_img.php @@ -34,8 +34,8 @@ require_once "phpfspot.class.php"; */ class PHPFSPOT_IMG { - var $db; - var $parent; + private $db; + private $parent; /** * PHPFSPOT_IMG class constructor @@ -62,6 +62,8 @@ class PHPFSPOT_IMG { * the client - in the specified width. it also try's * to create on-the-fly missing thumbnails via PHPFSPOT * gen_thumbs function. + * @param integer $idx + * @param integer $width */ public function show($idx, $width = 0) { @@ -126,7 +128,7 @@ class PHPFSPOT_IMG { } // show() -} +} // PHPFSPOT_IMG() if(isset($_GET['idx']) && (is_numeric($_GET['idx']) || $_GET['idx'] == 'rand')) { diff --git a/phpfspot_tmpl.php b/phpfspot_tmpl.php index e8bb48a..f6d3ce8 100644 --- a/phpfspot_tmpl.php +++ b/phpfspot_tmpl.php @@ -22,8 +22,17 @@ * ***************************************************************************/ +/** + * PHPFSPOT_TMPL class + * + * Extends Smarty base class with some additional functions + * @package phpfspot + */ class PHPFSPOT_TMPL extends Smarty { + /** + * class constructor + */ public function __construct() { global $phpfspot; @@ -46,12 +55,18 @@ class PHPFSPOT_TMPL extends Smarty { } // __construct() + /** + * show template + * + * outputs the requested template + * @param string $template + */ public function show($template) { $this->display($template); } // show() -} +} // PHPFSPOT_TMPL() ?> |