[llvm-commits] CVS: llvm-www/devmtg/register.php students.php talk.php

Anton Korobeynikov asl at math.spbu.ru
Sun May 25 00:29:21 PDT 2008



Changes in directory llvm-www/devmtg:

register.php updated: 1.3 -> 1.4
students.php updated: 1.1 -> 1.2
talk.php updated: 1.2 -> 1.3
---
Log message:

Minor tweaks


---
Diffs of the changes:  (+16 -0)

 register.php |    6 ++++++
 students.php |    5 +++++
 talk.php     |    5 +++++
 3 files changed, 16 insertions(+)


Index: llvm-www/devmtg/register.php
diff -u llvm-www/devmtg/register.php:1.3 llvm-www/devmtg/register.php:1.4
--- llvm-www/devmtg/register.php:1.3	Thu May 22 16:47:54 2008
+++ llvm-www/devmtg/register.php	Sun May 25 02:28:33 2008
@@ -52,7 +52,13 @@
 }
 
 
+function my_escape_string(&$item, $key) {
+  $item = mysql_real_escape_string($item);
+}
+
 function processForm() {
+  array_walk($_POST, 'my_escape_string');
+
   if($_POST['attendBefore'] == 0)
      $attend = 2;
   else


Index: llvm-www/devmtg/students.php
diff -u llvm-www/devmtg/students.php:1.1 llvm-www/devmtg/students.php:1.2
--- llvm-www/devmtg/students.php:1.1	Thu May 22 11:45:49 2008
+++ llvm-www/devmtg/students.php	Sun May 25 02:28:33 2008
@@ -50,7 +50,12 @@
 }
 
 
+function my_escape_string(&$item, $key) {
+  $item = mysql_real_escape_string($item);
+}
+
 function processForm() {
+  array_walk($_POST, 'my_escape_string');
   $sql = "INSERT into students (lastName, firstName, school, email, level, location, airfare, lodging, other, type, comments) VALUES('$_POST[last]', '$_POST[first]', '$_POST[school]', '$_POST[email]', '$_POST[level]', '$_POST[location]','$_POST[airfare]', '$_POST[lodging]', '$_POST[other]', '$_POST[type]', '$_POST[comments]')";
   mysql_query($sql) or die(mysql_error());
 print 'Your request for funding to attend the LLVM Developers\' Meeting has been submitted. We will contact you once funds have been allocated. <p>Please sign up for the <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-devmeeting">LLVM Developers\' Meeting mailing list</a> to receive announcements about the event.</p>';


Index: llvm-www/devmtg/talk.php
diff -u llvm-www/devmtg/talk.php:1.2 llvm-www/devmtg/talk.php:1.3
--- llvm-www/devmtg/talk.php:1.2	Thu May 22 15:12:36 2008
+++ llvm-www/devmtg/talk.php	Sun May 25 02:28:33 2008
@@ -54,7 +54,12 @@
 }
 
 
+function my_escape_string(&$item, $key) {
+  $item = mysql_real_escape_string($item);
+}
+
 function processForm() {
+  array_walk($_POST, 'my_escape_string');
   $sql = "INSERT into presenters (lastName, firstName, organization, email, phone, title, summary, minLength, maxLength) VALUES('$_POST[last]', '$_POST[first]', '$_POST[org]', '$_POST[email]', '$_POST[phone]', '$_POST[title]', '$_POST[summary]','$_POST[min]', '$_POST[max]')";
   mysql_query($sql) or die(mysql_error());
 print 'Congratulations! Your talk proposal for the LLVM Developers\' Meeting has been submitted. We will contact you once the agenda has been finalized. <p>Please sign up for the <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-devmeeting">LLVM Developers\' Meeting mailing list</a> to receive announcements about the event.</p>';






More information about the llvm-commits mailing list