diff --git a/phpBB/adm/admin_attachments.php b/phpBB/adm/admin_attachments.php index cb4b2e3464..a438b16f65 100644 --- a/phpBB/adm/admin_attachments.php +++ b/phpBB/adm/admin_attachments.php @@ -1,16 +1,15 @@
+ | + + | +
lang['DISPLAY_LOG']; ?>: lang['SORT_BY']; ?>: | @@ -140,13 +152,6 @@ if ($mode == 'mod')|||||||
+ |
+ *
+ * alter_block_array('loop', $varrarray); // Insert vararray at the end
+ * alter_block_array('loop', $vararray, 2); // Insert vararray at position 2
+ * alter_block_array('loop', $vararray, array('KEY' => 'value')); // Insert vararray at the position where the key 'KEY' has the value of 'value'
+ * alter_block_array('loop', $vararray, false); // Insert vararray at first position
+ * alter_block_array('loop', $vararray, true); //Insert vararray at last position (assign_block_vars equivalence)
+ *
+ * alter_block_array('loop', $vararray, 2, 'change'); // Change/Merge vararray with existing array at position 2
+ * alter_block_array('loop', $vararray, array('KEY' => 'value'), 'change'); // Change/Merge vararray with existing array at the position where the key 'KEY' has the value of 'value'
+ * alter_block_array('loop', $vararray, false, 'change'); // Change/Merge vararray with existing array at first position
+ * alter_block_array('loop', $vararray, true, 'change'); // Change/Merge vararray with existing array at last position
+ *
+ *
+ *
+ * @param string $blockname the blockname, for example 'loop'
+ * @param array $vararray the var array to insert/add or merge
+ * @param mixed $key Key to search for
+ *
+ * array: KEY => VALUE [the key/value pair to search for within the loop to determine the correct position]
+ *
+ * int: Position [the position to change or insert at directly given]
+ *
+ * If key is false the position is set to 0
+ *
+ * If key is true the position is set to the last entry
+ *
+ * @param insert|change $mode Mode to execute
+ *
+ * If insert, the vararray is inserted at the given position (position counting from zero).
+ *
+ * If change, the current block gets merged with the vararray (resulting in new key/value pairs be added and existing keys be replaced by the new value).
+ *
+ * Since counting begins by zero, inserting at the last position will result in this array: array(vararray, last positioned array)
+ * and inserting at position 1 will result in this array: array(first positioned array, vararray, following vars)
+ *
+ */
function alter_block_array($blockname, $vararray, $key = false, $mode = 'insert')
{
- // Examples:
- // ('loop', $varrarray) : Insert vararray at the end
- // ('loop', $vararray, 2) : Insert vararray at position 2
- // ('loop', $vararray, array('KEY' => 'value')) : Insert vararray at the position where the key 'KEY' has the value of 'value'
- // ('loop', $vararray, false) : Insert vararray at first position
- // ('loop', $vararray, true) : Insert vararray at last position (assign_block_vars equivalence)
-
- // ('loop', $vararray, 2, 'change') : Change/Merge vararray with existing array at position 2
- // ('loop', $vararray, array('KEY' => 'value'), 'change') : Change/Merge vararray with existing array at the position where the key 'KEY' has the value of 'value'
- // ('loop', $vararray, false, 'change') : Change/Merge vararray with existing array at first position
- // ('loop', $vararray, true, 'change') : Change/Merge vararray with existing array at last position
-
if (strpos($blockname, '.') !== false)
{
// Nested blocks are not supported
@@ -889,12 +898,12 @@ class template
}
/**
- * Generates a reference to the given variable inside the given (possibly nested)
- * block namespace. This is a string of the form:
- * ' . $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['varname'] . '
- * It's ready to be inserted into an "echo" line in one of the templates.
- * NOTE: expects a trailing "." on the namespace.
- */
+ * Generates a reference to the given variable inside the given (possibly nested)
+ * block namespace. This is a string of the form:
+ * ' . $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['varname'] . '
+ * It's ready to be inserted into an "echo" line in one of the templates.
+ * NOTE: expects a trailing "." on the namespace.
+ */
function generate_block_varref($namespace, $varname, $echo = true, $defop = false)
{
// Strip the trailing period.
@@ -912,13 +921,13 @@ class template
}
/**
- * Generates a reference to the array of data values for the given
- * (possibly nested) block namespace. This is a string of the form:
- * $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['$childN']
- *
- * If $include_last_iterator is true, then [$_childN_i] will be appended to the form shown above.
- * NOTE: does not expect a trailing "." on the blockname.
- */
+ * Generates a reference to the array of data values for the given
+ * (possibly nested) block namespace. This is a string of the form:
+ * $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['$childN']
+ *
+ * If $include_last_iterator is true, then [$_childN_i] will be appended to the form shown above.
+ * NOTE: does not expect a trailing "." on the blockname.
+ */
function generate_block_data_ref($blockname, $include_last_iterator, $defop = false)
{
// Get an array of the blocks involved.
diff --git a/phpBB/includes/ucp/ucp_activate.php b/phpBB/includes/ucp/ucp_activate.php
index f7d069e5de..0241ce7974 100644
--- a/phpBB/includes/ucp/ucp_activate.php
+++ b/phpBB/includes/ucp/ucp_activate.php
@@ -1,16 +1,18 @@
send($row['user_notify_type']);
- $messenger->queue->save();
+ $messenger->save_queue();
$message = 'ACCOUNT_ACTIVE_ADMIN';
}
diff --git a/phpBB/includes/ucp/ucp_attachments.php b/phpBB/includes/ucp/ucp_attachments.php
index e499b3f907..2e479b0654 100644
--- a/phpBB/includes/ucp/ucp_attachments.php
+++ b/phpBB/includes/ucp/ucp_attachments.php
@@ -1,20 +1,18 @@
data['user_id'], $check_lang, $rule_lang, $action_lang, $folder);
}
+/**
+* Defining check option for message rules
+*/
function define_check_option($hardcoded, $check_option, $check_lang)
{
global $template;
@@ -498,6 +501,9 @@ function define_check_option($hardcoded, $check_option, $check_lang)
);
}
+/**
+* Defining action option for message rules
+*/
function define_action_option($hardcoded, $action_option, $action_lang, $folder)
{
global $db, $template, $user;
@@ -542,6 +548,9 @@ function define_action_option($hardcoded, $action_option, $action_lang, $folder)
);
}
+/**
+* Defining rule option for message rules
+*/
function define_rule_option($hardcoded, $rule_option, $rule_lang, $check_ary)
{
global $template;
@@ -564,6 +573,9 @@ function define_rule_option($hardcoded, $rule_option, $rule_lang, $check_ary)
);
}
+/**
+* Defining condition option for message rules
+*/
function define_cond_option($hardcoded, $cond_option, $rule_option, $global_rule_conditions)
{
global $db, $template;
@@ -668,6 +680,9 @@ function define_cond_option($hardcoded, $cond_option, $rule_option, $global_rule
);
}
+/**
+* Display defined message rules
+*/
function show_defined_rules($user_id, $check_lang, $rule_lang, $action_lang, $folder)
{
global $db, $template;
diff --git a/phpBB/includes/ucp/ucp_pm_viewfolder.php b/phpBB/includes/ucp/ucp_pm_viewfolder.php
index 8edac192ad..89fe1d53c8 100644
--- a/phpBB/includes/ucp/ucp_pm_viewfolder.php
+++ b/phpBB/includes/ucp/ucp_pm_viewfolder.php
@@ -1,18 +1,17 @@
sql_freeresult($result);
}
- $messenger->queue->save();
+ $messenger->save_queue();
$sql_ary += array(
'user_type' => USER_INACTIVE,
diff --git a/phpBB/includes/ucp/ucp_register.php b/phpBB/includes/ucp/ucp_register.php
index 6dc10877fd..1a0c0e5eb9 100644
--- a/phpBB/includes/ucp/ucp_register.php
+++ b/phpBB/includes/ucp/ucp_register.php
@@ -1,16 +1,18 @@
assign_vars(array(
- 'L_AGREEMENT' => $user->lang['UCP_AGREEMENT'],
+ 'L_TERMS_OF_USE' => $user->lang['TERMS_OF_USE_CONTENT'],
'S_SHOW_COPPA' => false,
'S_REGISTER_ACTION' => "{$phpbb_root_path}ucp.$phpEx$SID&mode=register")
@@ -413,7 +415,7 @@ class ucp_register extends module
$db->sql_freeresult($result);
$code = gen_rand_string(6);
- $confirm_id = md5(uniqid($user_ip));
+ $confirm_id = md5(uniqid($user->ip));
$sql = 'INSERT INTO ' . CONFIRM_TABLE . ' ' . $db->sql_build_array('INSERT', array(
'confirm_id' => (string) $confirm_id,
diff --git a/phpBB/includes/ucp/ucp_remind.php b/phpBB/includes/ucp/ucp_remind.php
index 97dc2d5bfe..dea1027ce6 100644
--- a/phpBB/includes/ucp/ucp_remind.php
+++ b/phpBB/includes/ucp/ucp_remind.php
@@ -1,16 +1,18 @@
send($row['user_notify_type']);
- if ($messenger->queue)
- {
- $messenger->queue->save();
- }
+ $messenger->save_queue();
meta_refresh(3, "index.$phpEx$SID");
diff --git a/phpBB/includes/ucp/ucp_zebra.php b/phpBB/includes/ucp/ucp_zebra.php
index cdc5f9ca4b..ae0d5b496c 100644
--- a/phpBB/includes/ucp/ucp_zebra.php
+++ b/phpBB/includes/ucp/ucp_zebra.php
@@ -1,16 +1,17 @@
'Users Pruned and Posts Retained{SITENAME} - {REGISTRATION} | +{SITENAME} - {L_REGISTRATION} | ||
---|---|---|---|
|