";
function insertposting($cont) {
global $dbname;
$pusername="";
if ( isset( $_POST['username'] ) ) {
$pusername=urldecode($_POST['username']);
}
$temail="";
if ( isset( $_POST['email'] ) ) {
$temail=urldecode($_POST['email']);
}
$pstatus="moderating";
try {
if (!$link) $link = db_connect();
if (!$link) {
die('Could not connect: ' . mysql_error());
}
mysql_select_db($dbname);
$result = mysql_query("insert into posting values (NULL,'".$cont."', '".$pusername."', '".$temail."', '".$pstatus."')");
} catch (Exception $e) {
die('Could not connect: ' . mysql_error());
}
}
if ($msg == "") {
if (isset($_POST['myidea'])) {
$suffix=urldecode($_POST['myidea']);
}
if (isset($_POST['mymidea'])) {
$msg='?';
$thisidea=urldecode($_POST['mymidea']);
$msg='@' . $thisidea;
if ($thisidea != '') {
$msg='!';
date_default_timezone_set('Australia/Perth');
$amsg="email";
$msg="Things That We Have in Common " . date('l jS \of F Y h:i:s A') . " ... " . $thisidea . " ... has been sent for moderation (within 24 hours).";
$from = "From: rmetcalfe@rjmprogramming.com.au \r\n";
try {
mail("rmetcalfe@rjmprogramming.com.au", "Things That We Have in Common ... " . $thisidea . " ... " . date('l jS \of F Y h:i:s A'), $thisidea, $from);
//$amsg="";
} catch (Exception $e) { }
}
}
if (isset($_POST['mymfileidea'])) {
$msg='?';
$thisidea=urldecode($_POST['mymfileidea']);
file_put_contents(urlencode($thisidea) . ".aml", "");
$msg='@' . $thisidea;
if ($thisidea != '') {
$msg='!';
date_default_timezone_set('Australia/Perth');
$dprefix="
";
$dmidbit="
";
$dsuffix="
";
$amsg="" . $dprefix . "";
$msg="Things That We Have in Common " . date('l jS \of F Y h:i:s A') . " ... " . $thisidea . " ... file has been flagged for moderation (within 24 hours).";
}
}
if (isset($_POST['mymdbidea'])) {
$msg='?';
$thisidea=urldecode($_POST['mymdbidea']);
$msg='@' . $thisidea;
if ($thisidea != '') {
insertposting(urlencode($_POST['mymdbidea']));
$msg='!';
date_default_timezone_set('Australia/Perth');
$dprefix="
";
$dmidbit="
";
$dsuffix="
";
$amsg="" . $dprefix . "";
$msg="Things That We Have in Common " . date('l jS \of F Y h:i:s A') . " ... " . $thisidea . " ... has been flagged in the database for moderation (within 24 hours).";
}
}
}
if (isset($_GET['admin'])) {
$dprefix="
";
$dmidbit="
";
$dsuffix="
";
$amsg="" . $dprefix . "";
}
echo "
Things That We Have in Common ... " . $msg . "";
?>
Things That We Have in Common
It seems to me that there is so much more that should unite people, rather than divide.