<? require_once("inc/header.php"); ?>
<?
-$dat_dir = '/testimonials';
+$dat_dir = '/tmp/testimonials';
$org_type_lst = array(
'0' => "SELECT ONE",
<tr>
<td class="content">
-<form enctype="multipart/form-data" method='post' action='?page=testimonial'>
+<form name='form1' enctype="multipart/form-data" method='post' action='?page=testimonial'>
<input type='hidden' name='page' value='testimonial'>
<table border='0' class='Content'>
</table>
+<script type="text/javascript" language="JavaScript">
+
+</script>
<?
}
$form = get_formul();
if (!$form) {
- echo "Sorry, something is missing, I cannot accept your submission";
+ echo "Sorry, something is missing, I can't accept your submission";
} else {
$token = uniqid(md5(rand()), true);
$filename = "$dat_dir/profile.$token";
function send_email($id, $email)
{
// Your email address
- $from = 'kern@sibbald.com';
-// $from = 'eric@eb.homelinux.org';
+// $from = 'kern@sibbald.com';
+ $from = 'eric@eb.homelinux.org';
// The subject
$subject = "[BACULA] New testimonial";
$formul[$arr] = preg_replace('/[^a-zA-Z0-9!\.?\:\/,;_()@\n -]/', " ", $_REQUEST[$arr]);
}
- $attribs = array('title','website','hardware_comments','comments');
+ $attribs = array('title','website','hardware_comments','comments') ;
foreach ($attribs as $arr) {
- $formul[$arr] = preg_replace('/[^a-zA-Z0-9!\.?\:\/,;_()@ -]/', " ", $_REQUEST[$arr]);
+ $formul[$arr] = preg_replace('/[^a-zA-Z0-9!\.?\:\/,;_()@\n -]/', " ", $_REQUEST[$arr]);
}
$attribs = array('publish_contact','publish_email', 'publish_orgname', 'orgtype_id',
if ($_FILES['org_logo']) {
$token = uniqid(md5(rand()), true);
- $image = "upload/$token";
+ $image = "/upload/$token";
if (preg_match("/(jpg|jpeg)$/i", $_FILES['org_logo']['name'])) {
$image = "$image.jpg";