Changeset 11978
- Timestamp:
- 2007/03/28 09:50:52 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/tb/index.php
r11968 r11978 50 50 * _rss¥Ñ¥é¥á¡¼¥¿¤Ç¤ÎGET¥ê¥¯¥¨¥¹¥È¤òÀ©¸æ(Yahoo blog) 51 51 */ 52 if (isset($_GET["__mode"]) && isset($_GET["pid"])) { 53 if ($_GET["__mode"] == "rss") { 54 IfResponseRss($_GET["pid"]); 55 } 56 } 52 57 exit(); 53 58 } … … 119 124 //---------------------------------------------------------------------------------------------------- 120 125 121 /* ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½ */ 126 /* 127 * ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½ 128 * 129 * @param void ¤Ê¤· 130 * @return void ¤Ê¤· 131 */ 122 132 function lfInitParam() { 123 133 global $objFormParam; … … 128 138 } 129 139 130 /* ÆþÎÏÆâÍƤΥÁ¥§¥Ã¥¯ */ 140 /* 141 * ÆþÎÏÆâÍƤΥÁ¥§¥Ã¥¯ 142 * 143 * @param void ¤Ê¤· 144 * @return $objErr->arrErr ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸ 145 */ 131 146 function lfCheckError() { 132 147 global $objFormParam; … … 140 155 } 141 156 142 /* ¹¹¿·½èÍý */ 157 /* 158 * ¹¹¿·½èÍý 159 * 160 * @param $arrData ¥È¥é¥Ã¥¯¥Ð¥Ã¥¯¥Ç¡¼¥¿ 161 * @return $ret ·ë²Ì 162 */ 143 163 function lfEntryTrackBack($arrData) { 144 164 global $objQuery; … … 171 191 } 172 192 173 /* ¥¹¥Ñ¥à¥Õ¥£¥ë¥¿¡¼ */ 193 /* 194 * ¥¹¥Ñ¥à¥Õ¥£¥ë¥¿¡¼ 195 * 196 * @param $arrData ¥È¥é¥Ã¥¯¥Ð¥Ã¥¯¥Ç¡¼¥¿ 197 * @param $run ¥Õ¥£¥ë¥¿¡¼¥Õ¥é¥°(true:»ÈÍѤ¹¤ë false:»ÈÍѤ·¤Ê¤¤) 198 * @return $ret ·ë²Ì 199 */ 174 200 function lfSpamFilter($arrData, $run = false) { 175 201 $ret = true; … … 181 207 } 182 208 183 // OK¥ì¥¹¥Ý¥ó¥¹¤òÊÖ¤¹ 209 /* 210 * OK¥ì¥¹¥Ý¥ó¥¹¤òÊÖ¤¹ 211 * 212 * @param void ¤Ê¤· 213 * @return void ¤Ê¤· 214 */ 184 215 function IfResponseOk() { 185 216 header("Content-type: text/xml"); … … 191 222 } 192 223 193 // NG¥ì¥¹¥Ý¥ó¥¹¤òÊÖ¤¹ 224 /* 225 * NG¥ì¥¹¥Ý¥ó¥¹¤òÊÖ¤¹ 226 * 227 * @param void ¤Ê¤· 228 * @return void ¤Ê¤· 229 */ 194 230 function IfResponseNg() { 195 231 header("Content-type: text/xml"); … … 201 237 exit(); 202 238 } 239 240 /* 241 * ¥È¥é¥Ã¥¯¥Ð¥Ã¥¯RSS¤òÊÖ¤¹ 242 * 243 * @param $product_id ¾¦ÉÊ¥³¡¼¥É 244 * @return void ¤Ê¤· 245 */ 246 function IfResponseRss($product_id) { 247 global $objQuery; 248 249 $retProduct = $objQuery->select("*", "dtb_products", "product_id = ?", array($product_id)); 250 251 if (count($retProduct) > 0) { 252 header("Content-type: text/xml"); 253 print("<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>"); 254 print("<response>"); 255 print("<error>0</error>"); 256 print("<rss version=\"0.91\">"); 257 print("<channel>"); 258 print("<title>" . $retProduct[0]["name"] . "</title>"); 259 print("<link>"); 260 print(TRACKBACK_TO_URL . $product_id); 261 print("</link>"); 262 print("<description>"); 263 print($retProduct[0]["main_comment"]); 264 print("</description>"); 265 print("<language>ja-jp</language>"); 266 print("</channel>"); 267 print("</rss>"); 268 print("</response>"); 269 exit(); 270 } 271 } 272 203 273 //----------------------------------------------------------------------------------------------------------------------------------- 204 274 ?>
Note: See TracChangeset
for help on using the changeset viewer.