Example #1
0
function array2txt($array, $offset = OFFSET_DELIMETER)
{
    $text = "";
    foreach ($array as $k => $v) {
        if (is_array($v)) {
            $text .= "{$offset}'{$k}' => array(\n" . array2txt($v, $offset . OFFSET_DELIMETER) . "{$offset})";
        } else {
            $text .= "{$offset}'{$k}' => " . (is_string($v) ? "'{$v}'" : $v);
        }
        $text .= ",\n";
    }
    return $text;
}
Example #2
0
	function sendForm($formdata, $mail_to, $mail_to_name, $mail_from, $mail_from_name, $mail_subject, $mail_text) {
		global $c;

		require_once $c["path"] . "modules/mimeMail/mail.php";
		$wcards['formdata'] = array2txt($formdata);
		$plain_text = text_wildcards_replace($mail_text, $wcards);
		mail_simple_send($mail_to, $mail_to_name, $mail_from, $mail_from_name, $mail_subject, $plain_text);
	}