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