Changeset 594 for plugins/trunk/CT_textcube_howto/index.php
- Timestamp:
- 03/03/09 00:57:52 (19 months ago)
- Files:
-
- 1 modified
-
plugins/trunk/CT_textcube_howto/index.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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 ?>