@@ -35,6 +35,10 @@ discard block |
||
| 35 | 35 | var $portable_hashes; |
| 36 | 36 | var $random_state; |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @param integer $iteration_count_log2 |
|
| 40 | + * @param boolean $portable_hashes |
|
| 41 | + */ |
|
| 38 | 42 | function PasswordHash($iteration_count_log2, $portable_hashes) |
| 39 | 43 | { |
| 40 | 44 | $this->itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; |
@@ -84,6 +88,9 @@ discard block |
||
| 84 | 88 | return $output; |
| 85 | 89 | } |
| 86 | 90 | |
| 91 | + /** |
|
| 92 | + * @param integer $count |
|
| 93 | + */ |
|
| 87 | 94 | function encode64($input, $count) |
| 88 | 95 | { |
| 89 | 96 | $output = ''; |
@@ -107,6 +114,9 @@ discard block |
||
| 107 | 114 | return $output; |
| 108 | 115 | } |
| 109 | 116 | |
| 117 | + /** |
|
| 118 | + * @param string $input |
|
| 119 | + */ |
|
| 110 | 120 | function gensalt_private($input) |
| 111 | 121 | { |
| 112 | 122 | $output = '$P$'; |
@@ -155,6 +165,9 @@ discard block |
||
| 155 | 165 | return $output; |
| 156 | 166 | } |
| 157 | 167 | |
| 168 | + /** |
|
| 169 | + * @param string $input |
|
| 170 | + */ |
|
| 158 | 171 | function gensalt_extended($input) |
| 159 | 172 | { |
| 160 | 173 | $count_log2 = min($this->iteration_count_log2 + 8, 24); |
@@ -173,6 +186,9 @@ discard block |
||
| 173 | 186 | return $output; |
| 174 | 187 | } |
| 175 | 188 | |
| 189 | + /** |
|
| 190 | + * @param string $input |
|
| 191 | + */ |
|
| 176 | 192 | function gensalt_blowfish($input) |
| 177 | 193 | { |
| 178 | 194 | # This one needs to use a different order of characters and a |
@@ -13,6 +13,9 @@ discard block |
||
| 13 | 13 | //// |
| 14 | 14 | // This function validates a plain text password with a |
| 15 | 15 | // salted or phpass password |
| 16 | + /** |
|
| 17 | + * @param string $plain |
|
| 18 | + */ |
|
| 16 | 19 | function tep_validate_password($plain, $encrypted) { |
| 17 | 20 | if (tep_not_null($plain) && tep_not_null($encrypted)) { |
| 18 | 21 | if (tep_password_type($encrypted) == 'salt') { |
@@ -52,6 +55,9 @@ discard block |
||
| 52 | 55 | //// |
| 53 | 56 | // This function encrypts a phpass password from a plaintext |
| 54 | 57 | // password. |
| 58 | + /** |
|
| 59 | + * @param string $plain |
|
| 60 | + */ |
|
| 55 | 61 | function tep_encrypt_password($plain) { |
| 56 | 62 | if (!class_exists('PasswordHash')) { |
| 57 | 63 | include(DIR_WS_CLASSES . 'passwordhash.php'); |
@@ -14,6 +14,9 @@ |
||
| 14 | 14 | |
| 15 | 15 | //// |
| 16 | 16 | // Sets the status of a special product |
| 17 | + /** |
|
| 18 | + * @param integer $status |
|
| 19 | + */ |
|
| 17 | 20 | function tep_set_specials_status($specials_id, $status) { |
| 18 | 21 | $OSCOM_Db = Registry::get('Db'); |
| 19 | 22 | |
@@ -53,6 +53,11 @@ discard block |
||
| 53 | 53 | // ------------------------------------------------------------------- |
| 54 | 54 | // Parse RSS file and returns associative array. |
| 55 | 55 | // ------------------------------------------------------------------- |
| 56 | + |
|
| 57 | + /** |
|
| 58 | + * @param string $rss_url |
|
| 59 | + * @param string $key |
|
| 60 | + */ |
|
| 56 | 61 | function Get ($rss_url, $key = null) { |
| 57 | 62 | // If CACHE ENABLED |
| 58 | 63 | if ($this->cache_dir != '') { |
@@ -114,6 +119,10 @@ discard block |
||
| 114 | 119 | // ------------------------------------------------------------------- |
| 115 | 120 | // Replace HTML entities &something; by real characters |
| 116 | 121 | // ------------------------------------------------------------------- |
| 122 | + |
|
| 123 | + /** |
|
| 124 | + * @param string $string |
|
| 125 | + */ |
|
| 117 | 126 | function unhtmlentities ($string) { |
| 118 | 127 | // Get HTML entities table |
| 119 | 128 | $trans_tbl = get_html_translation_table (HTML_ENTITIES, ENT_QUOTES); |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | Released under the GNU General Public License |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | - use OSC\OM\HTML; |
|
| 14 | 13 | use OSC\OM\OSCOM; |
| 15 | 14 | use OSC\OM\Registry; |
| 16 | 15 | |
@@ -32,6 +32,9 @@ |
||
| 32 | 32 | return MODULE_SECURITY_CHECK_EXTENDED_EXT_DIRECTORY_LISTING_HTTP_200; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param string $url |
|
| 37 | + */ |
|
| 35 | 38 | function getHttpRequest($url) { |
| 36 | 39 | $server = parse_url($url); |
| 37 | 40 | |
@@ -54,6 +54,9 @@ discard block |
||
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | + /** |
|
| 58 | + * @param integer $parent_id |
|
| 59 | + */ |
|
| 57 | 60 | protected function _buildBranch($parent_id, $level = 0) { |
| 58 | 61 | $result = ((($level === 0) && ($this->parent_group_apply_to_root === true)) || ($level > 0)) ? $this->parent_group_start_string : null; |
| 59 | 62 | |
@@ -278,6 +281,10 @@ discard block |
||
| 278 | 281 | $this->parent_end_string = $parent_end_string; |
| 279 | 282 | } |
| 280 | 283 | |
| 284 | + /** |
|
| 285 | + * @param string $parent_group_start_string |
|
| 286 | + * @param string $parent_group_end_string |
|
| 287 | + */ |
|
| 281 | 288 | function setParentGroupString($parent_group_start_string, $parent_group_end_string, $apply_to_root = false) { |
| 282 | 289 | $this->parent_group_start_string = $parent_group_start_string; |
| 283 | 290 | $this->parent_group_end_string = $parent_group_end_string; |
@@ -301,6 +308,9 @@ discard block |
||
| 301 | 308 | } |
| 302 | 309 | } |
| 303 | 310 | |
| 311 | + /** |
|
| 312 | + * @param string $spacer_string |
|
| 313 | + */ |
|
| 304 | 314 | function setSpacerString($spacer_string, $spacer_multiplier = 2) { |
| 305 | 315 | $this->spacer_string = $spacer_string; |
| 306 | 316 | $this->spacer_multiplier = $spacer_multiplier; |
@@ -84,6 +84,9 @@ discard block |
||
| 84 | 84 | return $output; |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | + /** |
|
| 88 | + * @param integer $count |
|
| 89 | + */ |
|
| 87 | 90 | function encode64($input, $count) |
| 88 | 91 | { |
| 89 | 92 | $output = ''; |
@@ -107,6 +110,9 @@ discard block |
||
| 107 | 110 | return $output; |
| 108 | 111 | } |
| 109 | 112 | |
| 113 | + /** |
|
| 114 | + * @param string $input |
|
| 115 | + */ |
|
| 110 | 116 | function gensalt_private($input) |
| 111 | 117 | { |
| 112 | 118 | $output = '$P$'; |
@@ -155,6 +161,9 @@ discard block |
||
| 155 | 161 | return $output; |
| 156 | 162 | } |
| 157 | 163 | |
| 164 | + /** |
|
| 165 | + * @param string $input |
|
| 166 | + */ |
|
| 158 | 167 | function gensalt_extended($input) |
| 159 | 168 | { |
| 160 | 169 | $count_log2 = min($this->iteration_count_log2 + 8, 24); |
@@ -173,6 +182,9 @@ discard block |
||
| 173 | 182 | return $output; |
| 174 | 183 | } |
| 175 | 184 | |
| 185 | + /** |
|
| 186 | + * @param string $input |
|
| 187 | + */ |
|
| 176 | 188 | function gensalt_blowfish($input) |
| 177 | 189 | { |
| 178 | 190 | # This one needs to use a different order of characters and a |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | Released under the GNU General Public License |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | - use OSC\OM\OSCOM; |
|
| 14 | 13 | use OSC\OM\Registry; |
| 15 | 14 | |
| 16 | 15 | class cm_i_new_products { |