aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-19 19:45:45 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-19 19:45:45 +0000
commit5681f47424f7c4b17acb56656135efff420fa09a (patch)
tree4f51a8d9b656c62e8db053754c78b1ed88e63fec /engine/lib
parent6d2a2a28ab06429d0b28465956e642e5a1b88d5e (diff)
downloadelgg-5681f47424f7c4b17acb56656135efff420fa09a.tar.gz
elgg-5681f47424f7c4b17acb56656135efff420fa09a.tar.bz2
Re-enabled database gatekeepers, please report problems.
Refs #3, #45 git-svn-id: https://code.elgg.org/elgg/trunk@1010 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/database.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php
index b06de96e7..d3113e202 100644
--- a/engine/lib/database.php
+++ b/engine/lib/database.php
@@ -129,8 +129,8 @@
global $CONFIG, $dbcalls;
- //if (!callpath_gatekeeper($CONFIG->path . "engine/", true, true))
- // throw new SecurityException(sprintf(elgg_echo('SecurityException:FunctionDenied'), 'get_data()'));
+ if (!callpath_gatekeeper($CONFIG->path . "engine/", true, true))
+ throw new SecurityException(sprintf(elgg_echo('SecurityException:FunctionDenied'), 'get_data()'));
$dblink = get_db_link('read');
@@ -174,8 +174,8 @@
global $CONFIG, $dbcalls;
- // if (!callpath_gatekeeper($CONFIG->path . "engine/", true, true))
- // throw new SecurityException(sprintf(elgg_echo('SecurityException:FunctionDenied'), 'get_data_row()'));
+ if (!callpath_gatekeeper($CONFIG->path . "engine/", true, true))
+ throw new SecurityException(sprintf(elgg_echo('SecurityException:FunctionDenied'), 'get_data_row()'));
$dblink = get_db_link('read');
@@ -213,8 +213,8 @@
global $CONFIG, $dbcalls;
- //if (!callpath_gatekeeper($CONFIG->path . "engine/", true, true))
- // throw new SecurityException(sprintf(elgg_echo('SecurityException:FunctionDenied'), 'insert_data()'));
+ if (!callpath_gatekeeper($CONFIG->path . "engine/", true, true))
+ throw new SecurityException(sprintf(elgg_echo('SecurityException:FunctionDenied'), 'insert_data()'));
$dblink = get_db_link('write');
@@ -245,8 +245,8 @@
global $dbcalls, $CONFIG;
- //if (!callpath_gatekeeper($CONFIG->path . "engine/", true, true))
- // throw new SecurityException(sprintf(elgg_echo('SecurityException:FunctionDenied'), 'update_data()'));
+ if (!callpath_gatekeeper($CONFIG->path . "engine/", true, true))
+ throw new SecurityException(sprintf(elgg_echo('SecurityException:FunctionDenied'), 'update_data()'));
$dblink = get_db_link('write');
@@ -278,8 +278,8 @@
global $dbcalls, $CONFIG;
- //if (!callpath_gatekeeper($CONFIG->path . "engine/", true, true))
- // throw new SecurityException(sprintf(elgg_echo('SecurityException:FunctionDenied'), 'delete_data()'));
+ if (!callpath_gatekeeper($CONFIG->path . "engine/", true, true))
+ throw new SecurityException(sprintf(elgg_echo('SecurityException:FunctionDenied'), 'delete_data()'));
$dblink = get_db_link('write');