X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=blobdiff_plain;f=metaform%2Ftemplate.php;h=759adb9242f37fa6f1268c43423b1f0b292a002b;hp=041b8577c968e3704907cd2ce75a3d5496d1cc20;hb=e057305351d93155bf9f0d2c664b6eb859d83bf4;hpb=8e61d658c67b8782612820211862ee0df243891d diff --git a/metaform/template.php b/metaform/template.php index 041b857..759adb9 100644 --- a/metaform/template.php +++ b/metaform/template.php @@ -32,9 +32,9 @@ $GLOBALS['~name~_thumb_max_height'] = '70'; $GLOBALS['~name~_file_name'] = uniqid() . getmypid() . '.jpg'; # comment this out to use uploader's filename ~}~~}~ -require_once('code/wfpl/format.php'); -require_once('code/wfpl/email.php');~uploads_include {~ -require_once('code/wfpl/upload.php');~}~ +require_once(__DIR__.'/'.'code/wfpl/format.php'); +require_once(__DIR__.'/'.'code/wfpl/email.php');~uploads_include {~ +require_once(__DIR__.'/'.'code/wfpl/upload.php');~}~ $GLOBALS['~file_name~_field_to_caption'] = array(~name_to_caption {~ '~name~' => '~caption phpsq~'~ sep {~,~}~~}~ @@ -148,7 +148,7 @@ function ~file_name~_main_delete($id) { }~}~~opt_listing {~ function ~file_name~_csv_download() { - require_once('code/wfpl/csv.php'); + require_once(__DIR__.'/'.'code/wfpl/csv.php'); $rows = db_get_rows('~table_name~', 'id,'.~file_name upper~_DB_FIELDS, 'order by id'); $fields = explode(',', 'id,'.~file_name upper~_DB_FIELDS); $header = array();