aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/database.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-17 16:28:52 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-17 16:28:52 +0000
commitd203a2e6f4bb69b9b33e157c130eab6408ebce89 (patch)
treeec9e6cbfee0f258eafd5495125a6a72dc59f6c66 /engine/lib/database.php
parent4a175d2376902c51eceaef2af1c314bad0f56aed (diff)
downloadelgg-d203a2e6f4bb69b9b33e157c130eab6408ebce89.tar.gz
elgg-d203a2e6f4bb69b9b33e157c130eab6408ebce89.tar.bz2
Fixed #37. It turns out callpath_gatekeeper worked fine; PHP 5.2 with the Zend Optimizer 3.2 does not, which was borking our OSX MAMP installation. We're going to need a great big red warning box for people installing on a Mac, alerting them to the fact that they'll need to switch off the Optimizer.
git-svn-id: https://code.elgg.org/elgg/trunk@950 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/database.php')
-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 73ef2236c..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');