[ PHPXref.com ] [ Generated: Sun Jul 20 19:30:10 2008 ] [ Photo Organizer 2.30 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/src/ -> photo.submission.add.2.php (source)

   1  <?php
   2  
   3  //  Copyright (C) 2002, 2003, 2004, 2005, 2006 Balint Kis (balint@k-i-s.net)
   4  
   5  //  This program is free software; you can redistribute it and/or modify
   6  //  it under the terms of the GNU General Public License as published by
   7  //  the Free Software Foundation; either version 2 of the License, or
   8  //  (at your option) any later version.
   9  
  10  //  This program is distributed in the hope that it will be useful,
  11  //  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12  //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13  //  GNU General Public License for more details.
  14  
  15  //  You should have received a copy of the GNU General Public License
  16  //  along with this program; if not, write to the Free Software
  17  //  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  18  
  19  include_once  "include/vars.php";
  20  include_once  "include/config.php";
  21  include_once "$theme/theme.php";
  22  
  23  $session_id = $_COOKIE[$po_cookie];
  24  if ($session_id == "") {
  25    header("location: login.php");
  26    exit();
  27  }
  28  
  29  $photo_id = $_REQUEST['photo'];
  30  $client = $_REQUEST['client'];
  31  if ($client == "") {
  32    header("location: photo.php?photo=$photo_id&detail_info=4");
  33    exit();
  34  }
  35  
  36  include_once  "include/common.php";
  37  include_once  "include/site.php";
  38  include_once  "include/database.php";
  39  
  40  $database = po_dbconnect();
  41  
  42  $photo_dupe_id      = $_REQUEST['photo_dupe'];
  43  $submission_status  = $_REQUEST['submission_status'];
  44  $remark             = $_REQUEST['remark'];
  45  
  46  $submission_date  = check_date_validity($_REQUEST['submission_timestamp']);
  47  
  48  pg_query($database, "insert into submission (identifier, photo_dupe, status, users, date_of_creation, remark)
  49                       values (nextval('submission_id_sequence'), '$photo_dupe_id', '$submission_status', $client, $submission_date, '$remark')");
  50  
  51  pg_close($database);
  52  header("location: photo.php?photo=$photo_id&detail_info=4");
  53  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]