Plugin Directory

Changeset 211853


Ignore:
Timestamp:
03/01/2010 01:38:23 PM (16 years ago)
Author:
frekel
Message:

Fix the bug of double array

Location:
wp-photocontest/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-photocontest/trunk/photocontest-add.php

    r194948 r211853  
    6161$photocontest_end_upload    = wppc_checkValidDate($_REQUEST['photocontest_end_upload'],date('Y-m-d', strtotime('+1 week')));
    6262$photocontest_contest_name  = wppc_checkString($_REQUEST['photocontest_contest_name']);
    63 $photocontest_intro_text    = wppc_checkString($_REQUEST['photocontest_intro_text'],array('a' => array('href' => array(),'title' => array()),'br' => array(),'em' => array(),'strong' => array()));
    64 $photocontest_enter_text    = wppc_checkString($_REQUEST['photocontest_enter_text'],array('a' => array('href' => array(),'title' => array()),'br' => array(),'em' => array(),'strong' => array()),'ul' => array()),'li' => array()),'ol' => array()));
     63$photocontest_intro_text    = wppc_checkString  (
     64                                                $_REQUEST['photocontest_intro_text'],
     65                                                    array(
     66                                                        'a' =>
     67                                                            array(
     68                                                                'href' => array(),
     69                                                                'title' => array()
     70                                                            ),
     71                                                        'br' => array(),
     72                                                        'em' => array(),
     73                                                        'strong' => array()
     74                                                    )
     75                                                );
     76$photocontest_enter_text    = wppc_checkString  (
     77                                                $_REQUEST['photocontest_enter_text'],
     78                                                    array(
     79                                                        'a' =>
     80                                                            array(
     81                                                                'href' => array(),
     82                                                                'title' => array()
     83                                                            ),
     84                                                        'br' => array(),
     85                                                        'em' => array(),
     86                                                        'strong' => array(),
     87                                                        'ul' => array(),
     88                                                        'li' => array(),
     89                                                        'ol' => array()
     90                                                    )
     91                                                );
    6592$photocontest_max_photos    = wppc_checkInteger($_REQUEST['photocontest_max_photos'],1);
    6693
  • wp-photocontest/trunk/readme.txt

    r193140 r211853  
    9898    `DROP TABLE IF EXISTS wp_photocontest_admin;`
    9999    `DROP TABLE IF EXISTS wp_photocontest_config;`
    100     `DROP TABLE IF EXISTS photocontest_votes;`
     100    `DROP TABLE IF EXISTS wp_photocontest_votes;`
    101101    `DELETE FROM wp_options WHERE option_name = 'wppc_redirect_to' LIMIT 1;`
    102102    `DELETE FROM wp_options WHERE option_name = 'PC_DB_VERSION' LIMIT 1;`
     
    120120DROP TABLE IF EXISTS wp_photocontest_admin;
    121121DROP TABLE IF EXISTS wp_photocontest_config;
    122 DROP TABLE IF EXISTS photocontest_votes;
     122DROP TABLE IF EXISTS wp_photocontest_votes;
    123123DELETE FROM wp_options WHERE option_name = 'wppc_redirect_to' LIMIT 1;
    124124DELETE FROM wp_options WHERE option_name = 'PC_DB_VERSION' LIMIT 1;
Note: See TracChangeset for help on using the changeset viewer.