From: dinesh Date: Thu, 14 Aug 2008 06:52:37 +0000 (+0530) Subject: some bug fix in scripts X-Git-Url: https://git.ozlabs.org/?p=ccan-lca-2011.git;a=commitdiff_plain;h=8bae7442eb47bfb50d32a7f25fb212bf6c837923 some bug fix in scripts --- diff --git a/web/functions.php b/web/functions.php index 4228c3a..4b89fa5 100644 --- a/web/functions.php +++ b/web/functions.php @@ -36,7 +36,7 @@ function getccanadmin($db) $result = sqlite3_query($handle, $query) or die("Error in query: ".sqlite3_error($handle)); while ($row = sqlite3_fetch_array($result)) - $admin = $admin.$row[0].","; + $admin = $admin.$row['email'].","; return $admin; } -?> \ No newline at end of file +?> diff --git a/web/requestid.php b/web/requestid.php index eedada5..3d293dd 100644 --- a/web/requestid.php +++ b/web/requestid.php @@ -3,6 +3,7 @@ session_start(); include('logo.html'); include('menulist.html'); include('configuration'); +include('functions.php'); if(isset($_POST['submit'])) { $name = $_REQUEST['name']; @@ -80,7 +81,7 @@ $result = sqlite3_exec($handle, $query) or die("Error in query: ".sqlite3_error( $subject = "Approval of ccan account"; $message = "There is new request for ccan account id.\n\n Please use the following link to approve http://ccan.ozlabs.org/dinesh/approval.php?accountid=".$accountid; -mail($ccan_admin, $subject, $message, "From: $email"); +mail(getccanadmin($db), $subject, $message, "From: $email"); ?>
Thank you for registering with CCAN. You will get the password to your mail after approval.