class model {
- private $config_file = '/etc/dylansserver.ini';
+ private $config_file = '/etc/disinclined.ini';
protected $model;
protected $recaptcha_publickey;
protected $recaptcha_privatekey;
}
$this->recaptcha_publickey = $config['recaptcha']['publickey'];
$this->recaptcha_privatekey = $config['recaptcha']['privatekey'];
- $this->title = $config['site']['default_title'];
+ $this->title = $config['site']['title'];
+ $this->site_title = $config['site']['title'];
+ $this->tab_title = $config['site']['tab_title'];
$this->home_link = $config['site']['home_link'];
}
$args = func_get_args();
$statement = $this->db->prepare($args[0]);
$args = array_slice($args, 1);
- call_user_func_array(array($statement, 'bind_param'), &$args);
+ foreach($args as $key => $value)
+ $args[$key] = &$args[$key];
+ call_user_func_array(array($statement, 'bind_param'), $args);
$statement->execute();
$return = array();
$statement->store_result();