X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=dwt.php;h=be75647bcd106ea10eda1b57f207eef0c8f863e8;hb=05f4861e64ed6dab2196b3c7f111071d51085fe0;hp=d3477534fa964fe605732647be5b48b148c1ce4d;hpb=883f464e943d1588c0c4227d7f6e69dedb7b6a21;p=wfpl.git diff --git a/dwt.php b/dwt.php index d347753..be75647 100644 --- a/dwt.php +++ b/dwt.php @@ -1,24 +1,11 @@ '); @@ -97,6 +84,19 @@ function dwt_prepend($name, $value) { dwt_prepend_raw("", $value); } +function dwt_get_raw($name) { + $index = dwt_find_raw($name); + if($index !== null) { + return $GLOBALS['_dwt_values'][$index]; + } else { + return false; + } +} + +function dwt_get($name) { + return dwt_get_raw(""); +} + function dwt_output($filename = null) { if($filename !== null) { dwt_load($filename);