[ Index ]

PHP Cross Reference of phpwcms V1.4.7 _r403 (01.11.10)

title

Body

[close]

/include/inc_lib/content/ -> cnt20.takeval.inc.php (source)

   1  <?php
   2  /*************************************************************************************
   3     Copyright notice
   4     
   5     (c) 2002-2010 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.
   6   
   7     This script is part of PHPWCMS. The PHPWCMS web content management system is
   8     free software; you can redistribute it and/or modify it under the terms of
   9     the GNU General Public License as published by the Free Software Foundation;
  10     either version 2 of the License, or (at your option) any later version.
  11    
  12     The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
  13     A copy is found in the textfile GPL.txt and important notices to the license 
  14     from the author is found in LICENSE.txt distributed with these scripts.
  15    
  16     This script is distributed in the hope that it will be useful, but WITHOUT ANY 
  17     WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  18     PARTICULAR PURPOSE.  See the GNU General Public License for more details.
  19  
  20     This copyright notice MUST APPEAR in all copies of the script!
  21  *************************************************************************************/
  22  
  23  
  24  // ----------------------------------------------------------------
  25  // obligate check for phpwcms constants
  26  if (!defined('PHPWCMS_ROOT')) {
  27     die("You Cannot Access This Script Directly, Have a Nice Day.");
  28  }
  29  // ----------------------------------------------------------------
  30  
  31  
  32  
  33  // Content Type Sitemap
  34  $content["bid"]    = unserialize($row["acontent_form"]);
  35  
  36  if(!$content['bid']['text']) {
  37  
  38      $content['bid']['text']  = '<p>###BID_IMG:left### You can bid on following product from ###BID_START:m/d/y### until ';
  39      $content['bid']['text'] .= '###BID_END:m/d/y###. Please notice: this is no auction. We want to know how much ';
  40      $content['bid']['text'] .= 'you would pay for the product. The current bid is: ###BID_CURRENT### EUR (bid ';
  41      $content['bid']['text'] .= 'starts at ###START_BID### EUR). You can bid by sending your price and email ';
  42      $content['bid']['text'] .= 'address. Then we will send an email to the given address where you have to ';
  43      $content['bid']['text'] .= 'verify your bid. Only if your bid is verified successfully it will be taken.</p> ';
  44      $content['bid']['text'] .= '<p>###BID_FORM###</p>';
  45      
  46  }
  47  
  48  if(!$content['bid']['form']) {
  49  
  50      $content['bid']['form']  = '<!--FORM_ERROR_START-->error: check fields!<br /><!--FORM_ERROR_END-->email:&nbsp;';
  51      $content['bid']['form'] .= '<input name="###BID_EMAIL###" type="text" size="30" value="###BID_EMAIL###" />&nbsp;&nbsp;bid:';
  52      $content['bid']['form'] .= '&nbsp;<input name="###BID_AMOUNT###" type="text" size="15" value="###BID_AMOUNT###" />&nbsp;';
  53      $content['bid']['form'] .= '<input type="submit" name="Submit" value="send bid" />';
  54      
  55  }
  56  
  57  if(!$content["bid"]["emailmsg"]) {
  58  
  59      $content["bid"]["emailmsg"]  = 'This is an automaticly send verification email.';
  60      $content["bid"]["emailmsg"] .= "\n\n\n";
  61      $content["bid"]["emailmsg"] .= "Hi,\n\n";
  62      $content["bid"]["emailmsg"] .= "you have send a new bid from our website:\n###BID_URL###\n\n";
  63      $content["bid"]["emailmsg"] .= "The amount of your bid is: ###BID### EUR\n\n";
  64      $content["bid"]["emailmsg"] .= "Your bid is taken only after you have verified by clicking\n###VERIFY_LINK###\n\n";
  65      $content["bid"]["emailmsg"] .= "If you do not want to bid please do nothing or delete the bid\n###DELETE_LINK###\n\n";
  66      $content["bid"]["emailmsg"] .= "Period: ###BID_START:m/d/y### - ###BID_END:m/d/y###\n";
  67      $content["bid"]["emailmsg"] .= "Start bid was: ###START_BID### EUR\n\nRegards\n";
  68      
  69  }
  70  
  71  if(!$content["bid"]["sent"])             $content["bid"]["sent"]            = 'Your bid was sent. You will receive a verification email.';
  72  if(!$content["bid"]["verified"])         $content["bid"]["verified"]        = 'You have been verified successfully.';
  73  if(!$content["bid"]["notverified"])     $content["bid"]["notverified"]    = 'Your bid was deleted.';
  74  
  75  ?>


Generated: Tue Nov 16 22:51:00 2010 Cross-referenced by PHPXref 0.7