Changeset 1304


Ignore:
Timestamp:
03/13/10 11:18:28 (3 years ago)
Author:
nick_ramsay
Message:

[Trunk] Hotaru 1.1.2, with more to follow soon.

Location:
trunk
Files:
17 edited
12 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/Hotaru.php

    r1248 r1304  
    2626class Hotaru 
    2727{ 
    28     protected $version              = "1.1.1";  // Hotaru CMS version 
     28    protected $version              = "1.1.2";  // Hotaru CMS version 
    2929    protected $isDebug              = false;    // show db queries and page loading time 
    3030    protected $isAdmin              = false;    // flag to tell if we are in Admin or not 
     
    131131                $this->displayTemplate('index');        // displays the index page 
    132132        } 
    133  
    134         if ($this->isDebug) { 
    135             $this->closeLog('error'); 
    136         } 
    137133         
    138134        exit; 
     
    13241320        require_once(LIBS . 'Maintenance.php'); 
    13251321        $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" 
    13271323    } 
    13281324     
     
    14811477     
    14821478     
     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     
    14831497 /* ************************************************************* 
    14841498 * 
  • trunk/READ_ME.txt

    r1234 r1304  
    11HOTARU CMS 
    2 Version: 1.1.1 
    3 Released: Feb 24th 2010 
     2Version: 1.1.2 
     3Released: Mar 8th 2010 
    44 
    55INSTALLATION 
     
    88Please visit http://hotarucms.org/showthread.php?t=14 for the most up-to-date version of these instructions. 
    99 
    10 Instructions last updated: January 18th 2010 
     10Instructions last updated: Mar 8th 2010 
    1111 
    1212Requirements 
     
    1818   1. Backup your database. 
    1919   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. 
    2326 
    2427First-time Installation 
  • trunk/content/plugins

  • trunk/content/plugins/activity/css/activity.css

    r1081 r1304  
    1 /* ************************************** 
    2  *        ACTIVITY PLUGIN CSS       * 
    3  ************************************** */ 
     1/* activity */ 
    42 
    53/* WIDGET */ 
  • trunk/content/plugins/categories/css/categories.css

    r1081 r1304  
    1 /* ************************************** 
    2  *      CATEGORIES PLUGIN CSS           * 
    3  ************************************** */ 
     1/* categories */ 
    42 
    53/* DROP-DOWN CATEGORY MENU BAR */ 
  • trunk/content/plugins/comments/css/comments.css

    r1190 r1304  
    1 /* ************************************** 
    2  *       COMMENTS PLUGIN CSS            * 
    3  ************************************** */ 
     1/* comments */ 
    42 
    53.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  
    9797                        } 
    9898                        $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                        } 
    100103                    } 
    101104                } 
  • trunk/content/themes/default/css/style.css

    r1108 r1304  
    8585#site_closed { background-color: #fff; border-top: 2px solid #000; border-bottom: 2px solid #000;  
    8686                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; } 
    8789 
    8890/* BREADCRUMBS */ 
  • trunk/content/themes/default/header.php

    r1081 r1304  
    4444        <?php } ?> 
    4545    
    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> 
    4747    <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js?ver=1.7.2'></script> 
    4848        
  • trunk/install/install_tables.php

    r1081 r1304  
    342342        // Site email 
    343343        $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')); 
    345345         
    346346        // Database cache 
  • trunk/install/upgrade.php

    r1234 r1304  
    345345    if ($old_version == "1.1") { $old_version = "1.1.1"; } // update "old version" for next set of upgrades 
    346346     
     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     
    347350    // Update Hotaru version number to the database (referred to when upgrading) 
    348351    $sql = "UPDATE " . TABLE_MISCDATA . " SET miscdata_key = %s, miscdata_value = %s, miscdata_default = %s WHERE miscdata_key = %s"; 
  • trunk/libs/Caching.php

    r1280 r1304  
    245245        return $last_update; 
    246246    } 
     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    } 
    247300} 
    248301?> 
  • trunk/libs/EmailFunctions.php

    r1234 r1304  
    113113                break; 
    114114            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); 
    116117        } 
    117118    } 
  • trunk/libs/Maintenance.php

    r1190 r1304  
    193193     * @param object $h 
    194194     */ 
    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 
    198198        echo "<HTML>\n<HEAD>\n"; 
    199199        echo "<link rel='stylesheet' href='" . BASEURL . "content/themes/" . THEME . "css/style.css' type='text/css'>\n"; 
    200200        echo "</HEAD>\n<BODY>\n"; 
    201201        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         
    204215        echo "\n</div>\n</BODY>\n</HTML>\n"; 
     216         
    205217        die(); exit; 
    206218    } 
  • trunk/libs/Widget.php

    r1081 r1304  
    4141                    if (!$h->isInstalled($plugin['plugin'])) { 
    4242                        $this->deleteWidget($h, $plugin['function']); 
    43                         unset($widgets_settings['widgets'][$plugin['plugin']]); 
     43                        unset($widgets_settings['widgets'][$plugin['function']]); 
    4444                        // widget settings get updated at the end of this function 
    4545                    } 
  • trunk/libs/extensions/SimplePie/simplepie.inc

    r1280 r1304  
    736736        { 
    737737                // Other objects, instances created here so we can set options on them 
    738                 $this->sanitize =& new SimplePie_Sanitize; 
     738                $this->sanitize = new SimplePie_Sanitize; 
    739739 
    740740                // Set options if they're passed to the constructor 
     
    11061106                if (SimplePie_Misc::is_subclass_of($class, 'SimplePie_Sanitize')) 
    11071107                { 
    1108                         $this->sanitize =& new $class; 
     1108                        $this->sanitize = new $class; 
    11091109                        return true; 
    11101110                } 
     
    16001600                                                                        $headers['if-none-match'] = '"' . $this->data['headers']['etag'] . '"'; 
    16011601                                                                } 
    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); 
    16031603                                                                if ($file->success) 
    16041604                                                                { 
     
    16411641                                        else 
    16421642                                        { 
    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); 
    16441644                                        } 
    16451645                                } 
     
    16611661                                { 
    16621662                                        // 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); 
    16641664                                        if (!$locate->is_feed($file)) 
    16651665                                        { 
     
    16911691                                $headers = $file->headers; 
    16921692                                $data = $file->body; 
    1693                                 $sniffer =& new $this->content_type_sniffer_class($file); 
     1693                                $sniffer = new $this->content_type_sniffer_class($file); 
    16941694                                $sniffed = $sniffer->get_type(); 
    16951695                        } 
     
    17611761                                { 
    17621762                                        // Create new parser 
    1763                                         $parser =& new $this->parser_class(); 
     1763                                        $parser = new $this->parser_class(); 
    17641764 
    17651765                                        // If it's parsed fine 
     
    19721972                                else 
    19731973                                { 
    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); 
    19751975 
    19761976                                        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) 
    19771977                                        { 
    1978                                                 $sniffer =& new $this->content_type_sniffer_class($file); 
     1978                                                $sniffer = new $this->content_type_sniffer_class($file); 
    19791979                                                if (substr($sniffer->get_type(), 0, 6) === 'image/') 
    19801980                                                { 
     
    23752375                                $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT); 
    23762376                        } 
    2377                         $categories[] =& new $this->category_class($term, $scheme, $label); 
     2377                        $categories[] = new $this->category_class($term, $scheme, $label); 
    23782378                } 
    23792379                foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'category') as $category) 
     
    23902390                                $scheme = null; 
    23912391                        } 
    2392                         $categories[] =& new $this->category_class($term, $scheme, null); 
     2392                        $categories[] = new $this->category_class($term, $scheme, null); 
    23932393                } 
    23942394                foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_DC_11, 'subject') as $category) 
    23952395                { 
    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); 
    23972397                } 
    23982398                foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_DC_10, 'subject') as $category) 
    23992399                { 
    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); 
    24012401                } 
    24022402 
     
    24462446                        if ($name !== null || $email !== null || $uri !== null) 
    24472447                        { 
    2448                                 $authors[] =& new $this->author_class($name, $uri, $email); 
     2448                                $authors[] = new $this->author_class($name, $uri, $email); 
    24492449                        } 
    24502450                } 
     
    24682468                        if ($name !== null || $email !== null || $url !== null) 
    24692469                        { 
    2470                                 $authors[] =& new $this->author_class($name, $url, $email); 
     2470                                $authors[] = new $this->author_class($name, $url, $email); 
    24712471                        } 
    24722472                } 
    24732473                foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_DC_11, 'creator') as $author) 
    24742474                { 
    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); 
    24762476                } 
    24772477                foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_DC_10, 'creator') as $author) 
    24782478                { 
    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); 
    24802480                } 
    24812481                foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'author') as $author) 
    24822482                { 
    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); 
    24842484                } 
    24852485 
     
    25292529                        if ($name !== null || $email !== null || $uri !== null) 
    25302530                        { 
    2531                                 $contributors[] =& new $this->author_class($name, $uri, $email); 
     2531                                $contributors[] = new $this->author_class($name, $uri, $email); 
    25322532                        } 
    25332533                } 
     
    25512551                        if ($name !== null || $email !== null || $url !== null) 
    25522552                        { 
    2553                                 $contributors[] =& new $this->author_class($name, $url, $email); 
     2553                                $contributors[] = new $this->author_class($name, $url, $email); 
    25542554                        } 
    25552555                } 
     
    29642964                                        foreach ($keys as $key) 
    29652965                                        { 
    2966                                                 $this->data['items'][] =& new $this->item_class($this, $items[$key]); 
     2966                                                $this->data['items'][] = new $this->item_class($this, $items[$key]); 
    29672967                                        } 
    29682968                                } 
     
    29722972                                        foreach ($keys as $key) 
    29732973                                        { 
    2974                                                 $this->data['items'][] =& new $this->item_class($this, $items[$key]); 
     2974                                                $this->data['items'][] = new $this->item_class($this, $items[$key]); 
    29752975                                        } 
    29762976                                } 
     
    29802980                                        foreach ($keys as $key) 
    29812981                                        { 
    2982                                                 $this->data['items'][] =& new $this->item_class($this, $items[$key]); 
     2982                                                $this->data['items'][] = new $this->item_class($this, $items[$key]); 
    29832983                                        } 
    29842984                                } 
     
    29882988                                        foreach ($keys as $key) 
    29892989                                        { 
    2990                                                 $this->data['items'][] =& new $this->item_class($this, $items[$key]); 
     2990                                                $this->data['items'][] = new $this->item_class($this, $items[$key]); 
    29912991                                        } 
    29922992                                } 
     
    29962996                                        foreach ($keys as $key) 
    29972997                                        { 
    2998                                                 $this->data['items'][] =& new $this->item_class($this, $items[$key]); 
     2998                                                $this->data['items'][] = new $this->item_class($this, $items[$key]); 
    29992999                                        } 
    30003000                                } 
     
    33473347                                $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT); 
    33483348                        } 
    3349                         $categories[] =& new $this->feed->category_class($term, $scheme, $label); 
     3349                        $categories[] = new $this->feed->category_class($term, $scheme, $label); 
    33503350                } 
    33513351                foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'category') as $category) 
     
    33623362                                $scheme = null; 
    33633363                        } 
    3364                         $categories[] =& new $this->feed->category_class($term, $scheme, null); 
     3364                        $categories[] = new $this->feed->category_class($term, $scheme, null); 
    33653365                } 
    33663366                foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_11, 'subject') as $category) 
    33673367                { 
    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); 
    33693369                } 
    33703370                foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_10, 'subject') as $category) 
    33713371                { 
    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); 
    33733373                } 
    33743374 
     
    34313431                        if ($name !== null || $email !== null || $uri !== null) 
    34323432                        { 
    3433                                 $contributors[] =& new $this->feed->author_class($name, $uri, $email); 
     3433                                $contributors[] = new $this->feed->author_class($name, $uri, $email); 
    34343434                        } 
    34353435                } 
     
    34533453                        if ($name !== null || $email !== null || $url !== null) 
    34543454                        { 
    3455                                 $contributors[] =& new $this->feed->author_class($name, $url, $email); 
     3455                                $contributors[] = new $this->feed->author_class($name, $url, $email); 
    34563456                        } 
    34573457                } 
     
    34893489                        if ($name !== null || $email !== null || $uri !== null) 
    34903490                        { 
    3491                                 $authors[] =& new $this->feed->author_class($name, $uri, $email); 
     3491                                $authors[] = new $this->feed->author_class($name, $uri, $email); 
    34923492                        } 
    34933493                } 
     
    35113511                        if ($name !== null || $email !== null || $url !== null) 
    35123512                        { 
    3513                                 $authors[] =& new $this->feed->author_class($name, $url, $email); 
     3513                                $authors[] = new $this->feed->author_class($name, $url, $email); 
    35143514                        } 
    35153515                } 
    35163516                if ($author = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'author')) 
    35173517                { 
    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)); 
    35193519                } 
    35203520                foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_11, 'creator') as $author) 
    35213521                { 
    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); 
    35233523                } 
    35243524                foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_DC_10, 'creator') as $author) 
    35253525                { 
    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); 
    35273527                } 
    35283528                foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'author') as $author) 
    35293529                { 
    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); 
    35313531                } 
    35323532 
     
    38383838                                                $caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    38393839                                        } 
    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); 
    38413841                                } 
    38423842                        } 
     
    38703870                                                $caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    38713871                                        } 
    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); 
    38733873                                } 
    38743874                        } 
     
    39003900                                        $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT); 
    39013901                                } 
    3902                                 $categories_parent[] =& new $this->feed->category_class($term, $scheme, $label); 
     3902                                $categories_parent[] = new $this->feed->category_class($term, $scheme, $label); 
    39033903                        } 
    39043904                        foreach ((array) $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'category') as $category) 
     
    39233923                                        $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT); 
    39243924                                } 
    3925                                 $categories_parent[] =& new $this->feed->category_class($term, $scheme, $label); 
     3925                                $categories_parent[] = new $this->feed->category_class($term, $scheme, $label); 
    39263926                        } 
    39273927                        foreach ((array) $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'category') as $category) 
     
    39343934                                        $label = $this->sanitize($category['attribs']['']['text'], SIMPLEPIE_CONSTRUCT_TEXT); 
    39353935                                } 
    3936                                 $categories_parent[] =& new $this->feed->category_class($term, $scheme, $label); 
     3936                                $categories_parent[] = new $this->feed->category_class($term, $scheme, $label); 
    39373937 
    39383938                                if (isset($category['child'][SIMPLEPIE_NAMESPACE_ITUNES]['category'])) 
     
    39443944                                                        $label = $this->sanitize($subcategory['attribs']['']['text'], SIMPLEPIE_CONSTRUCT_TEXT); 
    39453945                                                } 
    3946                                                 $categories_parent[] =& new $this->feed->category_class($term, $scheme, $label); 
     3946                                                $categories_parent[] = new $this->feed->category_class($term, $scheme, $label); 
    39473947                                        } 
    39483948                                } 
     
    39663966                                        $copyright_label = $this->sanitize($copyright[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    39673967                                } 
    3968                                 $copyrights_parent =& new $this->feed->copyright_class($copyright_url, $copyright_label); 
     3968                                $copyrights_parent = new $this->feed->copyright_class($copyright_url, $copyright_label); 
    39693969                        } 
    39703970                        elseif ($copyright = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'copyright')) 
     
    39803980                                        $copyright_label = $this->sanitize($copyright[0]['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    39813981                                } 
    3982                                 $copyrights_parent =& new $this->feed->copyright_class($copyright_url, $copyright_label); 
     3982                                $copyrights_parent = new $this->feed->copyright_class($copyright_url, $copyright_label); 
    39833983                        } 
    39843984 
     
    40074007                                                $credit_name = $this->sanitize($credit['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    40084008                                        } 
    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); 
    40104010                                } 
    40114011                        } 
     
    40334033                                                $credit_name = $this->sanitize($credit['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    40344034                                        } 
    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); 
    40364036                                } 
    40374037                        } 
     
    42224222                                                $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    42234223                                        } 
    4224                                         $ratings_parent[] =& new $this->feed->rating_class($rating_scheme, $rating_value); 
     4224                                        $ratings_parent[] = new $this->feed->rating_class($rating_scheme, $rating_value); 
    42254225                                } 
    42264226                        } 
     
    42354235                                                $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    42364236                                        } 
    4237                                         $ratings_parent[] =& new $this->feed->rating_class($rating_scheme, $rating_value); 
     4237                                        $ratings_parent[] = new $this->feed->rating_class($rating_scheme, $rating_value); 
    42384238                                } 
    42394239                        } 
     
    42564256                                                $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    42574257                                        } 
    4258                                         $ratings_parent[] =& new $this->feed->rating_class($rating_scheme, $rating_value); 
     4258                                        $ratings_parent[] = new $this->feed->rating_class($rating_scheme, $rating_value); 
    42594259                                } 
    42604260                        } 
     
    42694269                                                $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    42704270                                        } 
    4271                                         $ratings_parent[] =& new $this->feed->rating_class($rating_scheme, $rating_value); 
     4271                                        $ratings_parent[] = new $this->feed->rating_class($rating_scheme, $rating_value); 
    42724272                                } 
    42734273                        } 
     
    42974297                                                $restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    42984298                                        } 
    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); 
    43004300                                } 
    43014301                        } 
     
    43114311                                                $restriction_relationship = 'deny'; 
    43124312                                        } 
    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); 
    43144314                                } 
    43154315                        } 
     
    43334333                                                $restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    43344334                                        } 
    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); 
    43364336                                } 
    43374337                        } 
     
    43474347                                                $restriction_relationship = 'deny'; 
    43484348                                        } 
    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); 
    43504350                                } 
    43514351                        } 
     
    45514551                                                                        $caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    45524552                                                                } 
    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); 
    45544554                                                        } 
    45554555                                                        if (is_array($captions)) 
     
    45874587                                                                        $caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    45884588                                                                } 
    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); 
    45904590                                                        } 
    45914591                                                        if (is_array($captions)) 
     
    46234623                                                                        $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT); 
    46244624                                                                } 
    4625                                                                 $categories[] =& new $this->feed->category_class($term, $scheme, $label); 
     4625                                                                $categories[] = new $this->feed->category_class($term, $scheme, $label); 
    46264626                                                        } 
    46274627                                                } 
     
    46494649                                                                        $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT); 
    46504650                                                                } 
    4651                                                                 $categories[] =& new $this->feed->category_class($term, $scheme, $label); 
     4651                                                                $categories[] = new $this->feed->category_class($term, $scheme, $label); 
    46524652                                                        } 
    46534653                                                } 
     
    46784678                                                                $copyright_label = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    46794679                                                        } 
    4680                                                         $copyrights =& new $this->feed->copyright_class($copyright_url, $copyright_label); 
     4680                                                        $copyrights = new $this->feed->copyright_class($copyright_url, $copyright_label); 
    46814681                                                } 
    46824682                                                elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'])) 
     
    46924692                                                                $copyright_label = $this->sanitize($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    46934693                                                        } 
    4694                                                         $copyrights =& new $this->feed->copyright_class($copyright_url, $copyright_label); 
     4694                                                        $copyrights = new $this->feed->copyright_class($copyright_url, $copyright_label); 
    46954695                                                } 
    46964696                                                else 
     
    47234723                                                                        $credit_name = $this->sanitize($credit['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    47244724                                                                } 
    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); 
    47264726                                                        } 
    47274727                                                        if (is_array($credits)) 
     
    47534753                                                                        $credit_name = $this->sanitize($credit['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    47544754                                                                } 
    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); 
    47564756                                                        } 
    47574757                                                        if (is_array($credits)) 
     
    49064906                                                                        $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    49074907                                                                } 
    4908                                                                 $ratings[] =& new $this->feed->rating_class($rating_scheme, $rating_value); 
     4908                                                                $ratings[] = new $this->feed->rating_class($rating_scheme, $rating_value); 
    49094909                                                        } 
    49104910                                                        if (is_array($ratings)) 
     
    49314931                                                                        $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    49324932                                                                } 
    4933                                                                 $ratings[] =& new $this->feed->rating_class($rating_scheme, $rating_value); 
     4933                                                                $ratings[] = new $this->feed->rating_class($rating_scheme, $rating_value); 
    49344934                                                        } 
    49354935                                                        if (is_array($ratings)) 
     
    49634963                                                                        $restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    49644964                                                                } 
    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); 
    49664966                                                        } 
    49674967                                                        if (is_array($restrictions)) 
     
    49894989                                                                        $restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    49904990                                                                } 
    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); 
    49924992                                                        } 
    49934993                                                        if (is_array($restrictions)) 
     
    50435043                                                } 
    50445044 
    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); 
    50465046                                        } 
    50475047                                } 
     
    51725172                                                                        $caption_text = $this->sanitize($caption['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    51735173                                                                } 
    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); 
    51755175                                                        } 
    51765176                                                        if (is_array($captions)) 
     
    52085208                                                                        $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT); 
    52095209                                                                } 
    5210                                                                 $categories[] =& new $this->feed->category_class($term, $scheme, $label); 
     5210                                                                $categories[] = new $this->feed->category_class($term, $scheme, $label); 
    52115211                                                        } 
    52125212                                                } 
     
    52415241                                                                $copyright_label = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    52425242                                                        } 
    5243                                                         $copyrights =& new $this->feed->copyright_class($copyright_url, $copyright_label); 
     5243                                                        $copyrights = new $this->feed->copyright_class($copyright_url, $copyright_label); 
    52445244                                                } 
    52455245                                                else 
     
    52725272                                                                        $credit_name = $this->sanitize($credit['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    52735273                                                                } 
    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); 
    52755275                                                        } 
    52765276                                                        if (is_array($credits)) 
     
    53765376                                                                        $rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    53775377                                                                } 
    5378                                                                 $ratings[] =& new $this->feed->rating_class($rating_scheme, $rating_value); 
     5378                                                                $ratings[] = new $this->feed->rating_class($rating_scheme, $rating_value); 
    53795379                                                        } 
    53805380                                                        if (is_array($ratings)) 
     
    54085408                                                                        $restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT); 
    54095409                                                                } 
    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); 
    54115411                                                        } 
    54125412                                                        if (is_array($restrictions)) 
     
    54475447                                                } 
    54485448 
    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); 
    54505450                                        } 
    54515451                                } 
     
    54835483 
    54845484                                        // 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); 
    54865486                                } 
    54875487                        } 
     
    55185518 
    55195519                                        // 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); 
    55215521                                } 
    55225522                        } 
     
    55535553 
    55545554                                        // 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); 
    55565556                                } 
    55575557                        } 
     
    55605560                        { 
    55615561                                // 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); 
    55635563                        } 
    55645564 
     
    58375837                                $label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT); 
    58385838                        } 
    5839                         $categories[] =& new $this->item->feed->category_class($term, $scheme, $label); 
     5839                        $categories[] = new $this->item->feed->category_class($term, $scheme, $label); 
    58405840                } 
    58415841                foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'category') as $category) 
     
    58525852                                $scheme = null; 
    58535853                        } 
    5854                         $categories[] =& new $this->item->feed->category_class($term, $scheme, null); 
     5854                        $categories[] = new $this->item->feed->category_class($term, $scheme, null); 
    58555855                } 
    58565856                foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_11, 'subject') as $category) 
    58575857                { 
    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); 
    58595859                } 
    58605860                foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_10, 'subject') as $category) 
    58615861                { 
    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); 
    58635863                } 
    58645864 
     
    59085908                        if ($name !== null || $email !== null || $uri !== null) 
    59095909                        { 
    5910                                 $authors[] =& new $this->item->feed->author_class($name, $uri, $email); 
     5910                                $authors[] = new $this->item->feed->author_class($name, $uri, $email); 
    59115911                        } 
    59125912                } 
     
    59305930                        if ($name !== null || $email !== null || $url !== null) 
    59315931                        { 
    5932                                 $authors[] =& new $this->item->feed->author_class($name, $url, $email); 
     5932                                $authors[] = new $this->item->feed->author_class($name, $url, $email); 
    59335933                        } 
    59345934                } 
    59355935                foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_11, 'creator') as $author) 
    59365936                { 
    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); 
    59385938                } 
    59395939                foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_DC_10, 'creator') as $author) 
    59405940                { 
    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); 
    59425942                } 
    59435943                foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_ITUNES, 'author') as $author) 
    59445944                { 
    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); 
    59465946                } 
    59475947 
     
    59915991                        if ($name !== null || $email !== null || $uri !== null) 
    59925992                        { 
    5993                                 $contributors[] =& new $this->item->feed->author_class($name, $uri, $email); 
     5993                                $contributors[] = new $this->item->feed->author_class($name, $uri, $email); 
    59945994                        } 
    59955995                } 
     
    60136013                        if ($name !== null || $email !== null || $url !== null) 
    60146014                        { 
    6015                                 $contributors[] =& new $this->item->feed->author_class($name, $url, $email); 
     6015                                $contributors[] = new $this->item->feed->author_class($name, $url, $email); 
    60166016                        } 
    60176017                } 
     
    64506450                if (class_exists('idna_convert')) 
    64516451                { 
    6452                         $idn =& new idna_convert; 
     6452                        $idn = new idna_convert; 
    64536453                        $parsed = SimplePie_Misc::parse_url($link); 
    64546454                        $this->link = SimplePie_Misc::compress_parse_url($parsed['scheme'], $idn->encode($parsed['authority']), $parsed['path'], $parsed['query'], $parsed['fragment']); 
     
    76487648                if (class_exists('idna_convert')) 
    76497649                { 
    7650                         $idn =& new idna_convert; 
     7650                        $idn = new idna_convert; 
    76517651                        $parsed = SimplePie_Misc::parse_url($url); 
    76527652                        $url = SimplePie_Misc::compress_parse_url($parsed['scheme'], $idn->encode($parsed['authority']), $parsed['path'], $parsed['query'], $parsed['fragment']); 
     
    77097709                                        $this->headers = explode("\r\n\r\n", $this->headers, $info['redirect_count'] + 1); 
    77107710                                        $this->headers = array_pop($this->headers); 
    7711                                         $parser =& new SimplePie_HTTP_Parser($this->headers); 
     7711                                        $parser = new SimplePie_HTTP_Parser($this->headers); 
    77127712                                        if ($parser->parse()) 
    77137713                                        { 
     
    77907790                                        if (!$info['timed_out']) 
    77917791                                        { 
    7792                                                 $parser =& new SimplePie_HTTP_Parser($this->headers); 
     7792                                                $parser = new SimplePie_HTTP_Parser($this->headers); 
    77937793                                                if ($parser->parse()) 
    77947794                                                { 
     
    78097809                                                                        case 'gzip': 
    78107810                                                                        case 'x-gzip': 
    7811                                                                                 $decoder =& new SimplePie_gzdecode($this->body); 
     7811                                                                                $decoder = new SimplePie_gzdecode($this->body); 
    78127812                                                                                if (!$decoder->parse()) 
    78137813                                                                                { 
     
    86218621        function create($location, $filename, $extension) 
    86228622        { 
    8623                 $location_iri =& new SimplePie_IRI($location); 
     8623                $location_iri = new SimplePie_IRI($location); 
    86248624                switch ($location_iri->get_scheme()) 
    86258625                { 
     
    93189318        function parse_url($url) 
    93199319        { 
    9320                 $iri =& new SimplePie_IRI($url); 
     9320                $iri = new SimplePie_IRI($url); 
    93219321                return array( 
    93229322                        'scheme' => (string) $iri->get_scheme(), 
     
    93309330        function compress_parse_url($scheme = '', $authority = '', $path = '', $query = '', $fragment = '') 
    93319331        { 
    9332                 $iri =& new SimplePie_IRI(''); 
     9332                $iri = new SimplePie_IRI(''); 
    93339333                $iri->set_scheme($scheme); 
    93349334                $iri->set_authority($authority); 
     
    93419341        function normalize_url($url) 
    93429342        { 
    9343                 $iri =& new SimplePie_IRI($url); 
     9343                $iri = new SimplePie_IRI($url); 
    93449344                return $iri->get_iri(); 
    93459345        } 
     
    1086110861        function entities_decode($data) 
    1086210862        { 
    10863                 $decoder =& new SimplePie_Decode_HTML_Entities($data); 
     10863                $decoder = new SimplePie_Decode_HTML_Entities($data); 
    1086410864                return $decoder->parse(); 
    1086510865        } 
     
    1125711257                        if ($pos = strpos($data, "\x00\x00\x00\x3F\x00\x00\x00\x3E")) 
    1125811258                        { 
    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')); 
    1126011260                                if ($parser->parse()) 
    1126111261                                { 
     
    1127011270                        if ($pos = strpos($data, "\x3F\x00\x00\x00\x3E\x00\x00\x00")) 
    1127111271                        { 
    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')); 
    1127311273                                if ($parser->parse()) 
    1127411274                                { 
     
    1128311283                        if ($pos = strpos($data, "\x00\x3F\x00\x3E")) 
    1128411284                        { 
    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')); 
    1128611286                                if ($parser->parse()) 
    1128711287                                { 
     
    1129611296                        if ($pos = strpos($data, "\x3F\x00\x3E\x00")) 
    1129711297                        { 
    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')); 
    1129911299                                if ($parser->parse()) 
    1130011300                                { 
     
    1130911309                        if ($pos = strpos($data, "\x3F\x3E")) 
    1131011310                        { 
    11311                                 $parser =& new SimplePie_XML_Declaration_Parser(substr($data, 5, $pos - 5)); 
     11311                                $parser = new SimplePie_XML_Declaration_Parser(substr($data, 5, $pos - 5)); 
    1131211312                                if ($parser->parse()) 
    1131311313                                { 
     
    1168411684                if ($relative !== '') 
    1168511685                { 
    11686                         $relative =& new SimplePie_IRI($relative); 
     11686                        $relative = new SimplePie_IRI($relative); 
    1168711687                        if ($relative->get_scheme() !== null) 
    1168811688                        { 
     
    1169811698                                else 
    1169911699                                { 
    11700                                         $target =& new SimplePie_IRI(''); 
     11700                                        $target = new SimplePie_IRI(''); 
    1170111701                                        $target->set_scheme($base->get_scheme()); 
    1170211702                                        $target->set_userinfo($base->get_userinfo()); 
     
    1305013050                if (!$object) 
    1305113051                { 
    13052                         $object =& new SimplePie_Parse_Date; 
     13052                        $object = new SimplePie_Parse_Date; 
    1305313053                } 
    1305413054                return $object; 
     
    1408514085                if ($this->file->method & SIMPLEPIE_FILE_SOURCE_REMOTE) 
    1408614086                { 
    14087                         $sniffer =& new $this->content_type_sniffer_class($this->file); 
     14087                        $sniffer = new $this->content_type_sniffer_class($this->file); 
    1408814088                        if ($sniffer->get_type() !== 'text/html') 
    1408914089                        { 
     
    1413114131                if ($file->method & SIMPLEPIE_FILE_SOURCE_REMOTE) 
    1413214132                { 
    14133                         $sniffer =& new $this->content_type_sniffer_class($file); 
     14133                        $sniffer = new $this->content_type_sniffer_class($file); 
    1413414134                        $sniffed = $sniffer->get_type(); 
    1413514135                        if (in_array($sniffed, array('application/rss+xml', 'application/rdf+xml', 'text/rdf', 'application/atom+xml', 'text/xml', 'application/xml'))) 
     
    1419514195                                { 
    1419614196                                        $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); 
    1419814198                                        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)) 
    1419914199                                        { 
     
    1426714267                        { 
    1426814268                                $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); 
    1427014270                                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)) 
    1427114271                                { 
     
    1429214292                        { 
    1429314293                                $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); 
    1429514295                                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)) 
    1429614296                                { 
     
    1436614366                if (substr($data, 0, 5) === '<?xml' && strspn(substr($data, 5, 1), "\x09\x0A\x0D\x20") && ($pos = strpos($data, '?>')) !== false) 
    1436714367                { 
    14368                         $declaration =& new SimplePie_XML_Declaration_Parser(substr($data, 5, $pos - 5)); 
     14368                        $declaration = new SimplePie_XML_Declaration_Parser(substr($data, 5, $pos - 5)); 
    1436914369                        if ($declaration->parse()) 
    1437014370                        { 
     
    1441614416                { 
    1441714417                        libxml_clear_errors(); 
    14418                         $xml =& new XMLReader(); 
     14418                        $xml = new XMLReader(); 
    1441914419                        $xml->xml($data); 
    1442014420                        while (@$xml->read()) 
     
    1490214902                                                        else 
    1490314903                                                        { 
    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); 
    1490514905                                                                $headers = $file->headers; 
    1490614906 
Note: See TracChangeset for help on using the changeset viewer.