Changeset 594
- Timestamp:
- 03/03/09 00:57:52 (13 months ago)
- Location:
- plugins/trunk
- Files:
-
- 4 modified
-
CT_Textcube_Plugin_N_Skin/index.php (modified) (3 diffs)
-
CT_Textcube_Plugin_N_Skin/index.xml (modified) (2 diffs)
-
CT_textcube_howto/index.php (modified) (5 diffs)
-
CT_textcube_howto/index.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/trunk/CT_Textcube_Plugin_N_Skin/index.php
r592 r594 29 29 <li id="Addon-tab-4" class="no-selected-tab" onclick="selectAddonTab('Addon-tab-4', 'Addon-tab-1', 'Addon-tab-2', 'Addon-tab-3');hideLayer('CT_Addon3');hideLayer('CT_Addon2');hideLayer('CT_Addon1');showLayer('CT_Addon4');">검색</li> 30 30 </ul> 31 </div> 31 </div> 32 32 <? 33 33 $target .= ob_get_contents(); 34 34 ob_end_clean(); 35 35 36 $recentRssURLS = array('http://textcube.org/plugin/plugin/newRecentRSS?blogname=all', 'http://textcube.org/plugin/plugin/newRecentRSS?blogname=plugin', 'http://textcube.org/plugin/plugin/newRecentRSS?blogname=theme'); 36 37 $OL_CNT = 0; 37 38 foreach ($recentRssURLS as $recentRssURL){ 38 39 $OL_CNT++; 39 if(!is_null(getServiceSetting('Textcube_PS_Addon_'.$OL_CNT))) { 40 41 $AddonEntries = unserialize(getServiceSetting('Textcube_PS_Addon_'.$OL_CNT)); 40 if(!is_null(getServiceSetting('TextcubePSAddon'.$OL_CNT))) { 41 $AddonEntries = unserialize(getServiceSetting('TextcubePSAddon'.$OL_CNT)); 42 42 $result = 0; 43 43 } else { 44 44 list($result, $feed, $xml, $AddonEntries) = CT_textcube_Plugin_N_Skin_getRemoteFeed($recentRssURL); 45 setServiceSetting('Textcube _PS_Addon_'.$OL_CNT,serialize($AddonEntries));45 setServiceSetting('TextcubePSAddon'.$OL_CNT,serialize($AddonEntries)); 46 46 } 47 47 if ($result == 0) { … … 116 116 else if(isset($rssInfo['path'])) { 117 117 if($rssInfo['path']{0} == '/') 118 $rssURL = "{$urlInfo['scheme']}://{$urlInfo['host']}{$rssInfo['path']}"; 118 $rssURL = "{$urlInfo['scheme']}://{$urlInfo['host']}{$rssInfo['path']}"; 119 119 else 120 120 $rssURL = "{$urlInfo['scheme']}://{$urlInfo['host']}".(isset($urlInfo['path']) ? rtrim($urlInfo['path'], '/') : '').'/'.$rssInfo['path']; … … 163 163 } 164 164 165 function CT_textcube_Plugin_N_Skin_sweep() { 166 CT_PNS_removeServiceSetting('Textcube_PS_Addon_1'); 167 CT_PNS_removeServiceSetting('Textcube_PS_Addon_2'); 168 CT_PNS_removeServiceSetting('Textcube_PS_Addon_3'); 169 return true; 170 } 171 172 function CT_PNS_removeServiceSetting($name,$pruneSimilarEntries = false) { 173 global $database; 174 clearServiceSettingCache(); 175 if($pruneSimilarEntries) return POD::execute("DELETE FROM {$database['prefix']}ServiceSettings WHERE name like '".POD::escapeString($name)."'"); 176 else return POD::execute("DELETE FROM {$database['prefix']}ServiceSettings WHERE name = '".POD::escapeString($name)."'"); 165 function CT_textcube_Plugin_N_Skin_sweep($target, $mother = true) { 166 requireModel('common.setting'); 167 removeServiceSetting('TextcubePSAddon1'); 168 removeServiceSetting('TextcubePSAddon2'); 169 removeServiceSetting('TextcubePSAddon3'); 170 return $target; 177 171 } 178 172 ?> -
plugins/trunk/CT_Textcube_Plugin_N_Skin/index.xml
r592 r594 3 3 <title xml:lang="ko"><![CDATA[텍스트큐브 최근 플러그인/스킨]]></title> 4 4 <link>http://textcube.org/</link> 5 <version>1. 9.0302</version>5 <version>1.6.0603</version> 6 6 <description xml:lang="ko"><![CDATA[텍스트큐브 플러그인/스킨 블로그의 글을 보여줍니다.]]></description> 7 7 <license>GPL</license> … … 15 15 <binding> 16 16 <center handler="CT_textcube_Plugin_N_Skin" /> 17 <listener event="Cron 6h">CT_textcube_Plugin_N_Skin_sweep</listener>17 <listener event="Cron12h">CT_textcube_Plugin_N_Skin_sweep</listener> 18 18 <listener event="AddPostEditorToolbox">Null</listener> 19 19 </binding> -
plugins/trunk/CT_textcube_howto/index.php
r592 r594 26 26 <li id="howto-tab-3" class="no-selected-tab" onclick="selectTab('howto-tab-3', 'howto-tab-1', 'howto-tab-2');hideLayer('CT_howTo2');hideLayer('CT_howTo1');showLayer('CT_howTo3');">팁 검색</li> 27 27 </ul> 28 </div> 28 </div> 29 29 <? 30 30 $target .= ob_get_contents(); … … 35 35 foreach ($noticeURLS as $noticeURL){ 36 36 $OL_CNT++; 37 if(!is_null(getServiceSetting('Textcube _howto_'.$OL_CNT))) {38 $howtoEntries = unserialize(getServiceSetting('Textcube _howto_'.$OL_CNT));37 if(!is_null(getServiceSetting('Textcubehowto'.$OL_CNT))) { 38 $howtoEntries = unserialize(getServiceSetting('Textcubehowto'.$OL_CNT)); 39 39 $result = 0; 40 40 } else { 41 41 list($result, $feed, $xml, $howtoEntries) = CT_textcube_howto_getRemoteFeed($noticeURL); 42 setServiceSetting('Textcube _howto_'.$OL_CNT,serialize($howtoEntries));42 setServiceSetting('Textcubehowto'.$OL_CNT,serialize($howtoEntries)); 43 43 } 44 44 if ($result == 0) { … … 74 74 $target .= ' <p style="height: 30px; padding-top: 20px; text-align: center;">'.CRLF; 75 75 $target .= ' <input type="text" size="12" id="searchhowtokey" name="searchhowtokey" value="" onkeypress="if (event.keyCode == 13) { searchHowTo(); return false; }" class="searchfield" />'.CRLF; 76 $target .= ' <input type="button" size="8" value=" 검 색" onclick="searchHowTo();" class="searchbutton" />'.CRLF;76 $target .= ' <input type="button" size="8" value="'._t('검색').'" onclick="searchHowTo();" class="searchbutton" />'.CRLF; 77 77 $target .= ' </p>'.CRLF; 78 78 $target .= '</ol>'.CRLF; … … 109 109 else if(isset($rssInfo['path'])) { 110 110 if($rssInfo['path']{0} == '/') 111 $rssURL = "{$urlInfo['scheme']}://{$urlInfo['host']}{$rssInfo['path']}"; 111 $rssURL = "{$urlInfo['scheme']}://{$urlInfo['host']}{$rssInfo['path']}"; 112 112 else 113 113 $rssURL = "{$urlInfo['scheme']}://{$urlInfo['host']}".(isset($urlInfo['path']) ? rtrim($urlInfo['path'], '/') : '').'/'.$rssInfo['path']; … … 153 153 } 154 154 155 function CT_textcube_howto_sweep() { 156 CT_HWT_removeServiceSetting('Textcube_howto_1'); 157 CT_HWT_removeServiceSetting('Textcube_howto_2'); 158 return true; 159 } 160 function CT_HWT_removeServiceSetting($name,$pruneSimilarEntries = false) { 161 global $database; 162 clearServiceSettingCache(); 163 if($pruneSimilarEntries) return POD::execute("DELETE FROM {$database['prefix']}ServiceSettings WHERE name like '".POD::escapeString($name)."'"); 164 else return POD::execute("DELETE FROM {$database['prefix']}ServiceSettings WHERE name = '".POD::escapeString($name)."'"); 155 function CT_textcube_howto_sweep($target, $mother = true) { 156 requireModel('common.setting'); 157 removeServiceSetting('Textcubehowto1'); 158 removeServiceSetting('Textcubehowto2'); 159 return $target; 165 160 } 166 161 ?> -
plugins/trunk/CT_textcube_howto/index.xml
r592 r594 4 4 <title xml:lang="ko">텍스트큐브 팁</title> 5 5 <link>http://howto.textcube.org/</link> 6 <version>1. 9.0302</version>6 <version>1.6.0531</version> 7 7 <description xml:lang="en">Shows latest posts from howto.textcube.org.</description> 8 8 <description xml:lang="ko">텍스트큐브 팁 블로그의 글을 보여줍니다.</description> … … 16 16 <binding> 17 17 <center handler="CT_textcube_howto" /> 18 <listener event="Cron 6h">CT_textcube_howto_sweep</listener>18 <listener event="Cron12h">CT_textcube_howto_sweep</listener> 19 19 <listener event="AddPostEditorToolbox">Null</listener> 20 20 </binding>