Changeset 14411

Show
Ignore:
Timestamp:
06/23/07 08:48:39 (1 year ago)
Author:
GamerZ
Message:

WP 2.21 first commit

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wp-polls/trunk/polls/polls-add.php

    r10838 r14411  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.1 Plugin: WP-Polls 2.20                                                           | 
     5|     WordPress 2.1 Plugin: WP-Polls 2.21                                                           | 
    66|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
  • wp-polls/trunk/polls/polls-admin-ajax.php

    r8038 r14411  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.1 Plugin: WP-Polls 2.20                                                           | 
     5|     WordPress 2.1 Plugin: WP-Polls 2.21                                                           | 
    66|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
  • wp-polls/trunk/polls/polls-admin-js.php

    r7967 r14411  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.1 Plugin: WP-Polls 2.20                                                           | 
     5|     WordPress 2.1 Plugin: WP-Polls 2.21                                                           | 
    66|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
  • wp-polls/trunk/polls/polls-css.css

    r11588 r14411  
    22+----------------------------------------------------------------+ 
    33|                                                                                                                                         | 
    4 |     WordPress 2.0 Plugin: WP-Polls 2.20                                                           | 
     4|     WordPress 2.0 Plugin: WP-Polls 2.21                                                           | 
    55|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    66|                                                                                                                                         | 
  • wp-polls/trunk/polls/polls-js.php

    r10838 r14411  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.1 Plugin: WP-Polls 2.20                                                           | 
     5|     WordPress 2.1 Plugin: WP-Polls 2.21                                                           | 
    66|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
  • wp-polls/trunk/polls/polls-logs.php

    r13476 r14411  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.1 Plugin: WP-Polls 2.20                                                           | 
     5|     WordPress 2.1 Plugin: WP-Polls 2.21                                                           | 
    66|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
  • wp-polls/trunk/polls/polls-manager.php

    r12943 r14411  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.1 Plugin: WP-Polls 2.20                                                           | 
     5|     WordPress 2.1 Plugin: WP-Polls 2.21                                                           | 
    66|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
  • wp-polls/trunk/polls/polls-options.php

    r10942 r14411  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.1 Plugin: WP-Polls 2.20                                                           | 
     5|     WordPress 2.1 Plugin: WP-Polls 2.21                                                           | 
    66|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
  • wp-polls/trunk/polls/polls-templates.php

    r13545 r14411  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.1 Plugin: WP-Polls 2.20                                                           | 
     5|     WordPress 2.1 Plugin: WP-Polls 2.21                                                           | 
    66|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
  • wp-polls/trunk/polls/polls-uninstall.php

    r10942 r14411  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.1 Plugin: WP-Polls 2.20                                                           | 
     5|     WordPress 2.1 Plugin: WP-Polls 2.21                                                           | 
    66|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
     
    2929$mode = trim($_GET['mode']); 
    3030$polls_tables = array($wpdb->pollsq, $wpdb->pollsa, $wpdb->pollsip); 
    31 $polls_settings = array('poll_template_voteheader', 'poll_template_votebody', 'poll_template_votefooter', 'poll_template_resultheader', 
    32                                                 'poll_template_resultbody', 'poll_template_resultbody2', 'poll_template_resultfooter', 'poll_template_resultfooter2',  
    33                                                 'poll_template_disable', 'poll_template_error', 'poll_currentpoll', 'poll_latestpoll',  
    34                                                 'poll_archive_perpage', 'poll_ans_sortby', 'poll_ans_sortorder', 'poll_ans_result_sortby',  
    35                                                 'poll_ans_result_sortorder', 'poll_logging_method', 'poll_allowtovote', 'poll_archive_show', 
    36                                                 'poll_archive_url', 'poll_bar', 'poll_close', 'poll_ajax_style', 'poll_template_pollarchivelink', 'widget_polls', 'poll_archive_displaypoll', 'poll_archive_pollarchiveheader', 'poll_archive_pollarchivefooter'); 
     31$polls_settings = array('poll_template_voteheader', 'poll_template_votebody', 'poll_template_votefooter', 'poll_template_resultheader', 'poll_template_resultbody', 'poll_template_resultbody2', 'poll_template_resultfooter', 'poll_template_resultfooter2',  'poll_template_disable', 'poll_template_error', 'poll_currentpoll', 'poll_latestpoll', 'poll_archive_perpage', 'poll_ans_sortby', 'poll_ans_sortorder', 'poll_ans_result_sortby', 'poll_ans_result_sortorder', 'poll_logging_method', 'poll_allowtovote', 'poll_archive_show', 'poll_archive_url', 'poll_bar', 'poll_close', 'poll_ajax_style', 'poll_template_pollarchivelink', 'widget_polls', 'poll_archive_displaypoll', 'poll_template_pollarchiveheader', 'poll_template_pollarchivefooter'); 
     32 
    3733 
    3834### Form Processing  
     
    7874            //  Deactivating WP-Polls (By: Philippe Corbes) 
    7975            case 'end-UNINSTALL': 
    80                   $deactivate_url = "plugins.php?action=deactivate&plugin=polls/polls.php"
     76                  $deactivate_url = 'plugins.php?action=deactivate&plugin=polls/polls.php'
    8177                  if(function_exists('wp_nonce_url')) {  
    8278                        $deactivate_url = wp_nonce_url($deactivate_url, 'deactivate-plugin_polls/polls.php'); 
  • wp-polls/trunk/polls/polls-usage.php

    r10838 r14411  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.1 Plugin: WP-Polls 2.20                                                           | 
     5|     WordPress 2.1 Plugin: WP-Polls 2.21                                                           | 
    66|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
  • wp-polls/trunk/polls/polls-widget.php

    r13476 r14411  
    44Plugin URI: http://www.lesterchan.net/portfolio/programming.php 
    55Description: Adds a Poll Widget to display single or multiple polls from WP-Polls Plugin. You will need to activate WP-Polls first. 
    6 Version: 2.20 
     6Version: 2.21 
    77Author: Lester 'GaMerZ' Chan 
    88Author URI: http://www.lesterchan.net 
     
    6767                  $poll_currentpoll = intval($_POST['poll_currentpoll']); 
    6868                  $poll_archive_show = intval($_POST['poll_archive_show']);          
    69                   $options['title'] = strip_tags(stripslashes($_POST['polls-title'])); 
     69                  $options['title'] = strip_tags(addslashes($_POST['polls-title'])); 
    7070                  if(is_array($_POST['poll_multiplepolls'])) { 
    7171                        $options['multiple_polls'] = implode(',', $_POST['poll_multiplepolls']); 
     
    9494            <?php 
    9595            echo '<p style="text-align: left;"><label for="polls-title">'; 
    96             _e('Title'); 
    97             echo ': </label><input type="text" id="polls-title" name="polls-title" value="'.htmlspecialchars($options['title']).'" />'."\n"; 
     96            _e('Title', 'wp-polls'); 
     97            echo ': </label><input type="text" id="polls-title" name="polls-title" value="'.htmlspecialchars(stripslashes($options['title'])).'" /></p>'."\n"; 
    9898            echo '<p style="text-align: left;"><label for="polls-displayarchive">'; 
    9999            _e('Display Polls Archive Link Below Poll?', 'wp-polls'); 
     
    103103            selected('0', get_option('poll_archive_show')); 
    104104            echo '>'; 
    105             _e('No'); 
     105            _e('No', 'wp-polls'); 
    106106            echo '</option>'."\n"; 
    107107            echo '<option value="1"'; 
    108108            selected('1', get_option('poll_archive_show')); 
    109109            echo '>'; 
    110             _e('Yes'); 
     110            _e('Yes', 'wp-polls'); 
    111111            echo '</option>'."\n"; 
    112112            echo '</select></p>'."\n"; 
  • wp-polls/trunk/polls/polls.php

    r13770 r14411  
    44Plugin URI: http://www.lesterchan.net/portfolio/programming.php 
    55Description: Adds an AJAX poll system to your WordPress blog. You can easily include a poll into your WordPress's blog post/page. WP-Polls is extremely customizable via templates and css styles and there are tons of options for you to choose to ensure that WP-Polls runs the way you wanted. It now supports multiple selection of answers. 
    6 Version: 2.20 
     6Version: 2.21 
    77Author: Lester 'GaMerZ' Chan 
    88Author URI: http://www.lesterchan.net 
     
    10861086function vote_poll() { 
    10871087      global $wpdb, $user_identity, $user_ID; 
    1088       header('Content-Type: text/html; charset='.get_option('blog_charset').''); 
    10891088      if(!empty($_POST['vote'])) { 
     1089            header('Content-Type: text/html; charset='.get_option('blog_charset').''); 
    10901090            $poll_id = intval($_POST['poll_id']); 
    10911091            $poll_aid = $_POST["poll_$poll_id"]; 
  • wp-polls/trunk/polls/wp-polls.pot

    r13770 r14411  
    11msgid "" 
    22msgstr "" 
    3 "Project-Id-Version: WP-Polls 2.20\n" 
     3"Project-Id-Version: WP-Polls 2.21\n" 
    44"POT-Creation-Date: \n" 
    5 "PO-Revision-Date: 2007-06-10 23:28+0800\n" 
     5"PO-Revision-Date: 2007-06-23 15:56+0800\n" 
    66"Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 
    77"Language-Team: Ravan <ravanhagen@gmail.com>\n" 
     
    105105#: polls-options.php:214 
    106106#: polls-options.php:325 
    107 #: polls-uninstall.php:134 
     107#: polls-uninstall.php:130 
    108108#: polls-widget.php:110 
    109109msgid "Yes" 
     
    12701270msgstr "" 
    12711271 
    1272 #: polls-uninstall.php:43 
    1273 #: polls-uninstall.php:135 
     1272#: polls-uninstall.php:39 
     1273#: polls-uninstall.php:131 
    12741274msgid "UNINSTALL WP-Polls" 
    12751275msgstr "" 
    12761276 
    1277 #: polls-uninstall.php:50 
     1277#: polls-uninstall.php:46 
    12781278#, php-format 
    12791279msgid "Table '%s' has been deleted." 
    12801280msgstr "" 
    12811281 
     1282#: polls-uninstall.php:55 
     1283#, php-format 
     1284msgid "Setting Key '%s' has been deleted." 
     1285msgstr "" 
     1286 
    12821287#: polls-uninstall.php:59 
    12831288#, php-format 
    1284 msgid "Setting Key '%s' has been deleted." 
    1285 msgstr "" 
    1286  
    1287 #: polls-uninstall.php:63 
    1288 #, php-format 
    12891289msgid "Error deleting Setting Key '%s'." 
    12901290msgstr "" 
    12911291 
    1292 #: polls-uninstall.php:85 
    1293 #: polls-uninstall.php:95 
     1292#: polls-uninstall.php:81 
     1293#: polls-uninstall.php:91 
    12941294#: polls.php:59 
    12951295msgid "Uninstall WP-Polls" 
    12961296msgstr "" 
    12971297 
    1298 #: polls-uninstall.php:86 
     1298#: polls-uninstall.php:82 
    12991299#, php-format 
    13001300msgid "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-Polls Will Be Deactivated Automatically." 
    13011301msgstr "" 
    13021302 
     1303#: polls-uninstall.php:93 
     1304msgid "Deactivating WP-Polls plugin does not remove any data that may have been created, such as the poll data and the poll's voting logs. To completely remove this plugin, you can uninstall it here." 
     1305msgstr "" 
     1306 
     1307#: polls-uninstall.php:96 
     1308msgid "WARNING:" 
     1309msgstr "" 
     1310 
    13031311#: polls-uninstall.php:97 
    1304 msgid "Deactivating WP-Polls plugin does not remove any data that may have been created, such as the poll data and the poll's voting logs. To completely remove this plugin, you can uninstall it here." 
     1312msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first." 
    13051313msgstr "" 
    13061314 
    13071315#: polls-uninstall.php:100 
    1308 msgid "WARNING:" 
    1309 msgstr "" 
    1310  
    1311 #: polls-uninstall.php:101 
    1312 msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first." 
     1316msgid "The following WordPress Options/Tables will be DELETED:" 
    13131317msgstr "" 
    13141318 
    13151319#: polls-uninstall.php:104 
    1316 msgid "The following WordPress Options/Tables will be DELETED:" 
    1317 msgstr "" 
    1318  
    1319 #: polls-uninstall.php:108 
    13201320msgid "WordPress Options" 
    13211321msgstr "" 
    13221322 
    1323 #: polls-uninstall.php:109 
     1323#: polls-uninstall.php:105 
    13241324msgid "WordPress Tables" 
    13251325msgstr "" 
    13261326 
    1327 #: polls-uninstall.php:135 
     1327#: polls-uninstall.php:131 
    13281328msgid "" 
    13291329"You Are About To Uninstall WP-Polls From WordPress.\\n" 
  • wp-polls/trunk/readme.html

    r13476 r14411  
    33<head>       
    44      <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
    5       <title>WP-Polls 2.20 Readme</title> 
     5      <title>WP-Polls 2.21 Readme</title> 
    66      <style type="text/css" media="screen"> 
    77            /* Default Style */ 
     
    205205<div id="Container"> 
    206206      <!-- Title --> 
    207       <div id="Title">WP-Polls 2.20&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div> 
     207      <div id="Title">WP-Polls 2.21&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div> 
    208208 
    209209      <!-- Tabs --> 
     
    228228                        <script type="text/javascript"> 
    229229                              /* <![CDATA[*/ 
    230                               document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-Polls%202.20%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>'); 
     230                              document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-Polls%202.21%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>'); 
    231231                              /* ]]> */ 
    232232                        </script> 
     
    242242                  <p> 
    243243                        <strong>Download:</strong><br /> 
    244                         <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads.php?id=10" title="http://www.lesterchan.net/others/downloads.php?id=10">WP-Polls 2.20 For WordPress 2.1.x And Above</a><br /> 
     244                        <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads.php?id=10" title="http://www.lesterchan.net/others/downloads.php?id=10">WP-Polls 2.21 For WordPress 2.1.x And Above</a><br /> 
    245245                        <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads/wp-polls213.zip" title="http://www.lesterchan.net/others/downloads/wp-polls213.zip">WP-Polls 2.13 For WordPress 2.0.x</a><br /> 
    246246                        <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads/wp-polls202a.zip" title="http://www.lesterchan.net/others/downloads/wp-polls202a.zip">WP-Polls 2.02a For WordPress 1.5.2</a> 
     
    269269                  <p> 
    270270                        <strong>Updated:</strong><br /> 
    271                         <strong>&raquo;</strong> 1st June 2007 
     271                        <strong>&raquo;</strong> 1st October 2007 
    272272                  </p> 
    273273                  <p> 
     
    292292                  <div class="SubTitle">&raquo; Changelog</div> 
    293293                  <ul> 
     294                        <li> 
     295                              <strong>Version 2.21 (01-10-2007)</strong> 
     296                              <ul> 
     297                                    <li>FIXED: Some Text Not Translated In Polls Widget</li> 
     298                                    <li>FIXED: 2 Wrong Options Name In Polls Uninstall</li> 
     299                              </ul> 
     300                        </li> 
    294301                        <li> 
    295302                              <strong>Version 2.20 (01-06-2007)</strong> 
     
    489496            <div id="Upgrade" style="display: none;"> 
    490497                  <div class="SubTitle">&raquo; Upgrade Instructions</div> 
    491                   <div class="SubSubTitle">From v2.xx To v2.20</div> 
     498                  <div class="SubSubTitle">From v2.xx To v2.21</div> 
    492499                  <ol> 
    493500                        <li> 
     
    669676      </div> 
    670677</div> 
    671 <p id="Copyright">WP-Polls 2.20<br />Copyright &copy; 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p> 
     678<p id="Copyright">WP-Polls 2.21<br />Copyright &copy; 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p> 
    672679</body> 
    673680</html>