Changeset 1304
- Timestamp:
- 03/13/10 11:18:28 (3 years ago)
- Location:
- trunk
- Files:
-
- 17 edited
- 12 copied
-
. (modified) (1 prop)
-
Hotaru.php (modified) (4 diffs)
-
READ_ME.txt (modified) (3 diffs)
-
content/plugins (modified) (1 prop)
-
content/plugins/activity/css/activity.css (modified) (1 diff)
-
content/plugins/categories/css/categories.css (modified) (1 diff)
-
content/plugins/comments/css/comments.css (modified) (1 diff)
-
content/plugins/user_manager/user_manager_settings.php (modified) (1 diff)
-
content/plugins/user_rankings (copied) (copied from branches/1.2/content/plugins/user_rankings)
-
content/plugins/user_rankings/css (copied) (copied from branches/1.2/content/plugins/user_rankings/css)
-
content/plugins/user_rankings/css/user_rankings.css (copied) (copied from branches/1.2/content/plugins/user_rankings/css/user_rankings.css)
-
content/plugins/user_rankings/images (copied) (copied from branches/1.2/content/plugins/user_rankings/images)
-
content/plugins/user_rankings/javascript (copied) (copied from branches/1.2/content/plugins/user_rankings/javascript)
-
content/plugins/user_rankings/languages (copied) (copied from branches/1.2/content/plugins/user_rankings/languages)
-
content/plugins/user_rankings/languages/user_rankings_language.php (copied) (copied from branches/1.2/content/plugins/user_rankings/languages/user_rankings_language.php)
-
content/plugins/user_rankings/readme.txt (copied) (copied from branches/1.2/content/plugins/user_rankings/readme.txt)
-
content/plugins/user_rankings/templates (copied) (copied from branches/1.2/content/plugins/user_rankings/templates)
-
content/plugins/user_rankings/templates/user_rankings_page.php (copied) (copied from branches/1.2/content/plugins/user_rankings/templates/user_rankings_page.php)
-
content/plugins/user_rankings/user_rankings.php (copied) (copied from branches/1.2/content/plugins/user_rankings/user_rankings.php)
-
content/plugins/user_rankings/user_rankings_settings.php (copied) (copied from branches/1.2/content/plugins/user_rankings/user_rankings_settings.php)
-
content/themes/default/css/style.css (modified) (1 diff)
-
content/themes/default/header.php (modified) (1 diff)
-
install/install_tables.php (modified) (1 diff)
-
install/upgrade.php (modified) (1 diff)
-
libs/Caching.php (modified) (1 diff)
-
libs/EmailFunctions.php (modified) (1 diff)
-
libs/Maintenance.php (modified) (1 diff)
-
libs/Widget.php (modified) (1 diff)
-
libs/extensions/SimplePie/simplepie.inc (modified) (99 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/1.2 merged: 1281-1292
- Property svn:mergeinfo changed
-
trunk/Hotaru.php
r1248 r1304 26 26 class Hotaru 27 27 { 28 protected $version = "1.1. 1"; // Hotaru CMS version28 protected $version = "1.1.2"; // Hotaru CMS version 29 29 protected $isDebug = false; // show db queries and page loading time 30 30 protected $isAdmin = false; // flag to tell if we are in Admin or not … … 131 131 $this->displayTemplate('index'); // displays the index page 132 132 } 133 134 if ($this->isDebug) {135 $this->closeLog('error');136 }137 133 138 134 exit; … … 1324 1320 require_once(LIBS . 'Maintenance.php'); 1325 1321 $maintenance = new Maintenance(); 1326 return $maintenance->siteClosed($this ->lang); // displays "Site Closed for Maintenance"1322 return $maintenance->siteClosed($this, $this->lang); // displays "Site Closed for Maintenance" 1327 1323 } 1328 1324 … … 1481 1477 1482 1478 1479 /** 1480 * Cache HTML without checking for database updates 1481 * 1482 * This function caches blocks of HTML code 1483 * 1484 * @param int $timeout timeout in minutes before cache file is deleted 1485 * @param string $html block of HTML to cache 1486 * @param string $label name to identify the cached file 1487 * @return bool 1488 */ 1489 public function cacheHTML($timeout = 0, $html = '', $label = '') 1490 { 1491 require_once(LIBS . 'Caching.php'); 1492 $caching = new Caching(); 1493 return $caching->cacheHTML($this, $timeout, $html, $label); 1494 } 1495 1496 1483 1497 /* ************************************************************* 1484 1498 * -
trunk/READ_ME.txt
r1234 r1304 1 1 HOTARU CMS 2 Version: 1.1. 13 Released: Feb 24th 20102 Version: 1.1.2 3 Released: Mar 8th 2010 4 4 5 5 INSTALLATION … … 8 8 Please visit http://hotarucms.org/showthread.php?t=14 for the most up-to-date version of these instructions. 9 9 10 Instructions last updated: January 18th 201010 Instructions last updated: Mar 8th 2010 11 11 12 12 Requirements … … 18 18 1. Backup your database. 19 19 2. Download the latest version of Hotaru CMS. 20 3. Overwrite ALL the old files. If you've made any customizations, read this first: http://hotarucms.org/showthread.php?t=46 21 4. Go to /install/upgrade.php 22 5. When finished, delete the install folder. 20 3. Turn off all your plugins. 21 4. Overwrite ALL the old files. If you've made any customizations, read this first: http://hotarucms.org/showthread.php?t=46 22 5. Go to /install/upgrade.php 23 6. Turn your plugins back on 24 7. Reactivate your widgets 25 8. When finished, delete the install folder. 23 26 24 27 First-time Installation -
trunk/content/plugins
- Property svn:mergeinfo changed
/branches/1.2/content/plugins merged: 1290-1292
- Property svn:mergeinfo changed
-
trunk/content/plugins/activity/css/activity.css
r1081 r1304 1 /* ************************************** 2 * ACTIVITY PLUGIN CSS * 3 ************************************** */ 1 /* activity */ 4 2 5 3 /* WIDGET */ -
trunk/content/plugins/categories/css/categories.css
r1081 r1304 1 /* ************************************** 2 * CATEGORIES PLUGIN CSS * 3 ************************************** */ 1 /* categories */ 4 2 5 3 /* DROP-DOWN CATEGORY MENU BAR */ -
trunk/content/plugins/comments/css/comments.css
r1190 r1304 1 /* ************************************** 2 * COMMENTS PLUGIN CSS * 3 ************************************** */ 1 /* comments */ 4 2 5 3 .comment_link { padding-left: 1.5em; background-image: url(content/plugins/comments/images/comment.png); background-repeat: no-repeat; } -
trunk/content/plugins/user_manager/user_manager_settings.php
r1190 r1304 97 97 } 98 98 $h->pluginHook('user_man_killspam_delete', '', array($u)); 99 if ($new_role == 'deleted') { $u->deleteUser($h); } 99 if ($new_role == 'deleted') { 100 $u->deleteUser($h); 101 $h->clearCache('db_cache', false); // clears them from User Manager list 102 } 100 103 } 101 104 } -
trunk/content/themes/default/css/style.css
r1108 r1304 85 85 #site_closed { background-color: #fff; border-top: 2px solid #000; border-bottom: 2px solid #000; 86 86 text-align: center; margin-top: 4em; font-size: 1.6em; line-height: 1.8em; } 87 88 #site_closed_admin_link { font-size: 8pt; margin-top: 1.0em; } 87 89 88 90 /* BREADCRUMBS */ -
trunk/content/themes/default/header.php
r1081 r1304 44 44 <?php } ?> 45 45 46 <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4. 0/jquery.min.js?ver=1.4.0'></script>46 <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js?ver=1.4.2'></script> 47 47 <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js?ver=1.7.2'></script> 48 48 -
trunk/install/install_tables.php
r1081 r1304 342 342 // Site email 343 343 $sql = "INSERT INTO " . DB_PREFIX . $table_name . " (settings_name, settings_value, settings_default, settings_note) VALUES (%s, %s, %s, %s)"; 344 $db->query($db->prepare($sql, 'SITE_EMAIL', ' admin@mysite.com', 'admin@mysite.com', 'Must be changed'));344 $db->query($db->prepare($sql, 'SITE_EMAIL', 'email@example.com', 'email@example.com', 'Must be changed')); 345 345 346 346 // Database cache -
trunk/install/upgrade.php
r1234 r1304 345 345 if ($old_version == "1.1") { $old_version = "1.1.1"; } // update "old version" for next set of upgrades 346 346 347 // 1.1 to 1.1.2 348 if ($old_version == "1.1.1") { $old_version = "1.1.2"; } // update "old version" for next set of upgrades 349 347 350 // Update Hotaru version number to the database (referred to when upgrading) 348 351 $sql = "UPDATE " . TABLE_MISCDATA . " SET miscdata_key = %s, miscdata_value = %s, miscdata_default = %s WHERE miscdata_key = %s"; -
trunk/libs/Caching.php
r1280 r1304 245 245 return $last_update; 246 246 } 247 248 249 /** 250 * Cache HTML without checking for database updates 251 * 252 * This function caches blocks of HTML code 253 * 254 * @param int $timeout timeout in minutes before cache file is deleted 255 * @param string $html block of HTML to cache 256 * @param string $label name to identify the cached file 257 * @return bool 258 */ 259 public function cacheHTML($h, $timeout = 0, $html = '', $label = '') 260 { 261 if (!$timeout || (HTML_CACHE_ON != 'true') || !$label) { return false; } 262 263 $cache_length = $timeout*60; // seconds 264 $cache = CACHE . 'html_cache/'; 265 $file = $cache . $label . ".cache"; 266 267 if (!$html) { 268 // we only want to read the cache if it exists, hence no $html passed to this function 269 if (file_exists($file)) { 270 $content = file_get_contents($file); 271 $last_modified = filemtime($file); 272 //echo "last modified: " . $last_modified . "<br />"; 273 if ($last_modified <= (time() - $cache_length)) { 274 // delete cache 275 unlink($file); 276 return false; 277 } else { 278 return $content; // return the HTML to display 279 } 280 } else { 281 return false; 282 } 283 } 284 285 // if we're here, we need to make or rewrite the cache 286 287 $fp = fopen($file, "w"); 288 289 if (flock($fp, LOCK_EX)) { // do an exclusive lock 290 ftruncate($fp, 0); // truncate file 291 fwrite($fp, $html); // write HTML 292 flock($fp, LOCK_UN); // release the lock 293 } else { 294 echo "Couldn't get the lock for the HTML cache!"; 295 } 296 297 fclose($fp); 298 return true; // the calling function already has the HTML to output 299 } 247 300 } 248 301 ?> -
trunk/libs/EmailFunctions.php
r1234 r1304 113 113 break; 114 114 default: 115 mail($this->to, $this->subject, $this->body, $this->headers); 115 $return_path = "-f " . SITE_EMAIL; 116 mail($this->to, $this->subject, $this->body, $this->headers, $return_path); 116 117 } 117 118 } -
trunk/libs/Maintenance.php
r1190 r1304 193 193 * @param object $h 194 194 */ 195 public function siteClosed($ lang)196 { 197 // site closed and access not granted , so exit with a message:195 public function siteClosed($h, $lang) 196 { 197 // site closed and access not granted 198 198 echo "<HTML>\n<HEAD>\n"; 199 199 echo "<link rel='stylesheet' href='" . BASEURL . "content/themes/" . THEME . "css/style.css' type='text/css'>\n"; 200 200 echo "</HEAD>\n<BODY>\n"; 201 201 echo "<div id='site_closed'>\n"; 202 echo $lang['main_hotaru_site_closed']; 203 echo "<br /><span style='font-size: 8pt; margin-top: 1.0em;'>[<a href='" . BASEURL . "admin_index.php?page=admin_login'>Admin Login</a>]</span>"; 202 203 // show custom maintenance page if one exists: 204 if (file_exists(THEMES . THEME . 'closed.php')) 205 { 206 $h->displayTemplate('closed'); 207 } 208 else 209 { 210 // show default maintenance page: 211 echo $lang['main_hotaru_site_closed']; 212 echo "<br /><span id='site_closed_admin_link'>[<a href='" . BASEURL . "admin_index.php?page=admin_login'>Admin Login</a>]</span>"; 213 } 214 204 215 echo "\n</div>\n</BODY>\n</HTML>\n"; 216 205 217 die(); exit; 206 218 } -
trunk/libs/Widget.php
r1081 r1304 41 41 if (!$h->isInstalled($plugin['plugin'])) { 42 42 $this->deleteWidget($h, $plugin['function']); 43 unset($widgets_settings['widgets'][$plugin[' plugin']]);43 unset($widgets_settings['widgets'][$plugin['function']]); 44 44 // widget settings get updated at the end of this function 45 45 } -
trunk/libs/extensions/SimplePie/simplepie.inc
r1280 r1304 736 736 { 737 737 // Other objects, instances created here so we can set options on them 738 $this->sanitize = &new SimplePie_Sanitize;738 $this->sanitize = new SimplePie_Sanitize; 739 739 740 740 // Set options if they're passed to the constructor … … 1106 1106 if (SimplePie_Misc::is_subclass_of($class, 'SimplePie_Sanitize')) 1107 1107 { 1108 $this->sanitize = &new $class;1108 $this->sanitize = new $class; 1109 1109 return true; 1110 1110 } … … 1600 1600 $headers['if-none-match'] = '"' . $this->data['headers']['etag'] . '"'; 1601 1601 } 1602 $file = &new $this->file_class($this->feed_url, $this->timeout/10, 5, $headers, $this->useragent, $this->force_fsockopen);1602 $file = new $this->file_class($this->feed_url, $this->timeout/10, 5, $headers, $this->useragent, $this->force_fsockopen); 1603 1603 if ($file->success) 1604 1604 { … … 1641 1641 else 1642 1642 { 1643 $file = &new $this->file_class($this->feed_url, $this->timeout, 5, null, $this->useragent, $this->force_fsockopen);1643 $file = new $this->file_class($this->feed_url, $this->timeout, 5, null, $this->useragent, $this->force_fsockopen); 1644 1644 } 1645 1645 } … … 1661 1661 { 1662 1662 // Check if the supplied URL is a feed, if it isn't, look for it. 1663 $locate = &new $this->locator_class($file, $this->timeout, $this->useragent, $this->file_class, $this->max_checked_feeds, $this->content_type_sniffer_class);1663 $locate = new $this->locator_class($file, $this->timeout, $this->useragent, $this->file_class, $this->max_checked_feeds, $this->content_type_sniffer_class); 1664 1664 if (!$locate->is_feed($file)) 1665 1665 { … … 1691 1691 $headers = $file->headers; 1692 1692 $data = $file->body; 1693 $sniffer = &new $this->content_type_sniffer_class($file);1693 $sniffer = new $this->content_type_sniffer_class($file); 1694 1694 $sniffed = $sniffer->get_type(); 1695 1695 } … … 1761 1761 { 1762 1762 // Create new parser 1763 $parser = &new $this->parser_class();1763 $parser = new $this->parser_class(); 1764 1764 1765 1765 // If it's parsed fine … … 1972 1972 else 1973 1973 { 1974 $file = &new $this->file_class($favicon, $this->timeout / 10, 5, array('X-FORWARDED-FOR' => $_SERVER['REMOTE_ADDR']), $this->useragent, $this->force_fsockopen);1974 $file = new $this->file_class($favicon, $this->timeout / 10, 5, array('X-FORWARDED-FOR' => $_SERVER['REMOTE_ADDR']), $this->useragent, $this->force_fsockopen); 1975 1975 1976 1976 if ($file->success && ($file->method & SIMPLEPIE_FILE_SOURCE_REMOTE === 0 || ($file->status_code === 200 || $file->status_code > 206 && $file->status_code < 300)) && strlen($file->body) > 0) 1977 1977 { 1978 $sniffer = &new $this->content_type_sniffer_class($file);1978 $sniffer = new $this->content_type_sniffer_class($file); 1979 1979 if (substr($sniffer->get_type(), 0, 6) === 'image/') 1980 1980 { … … 2375 2375 $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT); 2376 2376 } 2377 $categories[] = &new $this->category_class($term, $scheme, $label);2377 $categories[] = new $this->category_class($term, $scheme, $label); 2378 2378 } 2379 2379 foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'category') as $category) … … 2390 2390 $scheme = null; 2391 2391 } 2392 $categories[] = &new $this->category_class($term, $scheme, null);2392 $categories[] = new $this->category_class($term, $scheme, null); 2393 2393 } 2394 2394 foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_DC_11, 'subject') as $category) 2395 2395 { 2396 $categories[] = &new $this->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);2396 $categories[] = new $this->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null); 2397 2397 } 2398 2398 foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_DC_10, 'subject') as $category) 2399 2399 { 2400 $categories[] = &new $this->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);2400 $categories[] = new $this->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null); 2401 2401 } 2402 2402 … … 2446 2446 if ($name !== null || $email !== null || $uri !== null) 2447 2447 { 2448 $authors[] = &new $this->author_class($name, $uri, $email);2448 $authors[] = new $this->author_class($name, $uri, $email); 2449 2449 } 2450 2450 } … … 2468 2468 if ($name !== null || $email !== null || $url !== null) 2469 2469 { 2470 $authors[] = &new $this->author_class($name, $url, $email);2470 $authors[] = new $this->author_class($name, $url, $email); 2471 2471 } 2472 2472 } 2473 2473 foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_DC_11, 'creator') as $author) 2474 2474 { 2475 $authors[] = &new $this->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);2475 $authors[] = new $this->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null); 2476 2476 } 2477 2477 foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_DC_10, 'creator') as $author) 2478 2478 { 2479 $authors[] = &new $this->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);2479 $authors[] = new $this->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null); 2480 2480 } 2481 2481 foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'author') as $author) 2482 2482 { 2483 $authors[] = &new $this->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);2483 $authors[] = new $this->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null); 2484 2484 } 2485 2485 … … 2529 2529 if ($name !== null || $email !== null || $uri !== null) 2530 2530 { 2531 $contributors[] = &new $this->author_class($name, $uri, $email);2531 $contributors[] = new $this->author_class($name, $uri, $email); 2532 2532 } 2533 2533 } … … 2551 2551 if ($name !== null || $email !== null || $url !== null) 2552 2552 { 2553 $contributors[] = &new $this->author_class($name, $url, $email);2553 $contributors[] = new $this->author_class($name, $url, $email); 2554 2554 } 2555 2555 } … … 2964 2964 foreach ($keys as $key) 2965 2965 { 2966 $this->data['items'][] = &new $this->item_class($this, $items[$key]);2966 $this->data['items'][] = new $this->item_class($this, $items[$key]); 2967 2967 } 2968 2968 } … … 2972 2972 foreach ($keys as $key) 2973 2973 { 2974 $this->data['items'][] = &new $this->item_class($this, $items[$key]);2974 $this->data['items'][] = new $this->item_class($this, $items[$key]); 2975 2975 } 2976 2976 } … … 2980 2980 foreach ($keys as $key) 2981 2981 { 2982 $this->data['items'][] = &new $this->item_class($this, $items[$key]);2982 $this->data['items'][] = new $this->item_class($this, $items[$key]); 2983 2983 } 2984 2984 } … … 2988 2988 foreach ($keys as $key) 2989 2989 { 2990 $this->data['items'][] = &new $this->item_class($this, $items[$key]);2990 $this->data['items'][] = new $this->item_class($this, $items[$key]); 2991 2991 } 2992 2992 } … … 2996 2996 foreach ($keys as $key) 2997 2997 { 2998 $this->data['items'][] = &new $this->item_class($this, $items[$key]);2998 $this->data['items'][] = new $this->item_class($this, $items[$key]); 2999 2999 } 3000 3000 } … … 3347 3347 $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT); 3348 3348 } 3349 $categories[] = &new $this->feed->category_class($term, $scheme, $label);3349 $categories[] = new $this->feed->category_class($term, $scheme, $label); 3350 3350 } 3351 3351 foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'category') as $category) … … 3362 3362 $scheme = null; 3363 3363 } 3364 $categories[] = &new $this->feed->category_class($term, $scheme, null);3364 $categories[] = new $this->feed->category_class($term, $scheme, null); 3365 3365 } 3366 3366 foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_11, 'subject') as $category) 3367 3367 { 3368 $categories[] = &new $this->feed->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);3368 $categories[] = new $this->feed->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null); 3369 3369 } 3370 3370 foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_10, 'subject') as $category) 3371 3371 { 3372 $categories[] = &new $this->feed->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);3372 $categories[] = new $this->feed->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null); 3373 3373 } 3374 3374 … … 3431 3431 if ($name !== null || $email !== null || $uri !== null) 3432 3432 { 3433 $contributors[] = &new $this->feed->author_class($name, $uri, $email);3433 $contributors[] = new $this->feed->author_class($name, $uri, $email); 3434 3434 } 3435 3435 } … … 3453 3453 if ($name !== null || $email !== null || $url !== null) 3454 3454 { 3455 $contributors[] = &new $this->feed->author_class($name, $url, $email);3455 $contributors[] = new $this->feed->author_class($name, $url, $email); 3456 3456 } 3457 3457 } … … 3489 3489 if ($name !== null || $email !== null || $uri !== null) 3490 3490 { 3491 $authors[] = &new $this->feed->author_class($name, $uri, $email);3491 $authors[] = new $this->feed->author_class($name, $uri, $email); 3492 3492 } 3493 3493 } … … 3511 3511 if ($name !== null || $email !== null || $url !== null) 3512 3512 { 3513 $authors[] = &new $this->feed->author_class($name, $url, $email);3513 $authors[] = new $this->feed->author_class($name, $url, $email); 3514 3514 } 3515 3515 } 3516 3516 if ($author = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'author')) 3517 3517 { 3518 $authors[] = &new $this->feed->author_class(null, null, $this->sanitize($author[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT));3518 $authors[] = new $this->feed->author_class(null, null, $this->sanitize($author[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT)); 3519 3519 } 3520 3520 foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_11, 'creator') as $author) 3521 3521 { 3522 $authors[] = &new $this->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);3522 $authors[] = new $this->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null); 3523 3523 } 3524 3524 foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_10, 'creator') as $author) 3525 3525 { 3526 $authors[] = &new $this->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);3526 $authors[] = new $this->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null); 3527 3527 } 3528 3528 foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'author') as $author) 3529 3529 { 3530 $authors[] = &new $this->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);3530 $authors[] = new $this->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null); 3531 3531 } 3532 3532 … … 3838 3838 $caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT); 3839 3839 } 3840 $captions_parent[] = &new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text);3840 $captions_parent[] = new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text); 3841 3841 } 3842 3842 } … … 3870 3870 $caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT); 3871 3871 } 3872 $captions_parent[] = &new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text);3872 $captions_parent[] = new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text); 3873 3873 } 3874 3874 } … … 3900 3900 $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT); 3901 3901 } 3902 $categories_parent[] = &new $this->feed->category_class($term, $scheme, $label);3902 $categories_parent[] = new $this->feed->category_class($term, $scheme, $label); 3903 3903 } 3904 3904 foreach ((array) $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'category') as $category) … … 3923 3923 $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT); 3924 3924 } 3925 $categories_parent[] = &new $this->feed->category_class($term, $scheme, $label);3925 $categories_parent[] = new $this->feed->category_class($term, $scheme, $label); 3926 3926 } 3927 3927 foreach ((array) $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'category') as $category) … … 3934 3934 $label = $this->sanitize($category['attribs']['']['text'], SIMPLEPIE_CONSTRUCT_TEXT); 3935 3935 } 3936 $categories_parent[] = &new $this->feed->category_class($term, $scheme, $label);3936 $categories_parent[] = new $this->feed->category_class($term, $scheme, $label); 3937 3937 3938 3938 if (isset($category['child'][SIMPLEPIE_NAMESPACE_ITUNES]['category'])) … … 3944 3944 $label = $this->sanitize($subcategory['attribs']['']['text'], SIMPLEPIE_CONSTRUCT_TEXT); 3945 3945 } 3946 $categories_parent[] = &new $this->feed->category_class($term, $scheme, $label);3946 $categories_parent[] = new $this->feed->category_class($term, $scheme, $label); 3947 3947 } 3948 3948 } … … 3966 3966 $copyright_label = $this->sanitize($copyright[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT); 3967 3967 } 3968 $copyrights_parent = &new $this->feed->copyright_class($copyright_url, $copyright_label);3968 $copyrights_parent = new $this->feed->copyright_class($copyright_url, $copyright_label); 3969 3969 } 3970 3970 elseif ($copyright = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'copyright')) … … 3980 3980 $copyright_label = $this->sanitize($copyright[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT); 3981 3981 } 3982 $copyrights_parent = &new $this->feed->copyright_class($copyright_url, $copyright_label);3982 $copyrights_parent = new $this->feed->copyright_class($copyright_url, $copyright_label); 3983 3983 } 3984 3984 … … 4007 4007 $credit_name = $this->sanitize($credit['data'], SIMPLEPIE_CONSTRUCT_TEXT); 4008 4008 } 4009 $credits_parent[] = &new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name);4009 $credits_parent[] = new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name); 4010 4010 } 4011 4011 } … … 4033 4033 $credit_name = $this->sanitize($credit['data'], SIMPLEPIE_CONSTRUCT_TEXT); 4034 4034 } 4035 $credits_parent[] = &new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name);4035 $credits_parent[] = new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name); 4036 4036 } 4037 4037 } … … 4222 4222 $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT); 4223 4223 } 4224 $ratings_parent[] = &new $this->feed->rating_class($rating_scheme, $rating_value);4224 $ratings_parent[] = new $this->feed->rating_class($rating_scheme, $rating_value); 4225 4225 } 4226 4226 } … … 4235 4235 $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT); 4236 4236 } 4237 $ratings_parent[] = &new $this->feed->rating_class($rating_scheme, $rating_value);4237 $ratings_parent[] = new $this->feed->rating_class($rating_scheme, $rating_value); 4238 4238 } 4239 4239 } … … 4256 4256 $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT); 4257 4257 } 4258 $ratings_parent[] = &new $this->feed->rating_class($rating_scheme, $rating_value);4258 $ratings_parent[] = new $this->feed->rating_class($rating_scheme, $rating_value); 4259 4259 } 4260 4260 } … … 4269 4269 $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT); 4270 4270 } 4271 $ratings_parent[] = &new $this->feed->rating_class($rating_scheme, $rating_value);4271 $ratings_parent[] = new $this->feed->rating_class($rating_scheme, $rating_value); 4272 4272 } 4273 4273 } … … 4297 4297 $restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT); 4298 4298 } 4299 $restrictions_parent[] = &new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);4299 $restrictions_parent[] = new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value); 4300 4300 } 4301 4301 } … … 4311 4311 $restriction_relationship = 'deny'; 4312 4312 } 4313 $restrictions_parent[] = &new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);4313 $restrictions_parent[] = new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value); 4314 4314 } 4315 4315 } … … 4333 4333 $restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT); 4334 4334 } 4335 $restrictions_parent[] = &new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);4335 $restrictions_parent[] = new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value); 4336 4336 } 4337 4337 } … … 4347 4347 $restriction_relationship = 'deny'; 4348 4348 } 4349 $restrictions_parent[] = &new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);4349 $restrictions_parent[] = new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value); 4350 4350 } 4351 4351 } … … 4551 4551 $caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT); 4552 4552 } 4553 $captions[] = &new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text);4553 $captions[] = new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text); 4554 4554 } 4555 4555 if (is_array($captions)) … … 4587 4587 $caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT); 4588 4588 } 4589 $captions[] = &new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text);4589 $captions[] = new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text); 4590 4590 } 4591 4591 if (is_array($captions)) … … 4623 4623 $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT); 4624 4624 } 4625 $categories[] = &new $this->feed->category_class($term, $scheme, $label);4625 $categories[] = new $this->feed->category_class($term, $scheme, $label); 4626 4626 } 4627 4627 } … … 4649 4649 $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT); 4650 4650 } 4651 $categories[] = &new $this->feed->category_class($term, $scheme, $label);4651 $categories[] = new $this->feed->category_class($term, $scheme, $label); 4652 4652 } 4653 4653 } … … 4678 4678 $copyright_label = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT); 4679 4679 } 4680 $copyrights = &new $this->feed->copyright_class($copyright_url, $copyright_label);4680 $copyrights = new $this->feed->copyright_class($copyright_url, $copyright_label); 4681 4681 } 4682 4682 elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'])) … … 4692 4692 $copyright_label = $this->sanitize($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT); 4693 4693 } 4694 $copyrights = &new $this->feed->copyright_class($copyright_url, $copyright_label);4694 $copyrights = new $this->feed->copyright_class($copyright_url, $copyright_label); 4695 4695 } 4696 4696 else … … 4723 4723 $credit_name = $this->sanitize($credit['data'], SIMPLEPIE_CONSTRUCT_TEXT); 4724 4724 } 4725 $credits[] = &new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name);4725 $credits[] = new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name); 4726 4726 } 4727 4727 if (is_array($credits)) … … 4753 4753 $credit_name = $this->sanitize($credit['data'], SIMPLEPIE_CONSTRUCT_TEXT); 4754 4754 } 4755 $credits[] = &new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name);4755 $credits[] = new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name); 4756 4756 } 4757 4757 if (is_array($credits)) … … 4906 4906 $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT); 4907 4907 } 4908 $ratings[] = &new $this->feed->rating_class($rating_scheme, $rating_value);4908 $ratings[] = new $this->feed->rating_class($rating_scheme, $rating_value); 4909 4909 } 4910 4910 if (is_array($ratings)) … … 4931 4931 $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT); 4932 4932 } 4933 $ratings[] = &new $this->feed->rating_class($rating_scheme, $rating_value);4933 $ratings[] = new $this->feed->rating_class($rating_scheme, $rating_value); 4934 4934 } 4935 4935 if (is_array($ratings)) … … 4963 4963 $restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT); 4964 4964 } 4965 $restrictions[] = &new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);4965 $restrictions[] = new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value); 4966 4966 } 4967 4967 if (is_array($restrictions)) … … 4989 4989 $restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT); 4990 4990 } 4991 $restrictions[] = &new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);4991 $restrictions[] = new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value); 4992 4992 } 4993 4993 if (is_array($restrictions)) … … 5043 5043 } 5044 5044 5045 $this->data['enclosures'][] = &new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions, $categories, $channels, $copyrights, $credits, $description, $duration, $expression, $framerate, $hashes, $height, $keywords, $lang, $medium, $player, $ratings, $restrictions, $samplingrate, $thumbnails, $title, $width);5045 $this->data['enclosures'][] = new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions, $categories, $channels, $copyrights, $credits, $description, $duration, $expression, $framerate, $hashes, $height, $keywords, $lang, $medium, $player, $ratings, $restrictions, $samplingrate, $thumbnails, $title, $width); 5046 5046 } 5047 5047 } … … 5172 5172 $caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT); 5173 5173 } 5174 $captions[] = &new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text);5174 $captions[] = new $this->feed->caption_class($caption_type, $caption_lang, $caption_startTime, $caption_endTime, $caption_text); 5175 5175 } 5176 5176 if (is_array($captions)) … … 5208 5208 $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT); 5209 5209 } 5210 $categories[] = &new $this->feed->category_class($term, $scheme, $label);5210 $categories[] = new $this->feed->category_class($term, $scheme, $label); 5211 5211 } 5212 5212 } … … 5241 5241 $copyright_label = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT); 5242 5242 } 5243 $copyrights = &new $this->feed->copyright_class($copyright_url, $copyright_label);5243 $copyrights = new $this->feed->copyright_class($copyright_url, $copyright_label); 5244 5244 } 5245 5245 else … … 5272 5272 $credit_name = $this->sanitize($credit['data'], SIMPLEPIE_CONSTRUCT_TEXT); 5273 5273 } 5274 $credits[] = &new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name);5274 $credits[] = new $this->feed->credit_class($credit_role, $credit_scheme, $credit_name); 5275 5275 } 5276 5276 if (is_array($credits)) … … 5376 5376 $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT); 5377 5377 } 5378 $ratings[] = &new $this->feed->rating_class($rating_scheme, $rating_value);5378 $ratings[] = new $this->feed->rating_class($rating_scheme, $rating_value); 5379 5379 } 5380 5380 if (is_array($ratings)) … … 5408 5408 $restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT); 5409 5409 } 5410 $restrictions[] = &new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value);5410 $restrictions[] = new $this->feed->restriction_class($restriction_relationship, $restriction_type, $restriction_value); 5411 5411 } 5412 5412 if (is_array($restrictions)) … … 5447 5447 } 5448 5448 5449 $this->data['enclosures'][] = &new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions, $categories, $channels, $copyrights, $credits, $description, $duration, $expression, $framerate, $hashes, $height, $keywords, $lang, $medium, $player, $ratings, $restrictions, $samplingrate, $thumbnails, $title, $width);5449 $this->data['enclosures'][] = new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions, $categories, $channels, $copyrights, $credits, $description, $duration, $expression, $framerate, $hashes, $height, $keywords, $lang, $medium, $player, $ratings, $restrictions, $samplingrate, $thumbnails, $title, $width); 5450 5450 } 5451 5451 } … … 5483 5483 5484 5484 // Since we don't have group or content for these, we'll just pass the '*_parent' variables directly to the constructor 5485 $this->data['enclosures'][] = &new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width);5485 $this->data['enclosures'][] = new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width); 5486 5486 } 5487 5487 } … … 5518 5518 5519 5519 // Since we don't have group or content for these, we'll just pass the '*_parent' variables directly to the constructor 5520 $this->data['enclosures'][] = &new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width);5520 $this->data['enclosures'][] = new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width); 5521 5521 } 5522 5522 } … … 5553 5553 5554 5554 // Since we don't have group or content for these, we'll just pass the '*_parent' variables directly to the constructor 5555 $this->data['enclosures'][] = &new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width);5555 $this->data['enclosures'][] = new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width); 5556 5556 } 5557 5557 } … … 5560 5560 { 5561 5561 // Since we don't have group or content for these, we'll just pass the '*_parent' variables directly to the constructor 5562 $this->data['enclosures'][] = &new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width);5562 $this->data['enclosures'][] = new $this->feed->enclosure_class($url, $type, $length, $this->feed->javascript, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width); 5563 5563 } 5564 5564 … … 5837 5837 $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT); 5838 5838 } 5839 $categories[] = &new $this->item->feed->category_class($term, $scheme, $label);5839 $categories[] = new $this->item->feed->category_class($term, $scheme, $label); 5840 5840 } 5841 5841 foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'category') as $category) … … 5852 5852 $scheme = null; 5853 5853 } 5854 $categories[] = &new $this->item->feed->category_class($term, $scheme, null);5854 $categories[] = new $this->item->feed->category_class($term, $scheme, null); 5855 5855 } 5856 5856 foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_11, 'subject') as $category) 5857 5857 { 5858 $categories[] = &new $this->item->feed->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);5858 $categories[] = new $this->item->feed->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null); 5859 5859 } 5860 5860 foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_10, 'subject') as $category) 5861 5861 { 5862 $categories[] = &new $this->item->feed->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);5862 $categories[] = new $this->item->feed->category_class($this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null); 5863 5863 } 5864 5864 … … 5908 5908 if ($name !== null || $email !== null || $uri !== null) 5909 5909 { 5910 $authors[] = &new $this->item->feed->author_class($name, $uri, $email);5910 $authors[] = new $this->item->feed->author_class($name, $uri, $email); 5911 5911 } 5912 5912 } … … 5930 5930 if ($name !== null || $email !== null || $url !== null) 5931 5931 { 5932 $authors[] = &new $this->item->feed->author_class($name, $url, $email);5932 $authors[] = new $this->item->feed->author_class($name, $url, $email); 5933 5933 } 5934 5934 } 5935 5935 foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_11, 'creator') as $author) 5936 5936 { 5937 $authors[] = &new $this->item->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);5937 $authors[] = new $this->item->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null); 5938 5938 } 5939 5939 foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_10, 'creator') as $author) 5940 5940 { 5941 $authors[] = &new $this->item->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);5941 $authors[] = new $this->item->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null); 5942 5942 } 5943 5943 foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'author') as $author) 5944 5944 { 5945 $authors[] = &new $this->item->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null);5945 $authors[] = new $this->item->feed->author_class($this->sanitize($author['data'], SIMPLEPIE_CONSTRUCT_TEXT), null, null); 5946 5946 } 5947 5947 … … 5991 5991 if ($name !== null || $email !== null || $uri !== null) 5992 5992 { 5993 $contributors[] = &new $this->item->feed->author_class($name, $uri, $email);5993 $contributors[] = new $this->item->feed->author_class($name, $uri, $email); 5994 5994 } 5995 5995 } … … 6013 6013 if ($name !== null || $email !== null || $url !== null) 6014 6014 { 6015 $contributors[] = &new $this->item->feed->author_class($name, $url, $email);6015 $contributors[] = new $this->item->feed->author_class($name, $url, $email); 6016 6016 } 6017 6017 } … … 6450 6450 if (class_exists('idna_convert')) 6451 6451 { 6452 $idn = &new idna_convert;6452 $idn = new idna_convert; 6453 6453 $parsed = SimplePie_Misc::parse_url($link); 6454 6454 $this->link = SimplePie_Misc::compress_parse_url($parsed['scheme'], $idn->encode($parsed['authority']), $parsed['path'], $parsed['query'], $parsed['fragment']); … … 7648 7648 if (class_exists('idna_convert')) 7649 7649 { 7650 $idn = &new idna_convert;7650 $idn = new idna_convert; 7651 7651 $parsed = SimplePie_Misc::parse_url($url); 7652 7652 $url = SimplePie_Misc::compress_parse_url($parsed['scheme'], $idn->encode($parsed['authority']), $parsed['path'], $parsed['query'], $parsed['fragment']); … … 7709 7709 $this->headers = explode("\r\n\r\n", $this->headers, $info['redirect_count'] + 1); 7710 7710 $this->headers = array_pop($this->headers); 7711 $parser = &new SimplePie_HTTP_Parser($this->headers);7711 $parser = new SimplePie_HTTP_Parser($this->headers); 7712 7712 if ($parser->parse()) 7713 7713 { … … 7790 7790 if (!$info['timed_out']) 7791 7791 { 7792 $parser = &new SimplePie_HTTP_Parser($this->headers);7792 $parser = new SimplePie_HTTP_Parser($this->headers); 7793 7793 if ($parser->parse()) 7794 7794 { … … 7809 7809 case 'gzip': 7810 7810 case 'x-gzip': 7811 $decoder = &new SimplePie_gzdecode($this->body);7811 $decoder = new SimplePie_gzdecode($this->body); 7812 7812 if (!$decoder->parse()) 7813 7813 { … … 8621 8621 function create($location, $filename, $extension) 8622 8622 { 8623 $location_iri = &new SimplePie_IRI($location);8623 $location_iri = new SimplePie_IRI($location); 8624 8624 switch ($location_iri->get_scheme()) 8625 8625 { … … 9318 9318 function parse_url($url) 9319 9319 { 9320 $iri = &new SimplePie_IRI($url);9320 $iri = new SimplePie_IRI($url); 9321 9321 return array( 9322 9322 'scheme' => (string) $iri->get_scheme(), … … 9330 9330 function compress_parse_url($scheme = '', $authority = '', $path = '', $query = '', $fragment = '') 9331 9331 { 9332 $iri = &new SimplePie_IRI('');9332 $iri = new SimplePie_IRI(''); 9333 9333 $iri->set_scheme($scheme); 9334 9334 $iri->set_authority($authority); … … 9341 9341 function normalize_url($url) 9342 9342 { 9343 $iri = &new SimplePie_IRI($url);9343 $iri = new SimplePie_IRI($url); 9344 9344 return $iri->get_iri(); 9345 9345 } … … 10861 10861 function entities_decode($data) 10862 10862 { 10863 $decoder = &new SimplePie_Decode_HTML_Entities($data);10863 $decoder = new SimplePie_Decode_HTML_Entities($data); 10864 10864 return $decoder->parse(); 10865 10865 } … … 11257 11257 if ($pos = strpos($data, "\x00\x00\x00\x3F\x00\x00\x00\x3E")) 11258 11258 { 11259 $parser = &new SimplePie_XML_Declaration_Parser(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 20), 'UTF-32BE', 'UTF-8'));11259 $parser = new SimplePie_XML_Declaration_Parser(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 20), 'UTF-32BE', 'UTF-8')); 11260 11260 if ($parser->parse()) 11261 11261 { … … 11270 11270 if ($pos = strpos($data, "\x3F\x00\x00\x00\x3E\x00\x00\x00")) 11271 11271 { 11272 $parser = &new SimplePie_XML_Declaration_Parser(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 20), 'UTF-32LE', 'UTF-8'));11272 $parser = new SimplePie_XML_Declaration_Parser(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 20), 'UTF-32LE', 'UTF-8')); 11273 11273 if ($parser->parse()) 11274 11274 { … … 11283 11283 if ($pos = strpos($data, "\x00\x3F\x00\x3E")) 11284 11284 { 11285 $parser = &new SimplePie_XML_Declaration_Parser(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 10), 'UTF-16BE', 'UTF-8'));11285 $parser = new SimplePie_XML_Declaration_Parser(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 10), 'UTF-16BE', 'UTF-8')); 11286 11286 if ($parser->parse()) 11287 11287 { … … 11296 11296 if ($pos = strpos($data, "\x3F\x00\x3E\x00")) 11297 11297 { 11298 $parser = &new SimplePie_XML_Declaration_Parser(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 10), 'UTF-16LE', 'UTF-8'));11298 $parser = new SimplePie_XML_Declaration_Parser(SimplePie_Misc::change_encoding(substr($data, 20, $pos - 10), 'UTF-16LE', 'UTF-8')); 11299 11299 if ($parser->parse()) 11300 11300 { … … 11309 11309 if ($pos = strpos($data, "\x3F\x3E")) 11310 11310 { 11311 $parser = &new SimplePie_XML_Declaration_Parser(substr($data, 5, $pos - 5));11311 $parser = new SimplePie_XML_Declaration_Parser(substr($data, 5, $pos - 5)); 11312 11312 if ($parser->parse()) 11313 11313 { … … 11684 11684 if ($relative !== '') 11685 11685 { 11686 $relative = &new SimplePie_IRI($relative);11686 $relative = new SimplePie_IRI($relative); 11687 11687 if ($relative->get_scheme() !== null) 11688 11688 { … … 11698 11698 else 11699 11699 { 11700 $target = &new SimplePie_IRI('');11700 $target = new SimplePie_IRI(''); 11701 11701 $target->set_scheme($base->get_scheme()); 11702 11702 $target->set_userinfo($base->get_userinfo()); … … 13050 13050 if (!$object) 13051 13051 { 13052 $object = &new SimplePie_Parse_Date;13052 $object = new SimplePie_Parse_Date; 13053 13053 } 13054 13054 return $object; … … 14085 14085 if ($this->file->method & SIMPLEPIE_FILE_SOURCE_REMOTE) 14086 14086 { 14087 $sniffer = &new $this->content_type_sniffer_class($this->file);14087 $sniffer = new $this->content_type_sniffer_class($this->file); 14088 14088 if ($sniffer->get_type() !== 'text/html') 14089 14089 { … … 14131 14131 if ($file->method & SIMPLEPIE_FILE_SOURCE_REMOTE) 14132 14132 { 14133 $sniffer = &new $this->content_type_sniffer_class($file);14133 $sniffer = new $this->content_type_sniffer_class($file); 14134 14134 $sniffed = $sniffer->get_type(); 14135 14135 if (in_array($sniffed, array('application/rss+xml', 'application/rdf+xml', 'text/rdf', 'application/atom+xml', 'text/xml', 'application/xml'))) … … 14195 14195 { 14196 14196 $this->checked_feeds++; 14197 $feed = &new $this->file_class($href, $this->timeout, 5, null, $this->useragent);14197 $feed = new $this->file_class($href, $this->timeout, 5, null, $this->useragent); 14198 14198 if ($feed->success && ($feed->method & SIMPLEPIE_FILE_SOURCE_REMOTE === 0 || ($feed->status_code === 200 || $feed->status_code > 206 && $feed->status_code < 300)) && $this->is_feed($feed)) 14199 14199 { … … 14267 14267 { 14268 14268 $this->checked_feeds++; 14269 $feed = &new $this->file_class($value, $this->timeout, 5, null, $this->useragent);14269 $feed = new $this->file_class($value, $this->timeout, 5, null, $this->useragent); 14270 14270 if ($feed->success && ($feed->method & SIMPLEPIE_FILE_SOURCE_REMOTE === 0 || ($feed->status_code === 200 || $feed->status_code > 206 && $feed->status_code < 300)) && $this->is_feed($feed)) 14271 14271 { … … 14292 14292 { 14293 14293 $this->checked_feeds++; 14294 $feed = &new $this->file_class($value, $this->timeout, 5, null, $this->useragent);14294 $feed = new $this->file_class($value, $this->timeout, 5, null, $this->useragent); 14295 14295 if ($feed->success && ($feed->method & SIMPLEPIE_FILE_SOURCE_REMOTE === 0 || ($feed->status_code === 200 || $feed->status_code > 206 && $feed->status_code < 300)) && $this->is_feed($feed)) 14296 14296 { … … 14366 14366 if (substr($data, 0, 5) === '<?xml' && strspn(substr($data, 5, 1), "\x09\x0A\x0D\x20") && ($pos = strpos($data, '?>')) !== false) 14367 14367 { 14368 $declaration = &new SimplePie_XML_Declaration_Parser(substr($data, 5, $pos - 5));14368 $declaration = new SimplePie_XML_Declaration_Parser(substr($data, 5, $pos - 5)); 14369 14369 if ($declaration->parse()) 14370 14370 { … … 14416 14416 { 14417 14417 libxml_clear_errors(); 14418 $xml = &new XMLReader();14418 $xml = new XMLReader(); 14419 14419 $xml->xml($data); 14420 14420 while (@$xml->read()) … … 14902 14902 else 14903 14903 { 14904 $file = &new $this->file_class($img['attribs']['src']['data'], $this->timeout, 5, array('X-FORWARDED-FOR' => $_SERVER['REMOTE_ADDR']), $this->useragent, $this->force_fsockopen);14904 $file = new $this->file_class($img['attribs']['src']['data'], $this->timeout, 5, array('X-FORWARDED-FOR' => $_SERVER['REMOTE_ADDR']), $this->useragent, $this->force_fsockopen); 14905 14905 $headers = $file->headers; 14906 14906
Note: See TracChangeset
for help on using the changeset viewer.