new title font, bg img, abstract title name to ini file
[dylansserver.git] / model / model.php
index f9bb164..fa75f65 100644 (file)
@@ -2,7 +2,7 @@
 
 class model {
 
-  private $config_file = '/etc/dylansserver.ini';
+  private $config_file = '/etc/disinclined.ini';
   protected $model;
   protected $recaptcha_publickey;
   protected $recaptcha_privatekey;
@@ -23,7 +23,8 @@ class model {
     }
     $this->recaptcha_publickey = $config['recaptcha']['publickey'];
     $this->recaptcha_privatekey = $config['recaptcha']['privatekey'];
-    $this->title = $config['site']['default_title'];
+    $this->title = $config['site']['title'];
+    $this->tab_title = $config['site']['tab_title'];
     $this->home_link = $config['site']['home_link'];
   }
 
@@ -31,7 +32,9 @@ class model {
     $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();