Error in function parse_template ($template, $ft_array) find: $content = ((function_exists('file_get_contents'))) ? file_get_contents($filename) : implode("\n", file($filename)); replace: $content = ((function_exists('file_get_contents'))) ? file_get_contents($file_path) : implode("\n", file($file_path));
Notice in function value_defined($value, $field = '', $params = '')
If to use in a template: <!-- IFDEF: USER_SURNAME --> Users surname: {USER_SURNAME} <!-- ELSE --> <i>Users surname is not defined</i> <!-- ENDIF -->
find if ($field{0}=='.') $field = substr($field, 1);
replace if (isset($field{0}) && $field{0}=='.') $field = substr($field, 1); |