From 737394eb15a2ef0c1f5a085d7f5958d2f3e66b89 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 23 Jun 2008 16:27:05 +0000 Subject: Refs #76: User settings page (to Elgg Classic standard). Committing some work before shutting down for the day. git-svn-id: https://code.elgg.org/elgg/trunk@1068 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/plugins.php | 36 ++++++++++++++++++++++++++++++++ engine/lib/usersettings.php | 51 +++++++++++++++++++++++++++++++++++++++++++++ engine/start.php | 1 - 3 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 engine/lib/usersettings.php (limited to 'engine') diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php index c3f1d0d25..073869a52 100644 --- a/engine/lib/plugins.php +++ b/engine/lib/plugins.php @@ -169,6 +169,42 @@ return $plugin; } + return false; + } + + /** + * Find the plugin settings for a user. + * + * @param string $plugin_name Plugin name. + * @param int $user_guid The guid who's settings to retrieve. + */ + function find_plugin_usersettings($plugin_name = "", $user_guid = 0) + { + $plugin_name = sanitise_string($plugin_name); + $user_guid = (int)$user_guid; + + if (!$plugin_name) + $plugin_name = get_plugin_name(); + + if ($user_guid == 0) $user_guid = $_SESSION['user']->guid; + + + + + + + + + + + + + + + + + + return false; } diff --git a/engine/lib/usersettings.php b/engine/lib/usersettings.php new file mode 100644 index 000000000..487ea9230 --- /dev/null +++ b/engine/lib/usersettings.php @@ -0,0 +1,51 @@ + \ No newline at end of file diff --git a/engine/start.php b/engine/start.php index 3d59b1894..174c8f8b4 100644 --- a/engine/start.php +++ b/engine/start.php @@ -119,7 +119,6 @@ asort($files); // Include them - foreach($files as $file) { if (isset($CONFIG->debug) && $CONFIG->debug) error_log("Loading $file..."); if (!@include_once($file)) -- cgit v1.2.3