disinclined.org
/
git
/
dylansserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new title font, bg img, abstract title name to ini file
[dylansserver.git]
/
model
/
model.php
diff --git
a/model/model.php
b/model/model.php
index
f9bb164
..
fa75f65
100644
(file)
--- a/
model/model.php
+++ b/
model/model.php
@@
-2,7
+2,7
@@
class model {
class model {
- private $config_file = '/etc/d
ylansserver
.ini';
+ private $config_file = '/etc/d
isinclined
.ini';
protected $model;
protected $recaptcha_publickey;
protected $recaptcha_privatekey;
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->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'];
}
$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);
$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();
$statement->execute();
$return = array();
$statement->store_result();