:::

11-1 上課範例:blocks/contact_qrcode.php

<?php
function contact_qrcode_show($options){

  if(preg_match("/contact\/index.php\?sn=/i" , $_SERVER['REQUEST_URI'])){
    $url=str_replace("index.php","pda.php" , $_SERVER['REQUEST_URI']);
  }elseif(preg_match("/contact\/$/i" , $_SERVER['REQUEST_URI'])){
    $url=$_SERVER['REQUEST_URI']."pda.php";
  }else{
    return ;
  }


  //$url=$_SERVER['REQUEST_URI'];

  $block="";
  if(file_exists(TADTOOLS_PATH."/qrcode.php")){
    include_once TADTOOLS_PATH."/qrcode.php";
    $qrcode= new qrcode();
    $block=$qrcode->render($url);
  }
  return $block;
}
?>

:::

搜尋

QR Code 區塊

https%3A%2F%2Fwww.tad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbsn%3D26%26tbdsn%3D786

書籍目錄

展開 | 闔起

線上使用者

28人線上 (11人在瀏覽線上書籍)

會員: 0

訪客: 28

更多…