Changeset 6709 for temp/trunk/data/lib
- Timestamp:
- 2006/10/25 18:48:19 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/data/lib/slib.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/lib/slib.php
r6679 r6709 2573 2573 } 2574 2574 2575 function sfPrintEbisTag($pid = "") { 2576 global $arrEbisPID; 2577 2578 // ¡Ö/¡×¤¬½ÅÊ£¤·¤Æ¤¤¤ë¤â¤Î¤Ø¤ÎÂбþ 2579 $php_self = ereg_replace("[/]+", "/", $_SERVER['PHP_SELF']); 2580 // PHP¥Õ¥¡¥¤¥ë¤Î¸å¤í¤Ë¡Ö/¡×¤¬¤Ä¤¤¤Æ¤·¤Þ¤Ã¤Æ¤¤¤ë¤â¤Î¤Ø¤ÎÂбþ 2581 $php_self = ereg_replace(".php[/]+$", ".php", $php_self); 2582 2583 $arrEbis['pid'] = $arrEbisPID[$php_self]; 2584 2585 if(!is_array($pid) && $pid != "") { 2586 if(!ereg(".tpl$", $pid)) { 2587 // ¥Ú¡¼¥¸ID¤ò¾å½ñ¤¤¹¤ë 2588 $arrEbis['pid'] = $pid; 2589 } else { 2590 // ¥Æ¥ó¥×¥ì¡¼¥È¤Î¥Ñ¥¹¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¾ì¹ç 2591 $temp_id = ereg_replace("^[/]+","",$pid); 2592 $temp_id = ereg_replace(".tpl$","",$temp_id); 2593 $temp_id = ereg_replace("[\./]","_",$temp_id); 2594 $arrEbis['pid'] = $temp_id; 2595 } 2596 } 2597 2598 // ¾¦ÉʰìÍ÷¥Ú¡¼¥¸¤Ï¡¢ÆÃ¼ìID¤òȯ¹Ô 2599 if(ereg("^/products/list-c[0-9]+.html", $_SERVER["REQUEST_URI"])) { 2600 $filename = basename($_SERVER["REQUEST_URI"]); 2601 $arrEbis['pid'] = ereg_replace(".html$", "", $filename); 2602 } 2603 2604 // ¾¦ÉʰìÍ÷¥Ú¡¼¥¸¤Ï¡¢ÆÃ¼ìID¤òȯ¹Ô 2605 if(ereg("^/products/list.php\?category_id=[0-9]+", $_SERVER["REQUEST_URI"])) { 2606 $filename = basename($_SERVER["REQUEST_URI"]); 2607 $arrEbis['pid'] = ereg_replace("list.php\?category_id=", "list-c", $filename); 2608 } 2609 2610 // ¾¦Éʾܺ٥ڡ¼¥¸¤Ï¡¢ÆÃ¼ìID¤òȯ¹Ô 2611 if(ereg("^/products/detail-p[0-9]+.html", $_SERVER["REQUEST_URI"])) { 2612 $filename = basename($_SERVER["REQUEST_URI"]); 2613 $arrEbis['pid'] = ereg_replace(".html$", "", $filename); 2614 } 2615 2616 // ¾¦Éʾܺ٥ڡ¼¥¸¤Ï¡¢ÆÃ¼ìID¤òȯ¹Ô 2617 if(ereg("^/products/detail.php\?product_id=[0-9]+", $_SERVER["REQUEST_URI"])) { 2618 $filename = basename($_SERVER["REQUEST_URI"]); 2619 $arrEbis['pid'] = ereg_replace("detail.php\?product_id=", "detail-p", $filename); 2620 } 2621 2622 // ID³ä¤êÅö¤Æ¤µ¤ì¤Æ¤¤¤Ê¤¤¥Ú¡¼¥¸¤Ï¡¢¼«Æ°Åª¤ËÀ¸À®¤¹¤ë¡£ 2623 if($arrEbis['pid'] == "") { 2624 $temp_id = ereg_replace("^[/]+","",$_SERVER['PHP_SELF']); 2625 $temp_id = ereg_replace(".php$","",$temp_id); 2626 $temp_id = ereg_replace("[\./]","_",$temp_id); 2627 $arrEbis['pid'] = $temp_id; 2628 } 2629 2630 // ÃíʸID¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡ÊÉղþðÊó¤òÀ¸À®¤¹¤ë¡Ë 2631 if($_SESSION['ebis']['order_id'] != "") { 2632 // ¥¨¥Ó¥¹¥¿¥°°úÅϤ·Íѥǡ¼¥¿¤òÀ¸À®¤¹¤ë 2633 $arrRet = lfGetEbisData($_SESSION['ebis']['order_id']); 2634 $arrEbis = array_merge($arrRet, $arrEbis); 2635 unset($_SESSION['ebis']); 2636 } 2637 2638 // ¥Ú¡¼¥¸ID¤¬ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Î¤ß¥¿¥°¤ò½ÐÎϤ¹¤ë¡£ 2639 if($arrEbis['pid'] != "") { 2640 $objSubPage = new LC_EbisPage(); 2641 $objSubPage->arrEbis = $arrEbis; 2642 $objSubView = new SC_SiteView(); 2643 $objSubView->assignobj($objSubPage); 2644 $objSubView->display($objSubPage->tpl_mainpage); 2645 } 2646 } 2647 2575 2648 /* ¥Ç¥Ð¥Ã¥°ÍÑ ------------------------------------------------------------------------------------------------*/ 2576 2649 function sfPrintR($obj) {
Note: See TracChangeset
for help on using the changeset viewer.
