XPressME Integration Kit

Trac


Ignore:
Timestamp:
Dec 15, 2009, 4:52:57 PM (14 years ago)
Author:
toemon
Message:

開発ベースにVer2.2をマージ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/XPressMU/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php

    r451 r488  
    9595 
    9696        $output = ''; 
    97         $author_cookie = get_xpress_dir_name() . "_select_author" ; 
     97        $author_cookie = 'select_' . get_xpress_dir_name() . "_author" ; 
    9898        if (!empty($_COOKIE[$author_cookie])){ 
    9999                $uid = intval($_COOKIE[$author_cookie]); 
     
    115115        extract( $r ); 
    116116        $output = ''; 
    117         $author_cookie = get_xpress_dir_name() . "_select_author" ; 
     117        $author_cookie = 'select_' . get_xpress_dir_name() . "_author" ; 
    118118        if (!empty($_COOKIE[$author_cookie])){ 
    119119                $output = intval($_COOKIE[$author_cookie]); 
     
    161161        $xpress_codename = $xoops_config->module_codename; 
    162162        if ($no_link){ 
    163                 $output = 'XPressMU Ver.' . sprintf('%.2f %s',$xpress_version,$xpress_codename); 
    164163                if ($xoops_config->is_wpmu) { 
     164                        $output = 'XPressMU Ver.' . sprintf('%.2f %s',$xpress_version,$xpress_codename); 
    165165                        $output .= '(included WordPress MU ' . $wpmu_version. ')'; 
    166166                } else { 
     167                        $output = 'XPressME Ver.' . sprintf('%.2f %s',$xpress_version,$xpress_codename); 
    167168                        if (strstr($wp_version,'ME')){ 
    168169                                $output .= '(included WordPress ' . $wp_version . ')'; 
     
    172173                } 
    173174        } else { 
    174                 $output = '<a href="http://ja.xpressme.info"'. " target='_blank'" . '>XPressMU Ver.' . sprintf('%.2f %s',$xpress_version,$xpress_codename) .'</a>'; 
    175175                if ($xoops_config->is_wpmu) { 
     176                        $output = '<a href="http://ja.xpressme.info"'. " target='_blank'" . '>XPressMU Ver.' . sprintf('%.2f %s',$xpress_version,$xpress_codename) .'</a>'; 
    176177                        $output .= '(included <a href="http://mu.wordpress.org/" title="Powered by WordPress"'." target='_blank'". '>WordPress MU ' . $wpmu_version . '</a>)'; 
    177178                } else { 
     179                        $output = '<a href="http://ja.xpressme.info"'. " target='_blank'" . '>XPressME Ver.' . sprintf('%.2f %s',$xpress_version,$xpress_codename) .'</a>'; 
    178180                        if (strstr($wp_version,'ME')){ 
    179181                                $output .= '(included <a href="http://wpme.sourceforge.jp/" title="Powered by WordPress"'." target='_blank'". '>WordPress ' . $wp_version . '</a>)'; 
     
    467469} 
    468470 
    469 function set_post_views_count(&$content) { 
     471function set_post_views_count($content) { 
    470472        if ( empty($_GET["feed"]) &&  empty($GLOBALS["feed"]) && empty($GLOBALS["doing_trackback"]) && empty($GLOBALS["doing_rss"]) && empty($_POST) && is_single() ){ 
    471473                post_views_counting(); 
Note: See TracChangeset for help on using the changeset viewer.