today's offers - xanax xanax online without prescription taking viagra and xanax soma overnight cod no rx soma online delivery order phentermine next day phentermine hcl capsules buy tramadol cash on delivery tramadol hcl 50 mg tablet tev chinese viagra viagra discount online cialis online australia 20mg generic cialis pills buying ambien online ambien cautions for the elderly Valium overnight delivery no a rx overnight Valium order fioricet 250mg no rx fioricet canada buy cheap discounted Meridia Meridia overnight without prescription online xanax fedex overnight delivery getting prescribed to xanax buy cheap discounted soma soma delivered overnight cheap 37 5 phentermine best price for phentermine cheap tramadol no rx tramadol online no prescription fedex low cost viagra cheap viagra mail order cialis fast delivery generic cialis from philipines no rx ambien cod delivery fedex ambien without priscription no prescription required valium buy no prior perscription Valium

smarty rawurldecode plugin …..


因為我在smarty 上不能直接用php的rawurldecode ,所以自已寫了一個smarty 的function 傳回rawurldecode 過的值給smarty 就這樣而已…..

<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
function smarty_function_rawurldecode ($params, &$smarty) {

if (empty($params['lastpage_url'])){
$smarty->_trigger_fatal_error(“[rawurldecode] param lastpage_url cannot be empty”);
return;
}
if (isset($params['lastpage_url'])){
$return = $params['lastpage_url'];
$return = rawurldecode($return);
}
return $return;
}

?>

reference…
How to write a custom Smarty function in php

:( h):

  1. No comments yet.
(will not be published)

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word