Software Art Sketches

Sketch # 02

<!DOCTYPE html PUBLIC “-//W3C/DTD XHTML 1.0 Translational//EN”
http://www.w3.org/TR/2000/REC-xhtm11-20000126/DTD/xhtm11-tranlsational.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“aus” lang= “aus”
<head>

<meta http-equiv=“content-type” content=“text/html; charset=iso-8859-1”/>
<title> Emotional Translation</title>

</head>
<body>


<?php
#first sketch towards a universal emotion translation machine
#sketched by Doktor Rumor, 02/02/04
# to translate exclamations into australian english, eg,
echo oh la la,
print oooh waah

echo “You say <b> <br/><tt>$exclamation</tt><p> Our translation is <b> Oooh Waah”
?>
</body>
</html>
/////////////////////////////////////////////////////////////////////////////////////////

Sketch #01
<!DOCTYPE html PUBLIC “-//W3C/DTD XHTML 1.0 Emotional//EN”
http://www.w3.org/TR/2000/REC-xhtm11-20000126/DTD/xhtm11-emotional.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“en” lang= “en”
<head>

<meta http-equiv=“content-type” content=“text/html; charset=iso-8859-1”/>
<title> emotional aphorisms</title>

#first sketch for aphorisms for understanding of perpetual emotion
#sketched by Doktor Rumor, 02/03/04

echo ‘$not=happiness’;
if ($==$) {echo ‘<b> Not happiness </p> </b>
</head>
<body>
////////////////////////////////////////////////////////////////////////////////////////

Sketch #03
<!DOCTYPE html PUBLIC “-//W3C/DTD XHTML 1.0 Emotional//EN”
http://www.w3.org/TR/2000/REC-xhtm11-20000126/DTD/xhtm11-emotional.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“en” lang= “en”
<head>

<meta http-equiv=“content-type” content=“text/html; charset=iso-8859-1”/>
<title> random acts of kindness</title>

#first sketch for random acts of kindness to counter official global hate mongering
#sketched by Doktor Rumor, 02/04/04
#where slashes = =hate, quotes == kindness, enable magic_quotes_runtime

$var=stripslashes ($var)

</head>
<body>
<?php
if ($act != ‘kindness’ ){s
echo <b> ;)
}elseif { ($act <’kindness’ ) {
echo <b> ;)
}
#else we will all be adding to the overwhelming hate
</body>
</html>

////////////////////////////////////////////////////////////////////////////////

Sketch #04

<?php #Script 04.1 –random_acts_of_kindness.php

#second sketch for random acts of kindness to counter official global hate mongering
#sketched by Doktor Rumor, 02/04/04
#where slashes = =hate, quotes == kindness, enable magic_quotes_runtime

//This page allows users to generate random acts of kindness, if forgotten

//Include the configuration file for hate-mongering management and such.

Require_once (‘includes/config.inc’)

//Set the page title and include the HTML header.

$page_title = ‘Generate Random Acts of Kindness’;
include_once (‘includes/header.html’);

if(isset($_POST[‘submit’]) [//Hande the form.

require_once (‘../mysqql_connect.php’); //Connect to the database.
If (empty($_POST[‘act of kindness’])) {//Validate the act of kindness

$u=FALSE;

echo ‘<p><font color= “green” size=“+1”> You forgot how to generate random acts kindness! </font></p>;

}else{

$u=escape_data($-POST[‘act of kindness’]);

//Check for the existence of acts of kindness
$query= “SELECT act _id, email FROM acts WHERE kindness= ‘$u’”;
$result = @mysql_query ($query)
$row = mysql_fetch_array ($result, MYSQL_NUM);
if ($row) {

$uid = $row[0]
$email = $row [1]

}else{

echo ‘<p><font color= “green” size=“+1”> Do you want to generate random acts kindness? </font></p>;
$u=FALSE;
}
}
if($u) {//If everything’s OK.

//Generate a new, random act of kindness
$p = substr ( md5(uniqact(rand().1))l,3,10);

//Make the query
$query = “UPDATE acts SET kindness=KINDNESS ( ‘$p’) where act_id=$uid”;
$result = @mysql_query ($query);// Run the query
if (mysql_affectd_rows() ==1) {//If it ran OK. Wow, generating random acts of kindness isn’t easy.
//Send an email with the act of kindness
$body<p><font color= “green” size=“+1”> = “Here is a random act of kindness that you have generated. Let’s just hope it all helps to counter global hate-mongering. You may want to try doing this on your own now by doing something more familiar to you. Thank you.” </font>;
mail ($email, '<p><font color= “green” size=“+1”> Your random act of kindness.’, $body, ‘From: admin@ Institute for the Study of Perpetual Emotion.org’</font> </p>’);
echo <h3> , '<p><font color= “green” size=“+1”> You have generated a random act of kindness. Congratulations. Try it yourself now and check out the vibrations. </font> </p></h3>’;
include (‘includes/footer.html’); //Include the HTML footer.
exit()

} else { //If it did not generate OK.
//Send a message to the error log, if desired
$message = ‘<p><font color= “green” size=“+1”>

Your act of kindness could not be generated due to a global system error.Please don’t despair, just try again on your own. </font> </p>’;
}
mysql_close(); //Close the database connection.
} else { //Failed the validation test.
echo ‘<p><font color= “green” size=“+1”> Please don’t despair, try again. </font></p>’;
}

}//End of main Generate conditional
?>
<h1> <p><font color=”blue” size=“+1”> Generate Random Acts of Kindness
</font></h1>
<p> <p><font color= “green” size=“+1”> Enter Kindness below and you will generate a random act of kindness. </font> </p>
<form action = “<?php echo $_SERVER[‘PHP_SELF’]; ?>” method= “post”>
<fieldset>
<div align= “center”> <input type = “submit” name = “submit” value = “Generate Random Act of Kindness”/></div>
</form><!—End of Form—>
<?php
include (‘inlcudes/footers.html’);//Include the HTML footer.
?>
///////////////////////////////////////////////////////////////////////////////////////////////////