:::

10-2 上課範例: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 ;
  }

  $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%2Ftad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D780%26tbsn%3D26

書籍目錄

展開 | 闔起

線上使用者

41人線上 (9人在瀏覽線上書籍)

會員: 0

訪客: 41

更多…