Skip to content

Commit

Permalink
just a few comments about what I added earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
thepavian committed Aug 7, 2006
1 parent ad659e7 commit 275c04e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions includes/singapore.class.php
Expand Up @@ -4,7 +4,7 @@
* Main class. * Main class.
* @license http://opensource.org/licenses/gpl-license.php GNU General Public License * @license http://opensource.org/licenses/gpl-license.php GNU General Public License
* @copyright (c)2003-2005 Tamlyn Rhodes * @copyright (c)2003-2005 Tamlyn Rhodes
* @version $Id: singapore.class.php,v 1.71 2006/08/05 18:15:25 thepavian Exp $ * @version $Id: singapore.class.php,v 1.72 2006/08/07 10:02:39 thepavian Exp $
*/ */


//define constants for regular expressions //define constants for regular expressions
Expand Down Expand Up @@ -103,7 +103,7 @@ function Singapore($basePath = "")
if(get_magic_quotes_gpc()) if(get_magic_quotes_gpc())
$_REQUEST = array_map(array("Singapore","arraystripslashes"), $_REQUEST); $_REQUEST = array_map(array("Singapore","arraystripslashes"), $_REQUEST);


//desanitize request //sanitize request
$_REQUEST = array_map("htmlentities", $_REQUEST); $_REQUEST = array_map("htmlentities", $_REQUEST);


//load config from singapore root directory //load config from singapore root directory
Expand All @@ -130,7 +130,10 @@ function Singapore($basePath = "")
$this->config->loadConfig($basePath.$this->config->pathto_galleries.$galleryId."/gallery.ini"); $this->config->loadConfig($basePath.$this->config->pathto_galleries.$galleryId."/gallery.ini");


//set current template from request vars or config //set current template from request vars or config

//preset template to default one
$this->template = $this->config->default_template; $this->template = $this->config->default_template;
//check if requested template exists
if(isset($_REQUEST[$this->config->url_template])) { if(isset($_REQUEST[$this->config->url_template])) {
$templates = Singapore::getListing($this->config->base_path.$this->config->pathto_templates); $templates = Singapore::getListing($this->config->base_path.$this->config->pathto_templates);
foreach($templates->dirs as $single) { foreach($templates->dirs as $single) {
Expand Down

0 comments on commit 275c04e

Please sign in to comment.