:::

10-5 上課範例: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%2Ftad0616.cp27.secserverpros.com%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D783%26tbsn%3D26

書籍目錄

展開 | 闔起

線上使用者

359人線上 (157人在瀏覽線上書籍)

會員: 0

訪客: 359

更多…