Revision 1919
Added by Luisehahne over 12 years ago
| branches/2.8.x/CHANGELOG | ||
|---|---|---|
| 12 | 12 |
=============================================================================== |
| 13 | 13 |
|
| 14 | 14 |
|
| 15 |
07 Jun-2013 Build 1919 Dietmar Woellbrink (Luisehahne) |
|
| 16 |
! /modules/form/ beginning recoding |
|
| 15 | 17 |
07 Jun-2013 Build 1918 Dietmar Woellbrink (Luisehahne) |
| 16 |
! /modules/news/ beginning beginning recoding
|
|
| 18 |
! /modules/news/ beginning recoding |
|
| 17 | 19 |
replacing absolute MediaUrl with place holder |
| 18 | 20 |
07 Jun-2013 Build 1917 Dietmar Woellbrink (Luisehahne) |
| 19 | 21 |
! /modules/show_menu2/ set to version 4.9.7 |
| branches/2.8.x/wb/admin/interface/version.php | ||
|---|---|---|
| 51 | 51 |
|
| 52 | 52 |
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled) |
| 53 | 53 |
if(!defined('VERSION')) define('VERSION', '2.8.3');
|
| 54 |
if(!defined('REVISION')) define('REVISION', '1918');
|
|
| 54 |
if(!defined('REVISION')) define('REVISION', '1919');
|
|
| 55 | 55 |
if(!defined('SP')) define('SP', '');
|
| branches/2.8.x/wb/modules/form/modify_field.php | ||
|---|---|---|
| 4 | 4 |
* @category module |
| 5 | 5 |
* @package Form |
| 6 | 6 |
* @author WebsiteBaker Project |
| 7 |
* @copyright 2009-2011, Website Baker Org. e.V.
|
|
| 8 |
* @link http://www.websitebaker2.org/
|
|
| 7 |
* @copyright 2009-2013, WebsiteBaker Org. e.V.
|
|
| 8 |
* @link http://www.websitebaker.org/
|
|
| 9 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
| 10 | 10 |
* @platform WebsiteBaker 2.8.x |
| 11 | 11 |
* @requirements PHP 5.2.2 and higher |
| 12 | 12 |
* @version $Id$ |
| 13 |
* @filesource $HeadURL$
|
|
| 13 |
* @filesource $HeadURL$
|
|
| 14 | 14 |
* @lastmodified $Date$ |
| 15 | 15 |
* @description |
| 16 | 16 |
*/ |
| ... | ... | |
| 23 | 23 |
// Include WB admin wrapper script |
| 24 | 24 |
require(WB_PATH.'/modules/admin.php'); |
| 25 | 25 |
|
| 26 |
$sec_anchor = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? '#'.SEC_ANCHOR.$section['section_id'] : 'section_'.$section_id );
|
|
| 26 |
$sSectionIdPrefix = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? SEC_ANCHOR : 'Sec' );
|
|
| 27 | 27 |
/* */ |
| 28 | 28 |
// Get id |
| 29 | 29 |
$field_id = intval($admin->checkIDKEY('field_id', false, 'GET'));
|
| 30 | 30 |
if (!$field_id) {
|
| 31 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id.$sec_anchor);
|
|
| 31 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id.'#'.$sSectionIdPrefix.$section_id);
|
|
| 32 | 32 |
} |
| 33 | 33 |
// load module language file |
| 34 | 34 |
$lang = (dirname(__FILE__)) . '/languages/' . LANGUAGE . '.php'; |
| ... | ... | |
| 210 | 210 |
// end addition |
| 211 | 211 |
?> |
| 212 | 212 |
<td align="right"> |
| 213 |
<input type="button" value="<?php echo $TEXT['CLOSE']; ?>" onclick="javascript: window.location = '<?php echo ADMIN_URL; ?>/pages/modify.php?page_id=<?php echo $page_id.$sec_anchor; ?>';" style="width: 100px; margin-top: 5px;" />
|
|
| 213 |
<input type="button" value="<?php echo $TEXT['CLOSE']; ?>" onclick="javascript: window.location = '<?php echo ADMIN_URL; ?>/pages/modify.php?page_id=<?php echo $page_id.'#'.$sSectionIdPrefix.$section_id; ?>';" style="width: 100px; margin-top: 5px;" />
|
|
| 214 | 214 |
</td> |
| 215 | 215 |
</tr> |
| 216 | 216 |
</table> |
| branches/2.8.x/wb/modules/form/add_field.php | ||
|---|---|---|
| 4 | 4 |
* @category module |
| 5 | 5 |
* @package Form |
| 6 | 6 |
* @author WebsiteBaker Project |
| 7 |
* @copyright 2009-2011, Website Baker Org. e.V.
|
|
| 8 |
* @link http://www.websitebaker2.org/
|
|
| 7 |
* @copyright 2009-2013, WebsiteBaker Org. e.V.
|
|
| 8 |
* @link http://www.websitebaker.org/
|
|
| 9 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
| 10 | 10 |
* @platform WebsiteBaker 2.8.x |
| 11 | 11 |
* @requirements PHP 5.2.2 and higher |
| 12 | 12 |
* @version $Id$ |
| 13 |
* @filesource $HeadURL$
|
|
| 13 |
* @filesource $HeadURL$
|
|
| 14 | 14 |
* @lastmodified $Date$ |
| 15 | 15 |
* @description |
| 16 | 16 |
*/ |
| 17 | 17 |
|
| 18 |
require('../../config.php');
|
|
| 18 |
// Include config file |
|
| 19 |
$config_file = realpath('../../config.php');
|
|
| 20 |
if(file_exists($config_file) && !defined('WB_URL'))
|
|
| 21 |
{
|
|
| 22 |
require($config_file); |
|
| 19 | 23 |
|
| 24 |
} |
|
| 25 |
|
|
| 20 | 26 |
// Include WB admin wrapper script |
| 21 | 27 |
require(WB_PATH.'/modules/admin.php'); |
| 22 | 28 |
|
| 23 |
$sec_anchor = '#'.(defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? SEC_ANCHOR.$section_id : 'section_'.$section_id ); |
|
| 24 |
|
|
| 25 | 29 |
// Include the ordering class |
| 26 | 30 |
require(WB_PATH.'/framework/class.order.php'); |
| 27 | 31 |
// Get new order |
| 28 | 32 |
$order = new order(TABLE_PREFIX.'mod_form_fields', 'position', 'field_id', 'section_id'); |
| 29 | 33 |
$position = $order->get_new($section_id); |
| 30 | 34 |
|
| 35 |
$field_id = 0; |
|
| 36 |
try {
|
|
| 31 | 37 |
// Insert new row into database |
| 32 |
$database->query("INSERT INTO ".TABLE_PREFIX."mod_form_fields (section_id,page_id,position,required) VALUES ('$section_id','$page_id','$position','0')");
|
|
| 38 |
$sql = 'INSERT INTO `'.TABLE_PREFIX.'mod_form_fields` ' |
|
| 39 |
. 'SET `section_id`='.$section_id.', ' |
|
| 40 |
. '`page_id`='.$page_id.', ' |
|
| 41 |
. '`position`='.$position.', ' |
|
| 42 |
. '`required`=0'; |
|
| 43 |
$database->query($sql); |
|
| 44 |
$field_id = $database->LastInsertId; |
|
| 45 |
} catch(WbDatabaseException $e) {
|
|
| 46 |
$admin->print_error($database->get_error(), WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'§ion_id='.$section_id.'&field_id='.$admin->getIDKEY($field_id)); |
|
| 47 |
} |
|
| 33 | 48 |
|
| 49 |
// Insert new row into database |
|
| 50 |
//$database->query("INSERT INTO ".TABLE_PREFIX."mod_form_fields (section_id,page_id,position,required) VALUES ('$section_id','$page_id','$position','0')");
|
|
| 51 |
|
|
| 34 | 52 |
// Get the id |
| 35 |
$field_id = $database->get_one("SELECT LAST_INSERT_ID()");
|
|
| 53 |
//$field_id = $database->get_one("SELECT LAST_INSERT_ID()");
|
|
| 36 | 54 |
|
| 37 | 55 |
// Say that a new record has been added, then redirect to modify page |
| 38 |
if($database->is_error()) {
|
|
| 39 |
$admin->print_error($database->get_error(), WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'§ion_id='.$section_id.'&field_id='.$admin->getIDKEY($field_id)); |
|
| 40 |
} else {
|
|
| 41 |
$admin->print_success($TEXT['SUCCESS'], WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'§ion_id='.$section_id.'&field_id='.$admin->getIDKEY($field_id)); |
|
| 42 |
} |
|
| 56 |
//if($database->is_error()) {
|
|
| 57 |
// $admin->print_error($database->get_error(), WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'§ion_id='.$section_id.'&field_id='.$admin->getIDKEY($field_id));
|
|
| 58 |
//} else {
|
|
| 59 |
// $admin->print_success($TEXT['SUCCESS'], WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'§ion_id='.$section_id.'&field_id='.$admin->getIDKEY($field_id));
|
|
| 60 |
//}
|
|
| 43 | 61 |
|
| 62 |
$admin->print_success($TEXT['SUCCESS'], WB_URL.'/modules/form/modify_field.php?page_id='.$page_id.'§ion_id='.$section_id.'&field_id='.$admin->getIDKEY($field_id)); |
|
| 44 | 63 |
// Print admin footer |
| 45 | 64 |
$admin->print_footer(); |
| branches/2.8.x/wb/modules/form/save_field.php | ||
|---|---|---|
| 4 | 4 |
* @category module |
| 5 | 5 |
* @package Form |
| 6 | 6 |
* @author WebsiteBaker Project |
| 7 |
* @copyright 2009-2012, WebsiteBaker Org. e.V.
|
|
| 8 |
* @link http://www.websitebaker2.org/
|
|
| 7 |
* @copyright 2009-2013, WebsiteBaker Org. e.V.
|
|
| 8 |
* @link http://www.websitebaker.org/
|
|
| 9 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
| 10 | 10 |
* @platform WebsiteBaker 2.8.x |
| 11 | 11 |
* @requirements PHP 5.2.2 and higher |
| 12 | 12 |
* @version $Id$ |
| 13 |
* @filesource $HeadURL$
|
|
| 13 |
* @filesource $HeadURL$
|
|
| 14 | 14 |
* @lastmodified $Date$ |
| 15 | 15 |
* @description |
| 16 | 16 |
*/ |
| ... | ... | |
| 25 | 25 |
require(WB_PATH.'/modules/admin.php'); |
| 26 | 26 |
/* */ |
| 27 | 27 |
|
| 28 |
$sec_anchor = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? '#'.SEC_ANCHOR.$section['section_id'] : 'section_'.$section_id );
|
|
| 28 |
$sSectionIdPrefix = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? SEC_ANCHOR : 'Sec' );
|
|
| 29 | 29 |
|
| 30 | 30 |
// check FTAN |
| 31 | 31 |
if (!$admin->checkFTAN()) |
| 32 | 32 |
{
|
| 33 | 33 |
$admin->print_header(); |
| 34 |
$admin->print_error('::'.$MESSAGE['GENERIC_SECURITY_ACCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id.$sec_anchor);
|
|
| 34 |
$admin->print_error('::'.$MESSAGE['GENERIC_SECURITY_ACCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id.'#'.$sSectionIdPrefix.$section_id);
|
|
| 35 | 35 |
} |
| 36 | 36 |
|
| 37 | 37 |
// Get id |
| 38 | 38 |
$field_id = intval($admin->checkIDKEY('field_id', false ));
|
| 39 | 39 |
if (!$field_id) {
|
| 40 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'].'::', ADMIN_URL.'/pages/modify.php?page_id='.$page_id.$sec_anchor);
|
|
| 40 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'].'::', ADMIN_URL.'/pages/modify.php?page_id='.$page_id.'#'.$sSectionIdPrefix.$section_id);
|
|
| 41 | 41 |
} |
| 42 | 42 |
// After check print the header to get a new FTAN |
| 43 | 43 |
$admin->print_header(); |
| branches/2.8.x/wb/modules/form/delete_field.php | ||
|---|---|---|
| 4 | 4 |
* @category module |
| 5 | 5 |
* @package Form |
| 6 | 6 |
* @author WebsiteBaker Project |
| 7 |
* @copyright 2009-2011, Website Baker Org. e.V.
|
|
| 8 |
* @link http://www.websitebaker2.org/
|
|
| 7 |
* @copyright 2009-2013, WebsiteBaker Org. e.V.
|
|
| 8 |
* @link http://www.websitebaker.org/
|
|
| 9 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
| 10 | 10 |
* @platform WebsiteBaker 2.8.x |
| 11 | 11 |
* @requirements PHP 5.2.2 and higher |
| 12 | 12 |
* @version $Id$ |
| 13 |
* @filesource $HeadURL$
|
|
| 13 |
* @filesource $HeadURL$
|
|
| 14 | 14 |
* @lastmodified $Date$ |
| 15 | 15 |
* @description |
| 16 | 16 |
*/ |
| ... | ... | |
| 27 | 27 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id); |
| 28 | 28 |
} |
| 29 | 29 |
|
| 30 |
$sec_anchor = '#'.(defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? SEC_ANCHOR.$section_id : 'section_'.$section_id );
|
|
| 30 |
$sSectionIdPrefix = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? SEC_ANCHOR : 'Sec' );
|
|
| 31 | 31 |
|
| 32 | 32 |
// Delete row |
| 33 | 33 |
$database->query("DELETE FROM ".TABLE_PREFIX."mod_form_fields WHERE field_id = '$field_id'");
|
| ... | ... | |
| 39 | 39 |
$order = new order(TABLE_PREFIX.'mod_form_fields', 'position', 'field_id', 'section_id'); |
| 40 | 40 |
|
| 41 | 41 |
if(!$order->clean($section_id)) {
|
| 42 |
$admin->print_error($database->get_error(), ADMIN_URL.'/pages/modify.php?page_id='.$page_id.$sec_anchor);
|
|
| 42 |
$admin->print_error($database->get_error(), ADMIN_URL.'/pages/modify.php?page_id='.$page_id.'#'.$sSectionIdPrefix.$section_id);
|
|
| 43 | 43 |
} else {
|
| 44 |
$admin->print_success($TEXT['SUCCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id.$sec_anchor);
|
|
| 44 |
$admin->print_success($TEXT['SUCCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id.'#'.$sSectionIdPrefix.$section_id);
|
|
| 45 | 45 |
} |
| 46 | 46 |
|
| 47 | 47 |
// Print admin footer |
| branches/2.8.x/wb/modules/form/modify_settings.php | ||
|---|---|---|
| 4 | 4 |
* @category module |
| 5 | 5 |
* @package Form |
| 6 | 6 |
* @author WebsiteBaker Project |
| 7 |
* @copyright 2009-2011, Website Baker Org. e.V.
|
|
| 8 |
* @link http://www.websitebaker2.org/
|
|
| 7 |
* @copyright 2009-2013, WebsiteBaker Org. e.V.
|
|
| 8 |
* @link http://www.websitebaker.org/
|
|
| 9 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
| 10 | 10 |
* @platform WebsiteBaker 2.8.x |
| 11 | 11 |
* @requirements PHP 5.2.2 and higher |
| 12 | 12 |
* @version $Id$ |
| 13 |
* @filesource $HeadURL$
|
|
| 13 |
* @filesource $HeadURL$
|
|
| 14 | 14 |
* @lastmodified $Date$ |
| 15 | 15 |
* @description |
| 16 | 16 |
*/ |
| ... | ... | |
| 38 | 38 |
$database->field_add($table_name, $field_name, $description); |
| 39 | 39 |
} |
| 40 | 40 |
|
| 41 |
$sec_anchor = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? '#'.SEC_ANCHOR.$section['section_id'] : 'section_'.$section_id );
|
|
| 41 |
$sSectionIdPrefix = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? SEC_ANCHOR : 'Sec' );
|
|
| 42 | 42 |
|
| 43 | 43 |
if (!function_exists('emailAdmin')) {
|
| 44 | 44 |
function emailAdmin() {
|
| ... | ... | |
| 266 | 266 |
<input name="save" type="submit" value="<?php echo $TEXT['SAVE']; ?>" style="width: 100px; margin-top: 5px;"> |
| 267 | 267 |
</td> |
| 268 | 268 |
<td align="right"> |
| 269 |
<input type="button" value="<?php echo $TEXT['CANCEL']; ?>" onclick="javascript: window.location = '<?php echo ADMIN_URL; ?>/pages/modify.php?page_id=<?php echo $page_id.$sec_anchor; ?>';" style="width: 100px; margin-top: 5px;" />
|
|
| 269 |
<input type="button" value="<?php echo $TEXT['CANCEL']; ?>" onclick="javascript: window.location = '<?php echo ADMIN_URL; ?>/pages/modify.php?page_id=<?php echo $page_id.'#'.$sSectionIdPrefix.$section_id; ?>';" style="width: 100px; margin-top: 5px;" />
|
|
| 270 | 270 |
</td> |
| 271 | 271 |
</tr> |
| 272 | 272 |
</table> |
| branches/2.8.x/wb/modules/form/htt/submessage.htt | ||
|---|---|---|
| 2 | 2 |
|
| 3 | 3 |
<div class="previewPrintTop"> |
| 4 | 4 |
<a title="{TEXT_PRINT_PAGE} ({TEXT_REQUIRED_JS})" href="javascript:window.print()">
|
| 5 |
{TEXT_PRINT_PAGE}<img width="16px" height="14px" alt="" src="{MODULE_URL}/htt/print.gif" />
|
|
| 5 |
<span>{TEXT_PRINT_PAGE}</span><img width="16" height="14" alt="" src="{MODULE_URL}/htt/print.gif" />
|
|
| 6 | 6 |
</a> |
| 7 | 7 |
</div> |
| 8 | 8 |
|
| ... | ... | |
| 13 | 13 |
</tr> |
| 14 | 14 |
</thead> |
| 15 | 15 |
<tbody class="frm-tbody"> |
| 16 |
<tr class="frm-warning {NIX_HIER}">
|
|
| 17 |
<td colspan="2"><p>{SUCCESS_PRINT}</p></td>
|
|
| 16 |
<tr class="frm-warning frm-warning-success-email {NIX_HIER}">
|
|
| 17 |
<td colspan="2"><p>{SUCCESS_PRINT}</p></td>
|
|
| 18 | 18 |
</tr> |
| 19 | 19 |
|
| 20 | 20 |
<tr class="frm-submission_submission_id"> |
| branches/2.8.x/wb/modules/form/save_field_new.php | ||
|---|---|---|
| 4 | 4 |
* @category module |
| 5 | 5 |
* @package Form |
| 6 | 6 |
* @author WebsiteBaker Project |
| 7 |
* @copyright 2009-2012, WebsiteBaker Org. e.V.
|
|
| 8 |
* @link http://www.websitebaker2.org/
|
|
| 7 |
* @copyright 2009-2013, WebsiteBaker Org. e.V.
|
|
| 8 |
* @link http://www.websitebaker.org/
|
|
| 9 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
| 10 | 10 |
* @platform WebsiteBaker 2.8.x |
| 11 | 11 |
* @requirements PHP 5.2.2 and higher |
| 12 | 12 |
* @version $Id$ |
| 13 |
* @filesource $HeadURL$
|
|
| 13 |
* @filesource $HeadURL$
|
|
| 14 | 14 |
* @lastmodified $Date$ |
| 15 | 15 |
* @description |
| 16 | 16 |
* http://devzone.zend.com/703/php-built-in-input-filtering/ |
| ... | ... | |
| 26 | 26 |
require(WB_PATH.'/modules/admin.php'); |
| 27 | 27 |
/* */ |
| 28 | 28 |
|
| 29 |
$sec_anchor = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? '#'.SEC_ANCHOR.$section['section_id'] : 'section_'.$section_id );
|
|
| 29 |
$sSectionIdPrefix = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? SEC_ANCHOR : 'Sec' );
|
|
| 30 | 30 |
|
| 31 | 31 |
// check FTAN |
| 32 | 32 |
if (!$admin->checkFTAN()) |
| 33 | 33 |
{
|
| 34 | 34 |
$admin->print_header(); |
| 35 |
$admin->print_error('::'.$MESSAGE['GENERIC_SECURITY_ACCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id.$sec_anchor);
|
|
| 35 |
$admin->print_error('::'.$MESSAGE['GENERIC_SECURITY_ACCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id.'#'.$sSectionIdPrefix.$section_id);
|
|
| 36 | 36 |
} |
| 37 | 37 |
|
| 38 | 38 |
// Get id |
| 39 | 39 |
$field_id = intval($admin->checkIDKEY('field_id', false ));
|
| 40 | 40 |
if (!$field_id) {
|
| 41 | 41 |
$admin->print_header(); |
| 42 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'].'::', ADMIN_URL.'/pages/modify.php?page_id='.$page_id.$sec_anchor);
|
|
| 42 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'].'::', ADMIN_URL.'/pages/modify.php?page_id='.$page_id.'#'.$sSectionIdPrefix.$section_id);
|
|
| 43 | 43 |
} |
| 44 | 44 |
// After check print the header to get a new FTAN |
| 45 | 45 |
$admin->print_header(); |
| branches/2.8.x/wb/modules/form/view.php | ||
|---|---|---|
| 151 | 151 |
} |
| 152 | 152 |
|
| 153 | 153 |
// do not use sec_anchor, can destroy some layouts |
| 154 |
//$sec_anchor = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? '#'.SEC_ANCHOR.$fetch_settings['section_id'] : 'section_'.$section_id ); |
|
| 155 | 154 |
|
| 156 | 155 |
// Get list of fields |
| 157 | 156 |
$sql = 'SELECT * FROM `'.TABLE_PREFIX.'mod_form_fields` '; |
| ... | ... | |
| 495 | 494 |
echo "</div>\n"; |
| 496 | 495 |
echo '<p class="frm-warning"><a href="'.htmlspecialchars(strip_tags($_SERVER['SCRIPT_NAME'])).'">'.$TEXT['BACK'].'</a></p>'."\n"; |
| 497 | 496 |
} else {
|
| 497 |
$success = false; |
|
| 498 | 498 |
// Check how many times form has been submitted in last hour |
| 499 | 499 |
$last_hour = time()-3600; |
| 500 | 500 |
$sql = 'SELECT `submission_id` FROM `'.TABLE_PREFIX.'mod_form_submissions` '; |
| branches/2.8.x/wb/modules/form/save_settings.php | ||
|---|---|---|
| 4 | 4 |
* @category module |
| 5 | 5 |
* @package Form |
| 6 | 6 |
* @author WebsiteBaker Project |
| 7 |
* @copyright 2009-2012, WebsiteBaker Org. e.V.
|
|
| 8 |
* @link http://www.websitebaker2.org/
|
|
| 7 |
* @copyright 2009-2013, WebsiteBaker Org. e.V.
|
|
| 8 |
* @link http://www.websitebaker.org/
|
|
| 9 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
| 10 | 10 |
* @platform WebsiteBaker 2.8.x |
| 11 | 11 |
* @requirements PHP 5.2.2 and higher |
| 12 | 12 |
* @version $Id$ |
| 13 |
* @filesource $HeadURL$
|
|
| 13 |
* @filesource $HeadURL$
|
|
| 14 | 14 |
* @lastmodified $Date$ |
| 15 | 15 |
* @description |
| 16 | 16 |
*/ |
| ... | ... | |
| 30 | 30 |
} |
| 31 | 31 |
$admin->print_header(); |
| 32 | 32 |
|
| 33 |
$sec_anchor = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? '#'.SEC_ANCHOR.$section['section_id'] : 'section_'.$section_id ); |
|
| 34 |
|
|
| 35 | 33 |
if (!function_exists('emailAdmin')) {
|
| 36 | 34 |
function emailAdmin() {
|
| 37 | 35 |
global $database,$admin; |
| ... | ... | |
| 109 | 107 |
if($max_submissions > $stored_submissions) {
|
| 110 | 108 |
$max_submissions = $stored_submissions; |
| 111 | 109 |
} |
| 112 |
$sec_anchor = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? '#'.SEC_ANCHOR.$section['section_id'] : 'section_'.$section_id );
|
|
| 110 |
$sSectionIdPrefix = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? SEC_ANCHOR : 'Sec' );
|
|
| 113 | 111 |
|
| 114 | 112 |
// Update settings |
| 115 | 113 |
$sql = 'UPDATE `'.TABLE_PREFIX.'mod_form_settings` SET '; |
| ... | ... | |
| 133 | 131 |
$sql .= 'WHERE `section_id` = '.(int)$section_id.' '; |
| 134 | 132 |
$sql .= ''; |
| 135 | 133 |
if($database->query($sql)) {
|
| 136 |
$admin->print_success($TEXT['SUCCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id.$sec_anchor);
|
|
| 134 |
$admin->print_success($TEXT['SUCCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id.'#'.$sSectionIdPrefix.$section_id);
|
|
| 137 | 135 |
} |
| 138 | 136 |
// Check if there is a db error, otherwise say successful |
| 139 | 137 |
if($database->is_error()) {
|
| 140 |
$admin->print_error($database->get_error(), ADMIN_URL.'/pages/modify.php?page_id='.$page_id.$sec_anchor);
|
|
| 138 |
$admin->print_error($database->get_error(), ADMIN_URL.'/pages/modify.php?page_id='.$page_id.'#'.$sSectionIdPrefix.$section_id);
|
|
| 141 | 139 |
} |
| 142 | 140 |
// Print admin footer |
| 143 | 141 |
$admin->print_footer(); |
| branches/2.8.x/wb/modules/form/languages/DE.php | ||
|---|---|---|
| 32 | 32 |
$MOD_FORM['EMAIL_SUBJECT'] = 'Sie haben eine Nachricht über {{WEBSITE_TITLE}} erhalten';
|
| 33 | 33 |
$MOD_FORM['SUCCESS_EMAIL_SUBJECT'] = 'Sie haben ein Forumlar über {{WEBSITE_TITLE}} gesendet';
|
| 34 | 34 |
|
| 35 |
$MOD_FORM['SUCCESS_EMAIL_TEXT'] = 'Vielen Dank für die Übermittlung Ihrer Nachricht an {{WEBSITE_TITLE}} ';
|
|
| 36 |
$MOD_FORM['SUCCESS_EMAIL_TEXT'] .= 'Wir setzen uns schnellstens mit Ihnen in Verbindung'; |
|
| 35 |
$MOD_FORM['SUCCESS_EMAIL_TEXT'] = 'Vielen Dank für die Übermittlung Ihrer Nachricht an {{WEBSITE_TITLE}}.';
|
|
| 36 |
$MOD_FORM['SUCCESS_EMAIL_TEXT'] .= 'Wir setzen uns schnellstens mit Ihnen in Verbindung.';
|
|
| 37 | 37 |
|
| 38 | 38 |
$MOD_FORM['SUCCESS_EMAIL_TEXT_GENERATED'] = "\n\n\n" |
| 39 | 39 |
."**************************************************************\n" |
| branches/2.8.x/wb/modules/form/frontend.css | ||
|---|---|---|
| 29 | 29 |
.frm-field_table input[type="submit"] { padding :0.1em 0.8em; }
|
| 30 | 30 |
.frm-warning a, |
| 31 | 31 |
p.frm-warning a { background :transparent; padding-left :0; }
|
| 32 |
fieldset.frm-fieldset { border :none; }
|
|
| 32 |
fieldset.frm-fieldset { border :none; margin :0%; padding :0%; }
|
|
| 33 |
.frm-warning-success-email { display :block; }
|
|
| 34 |
.previewPrintTop { float :right; }
|
|
| 35 |
.previewPrintTop span { display : none; }
|
|
| branches/2.8.x/wb/modules/form/view_submission.php | ||
|---|---|---|
| 4 | 4 |
* @category module |
| 5 | 5 |
* @package Form |
| 6 | 6 |
* @author Ryan Djurovich, WebsiteBaker Project |
| 7 |
* @copyright 2009-2012, WebsiteBaker Org. e.V.
|
|
| 8 |
* @link http://www.websitebaker2.org/
|
|
| 7 |
* @copyright 2009-2013, WebsiteBaker Org. e.V.
|
|
| 8 |
* @link http://www.websitebaker.org/
|
|
| 9 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
| 10 | 10 |
* @platform WebsiteBaker 2.8.x |
| 11 | 11 |
* @requirements PHP 5.2.2 and higher |
| 12 | 12 |
* @version $Id$ |
| 13 |
* @filesource $HeadURL$
|
|
| 13 |
* @filesource $HeadURL$
|
|
| 14 | 14 |
* @lastmodified $Date$ |
| 15 | 15 |
* @description |
| 16 | 16 |
*/ |
| ... | ... | |
| 58 | 58 |
$user['username'] = $TEXT['UNKNOWN']; |
| 59 | 59 |
} |
| 60 | 60 |
} |
| 61 |
//$sec_anchor = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? '#'.SEC_ANCHOR.$section['section_id'] : '' );
|
|
| 62 |
$sec_anchor = '#submissions';
|
|
| 61 |
//$sSectionIdPrefix = ( defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? '#'.SEC_ANCHOR : 'Sec' );
|
|
| 62 |
$sSectionIdPrefix = 'submissions';
|
|
| 63 | 63 |
?> |
| 64 | 64 |
<table class="frm-submission" summary="" cellpadding="0" cellspacing="0" border="0"> |
| 65 | 65 |
<tr> |
| ... | ... | |
| 88 | 88 |
|
| 89 | 89 |
<br /> |
| 90 | 90 |
|
| 91 |
<input type="button" value="<?php echo $TEXT['CLOSE']; ?>" onclick="javascript: window.location = '<?php echo ADMIN_URL; ?>/pages/modify.php?page=<?php echo $page?>&page_id=<?php echo $page_id.$sec_anchor; ?>';" style="width: 150px; margin-top: 5px;" />
|
|
| 92 |
<input type="button" value="<?php echo $TEXT['DELETE']; ?>" onclick="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo WB_URL; ?>/modules/form/delete_submission.php?page_id=<?php echo $page_id; ?>§ion_id=<?php echo $section_id; ?>&submission_id=<?php echo $admin->getIDKEY($submission_id).$sec_anchor; ?>');" style="width: 150px; margin-top: 5px;" />
|
|
| 91 |
<input type="button" value="<?php echo $TEXT['CLOSE']; ?>" onclick="javascript: window.location = '<?php echo ADMIN_URL; ?>/pages/modify.php?page=<?php echo $page?>&page_id=<?php echo $page_id.'#'.$sSectionIdPrefix; ?>';" style="width: 150px; margin-top: 5px;" />
|
|
| 92 |
<input type="button" value="<?php echo $TEXT['DELETE']; ?>" onclick="javascript: confirm_link('<?php echo $TEXT['ARE_YOU_SURE']; ?>', '<?php echo WB_URL; ?>/modules/form/delete_submission.php?page_id=<?php echo $page_id; ?>§ion_id=<?php echo $section_id; ?>&submission_id=<?php echo $admin->getIDKEY($submission_id).'#'.$sSectionIdPrefix; ?>');" style="width: 150px; margin-top: 5px;" />
|
|
| 93 | 93 |
<?php |
| 94 | 94 |
|
| 95 | 95 |
// Print admin footer |
| branches/2.8.x/wb/modules/form/modify.php | ||
|---|---|---|
| 4 | 4 |
* @category module |
| 5 | 5 |
* @package Form |
| 6 | 6 |
* @author WebsiteBaker Project |
| 7 |
* @copyright 2009-2012, WebsiteBaker Org. e.V.
|
|
| 8 |
* @link http://www.websitebaker2.org/
|
|
| 7 |
* @copyright 2009-2013, WebsiteBaker Org. e.V.
|
|
| 8 |
* @link http://www.websitebaker.org/
|
|
| 9 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
| 10 | 10 |
* @platform WebsiteBaker 2.8.x |
| 11 | 11 |
* @requirements PHP 5.2.2 and higher |
| 12 | 12 |
* @version $Id$ |
| 13 |
* @filesource $HeadURL$
|
|
| 13 |
* @filesource $HeadURL$
|
|
| 14 | 14 |
* @lastmodified $Date$ |
| 15 | 15 |
* @description |
| 16 | 16 |
*/ |
| ... | ... | |
| 35 | 35 |
|
| 36 | 36 |
include_once(WB_PATH.'/framework/functions.php'); |
| 37 | 37 |
|
| 38 |
$sec_anchor = (defined( 'SEC_ANCHOR' ) && ( SEC_ANCHOR != '' ) ? '#'.SEC_ANCHOR.$section['section_id'] : 'section_'.$section['section_id'] ); |
|
| 39 |
|
|
| 40 | 38 |
//Delete all form fields with no title |
| 41 | 39 |
$sql = 'DELETE FROM `'.TABLE_PREFIX.'mod_form_fields` '; |
| 42 | 40 |
$sql .= 'WHERE page_id = '.(int)$page_id.' '; |
| branches/2.8.x/wb/modules/form/add.php | ||
|---|---|---|
| 81 | 81 |
$sql .= '`use_captcha` = \''.$use_captcha.'\' '; |
| 82 | 82 |
$sql .= ''; |
| 83 | 83 |
if($database->query($sql)) {
|
| 84 |
// $admin->print_success($TEXT['SUCCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id.$sec_anchor); |
|
| 84 |
|
|
| 85 | 85 |
} |
| 86 | 86 |
} |
Also available in: Unified diff
! /modules/form/ beginning recoding