Author: pwang
Date: 2012-08-22 16:29:46 -0700 (Wed, 22 Aug 2012)
New Revision: 30255
Added:
new_cytoscape_website/plugin_website/plugins/sendApprovalEmail.php
new_cytoscape_website/plugin_website/plugins/sendApprovalEmailForm.php
Log:
Original creation
Added: new_cytoscape_website/plugin_website/plugins/sendApprovalEmail.php
===================================================================
--- new_cytoscape_website/plugin_website/plugins/sendApprovalEmail.php
(rev 0)
+++ new_cytoscape_website/plugin_website/plugins/sendApprovalEmail.php
2012-08-22 23:29:46 UTC (rev 30255)
@@ -0,0 +1,75 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>Sendemail Script</title>
+</head>
+<body>
+
+<!-- Reminder: Add the link for the 'next page' (at the bottom) -->
+<!-- Reminder: Change 'YourEmail' to Your real email -->
+
+<?php
+
+$contactName = $_POST['contactName'];
+$toEmail = $_POST['email'];
+$subject = $_POST['subject'];
+$message = $_POST['notes'];
+
+// if (eregi('http:', $notes)) {
+// die("Do NOT try that! ! ");
+// }
+if (!$toEmail == "" && (!strstr($toEmail, "@") || !strstr($toEmail, "."))) {
+ echo "<h2>Use Back - valid e-mail</h2>\n";
+ //$badinput = "<h2>Feedback was NOT submitted</h2>\n";
+ //echo $badinput;
+ die("Go back! ! ");
+}
+
+// if (empty ($visitor) || empty ($email) || empty ($notes)) {
+// echo "<h2>Use Back - fill in all fields</h2>\n";
+// die("Use back! ! ");
+// }
+
+$todayis = date("l, F j, Y, g:i a");
+
+//$notes = stripcslashes($notes);
+
+// $message = " $todayis [PST] \n
+// Message: $notes \n
+// From: $visitor ($email)\n
+// Additional Info : IP = $ip \n
+// Browser Info: $httpagent \n
+// Referral : $httpref \n
+// ";
+
+//$from = "From: $email\r\n";
+
+//include 'cytostaff_emails.inc';
+
+//$from = $cytostaff_emails[0];
+$to = $toEmail;
+//for ($i = 0; $i < count($cytostaff_emails); $i++) {
+// $to = $to . $cytostaff_emails[0] . " ";
+//}
+
+$headers = "From: [email protected]\r\n";
+//$subject = "[] ".$subject;
+
+//mail("YourEmail", $subject, $message, $from);
+if (!mail($to, $subject, $message, $headers)) {
+ die ("<p>Failed to send this e-mail...</p>");
+}
+?>
+
+
+<p align="center">
+Date: <?php echo $todayis ?>
+<br />
+ Your message has been sent. Go back to <a href="pluginadmin.php">Plugin
adminstration page</a>
+<br />
+
+
+</body>
+</html>
Added: new_cytoscape_website/plugin_website/plugins/sendApprovalEmailForm.php
===================================================================
--- new_cytoscape_website/plugin_website/plugins/sendApprovalEmailForm.php
(rev 0)
+++ new_cytoscape_website/plugin_website/plugins/sendApprovalEmailForm.php
2012-08-22 23:29:46 UTC (rev 30255)
@@ -0,0 +1,142 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <link href="http://cytoscape.org/css/main.css" type="text/css"
rel="stylesheet" media="screen">
+ <title>Send approval E-mail to developer</title>
+ <script type="text/javascript"
+src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
+ <script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script>
+ <script type="text/javascript"
src="http://cytoscape.org/js/menu_generator.js"></script>
+
+ </head>
+
+<body bgcolor="#ffffff">
+<script src="http://cytoscape.org/js/header.js"></script>
+
+<h1> Send Approval E-mail to Developer</h1>
+
+
+<?php
+if (isset ($_GET['versionid'])) {
+ $versionID = $_GET['versionid'];
+}
+if (isset ($_POST['versionID'])) { // hidden field
+ $versionID = $_POST['versionID'];
+}
+
+
+// Include the DBMS credentials
+include 'db.inc';
+
+// Connect to the MySQL DBMS
+if (!($connection = @ mysql_pconnect($dbServer, $cytostaff, $cytostaffPass)))
+ showerror();
+// Use the CyPluginDB database
+if (!mysql_select_db($dbName, $connection))
+ showerror();
+
+
+// initialize the variables
+$releaseNote = NULL;
+$releaseNoteURL = NULL;
+$fileUpload = NULL;
+$jarURL = NULL;
+$sourceURL = NULL;
+$license_required_checked = NULL;
+$reference = NULL;
+$comment = NULL;
+$license = NULL;
+$license_required = NULL;
+$contactName = NULL;
+$contactEmail = NULL;
+$themeOnly = NULL;
+
+include 'getplugindatafromdb.inc';
+
+$contactName = $db_contactName;
+$contactEmail = $db_contactEmail;
+
+$pluginName = $db_name;
+
+$subject = "Your plugin ".$pluginName." has been accepted by Cytoscape web
site";
+
+
+$message = "";
+if ($contactName == null || strlen($contactName)==0 ){
+ $message = "Hi,\n\n";
+}
+else {
+ $message = "Dear ".$contactName.",\n\n";
+}
+
+$message .= "We are pleased to inform you that your plugin ".$pluginName . "
has been accepted by Cytoscape web site. It should be now ".
+ "available through the Plugin Manager of Cytoscape. It will
also be listed in the Cytoscape App store web site at
http://apps.cytoscape.org/\n\nThanks,\n\nCytostaff"
+
+?>
+
+
+
+<form method="post" action="sendApprovalEmail.php">
+
+ <p> </p>
+ <table width="300" border="0">
+ <tr>
+ <td width="10"><blockquote>
+ <p> </p>
+ </blockquote></td>
+ <td> </td>
+ </tr>
+ <tr>
+ <td width="10"> </td>
+ <td>Name: </td>
+ </tr>
+ <tr>
+ <td width="10"> </td>
+ <td><input type="text" name="contactName" size="60" value="<?php echo
$contactName ?>" /></td>
+ </tr>
+ <tr>
+ <td width="10"> </td>
+ <td>Email:</td>
+ </tr>
+ <tr>
+ <td width="10"> </td>
+ <td><input type="text" name="email" size="60" value="<?php echo
$contactEmail ?>"/></td>
+ </tr>
+ <tr>
+ <td width="10"> </td>
+ <td>Subject:</td>
+ </tr>
+ <tr>
+ <td width="10"> </td>
+ <td><input name="subject" type="text" id="subject" size="80" value
="<?php echo $subject ?>" /></td>
+ </tr>
+ <tr>
+ <td width="10"> </td>
+ <td>Mail Message: </td>
+ </tr>
+ <tr>
+ <td width="10"> </td>
+ <td><textarea name="notes" rows="10" cols="80"><?php echo $message
?></textarea></td>
+ </tr>
+ <tr>
+ <td> </td>
+ </tr>
+ <tr>
+ <td width="10"> </td>
+ <td><input name="submit" type="submit" value="Send Mail" /></td>
+ </tr>
+ </table>
+ <p> </p>
+</form>
+
+
+
+<br />
+<script src="http://cytoscape.org/js/footer.js"></script>
+
+</body>
+</html>
+
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.