Changeset 17866
- Timestamp:
- 09/04/07 16:22:50 (10 months ago)
- Files:
-
- wp-polls/trunk/polls/polls.php (modified) (3 diffs)
- wp-polls/trunk/polls/wp-polls.mo (modified) (previous)
- wp-polls/trunk/polls/wp-polls.pot (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-polls/trunk/polls/polls.php
r17685 r17866 125 125 if($poll_active == 0) { 126 126 $poll_close = intval(get_option('poll_close')); 127 } else { 128 $poll_close = 0; 127 129 } 128 130 if($check_voted > 0 || ($poll_active == 0 && $poll_close == 1) || !check_allowtovote()) { … … 305 307 // Check IP From IP Logging Database 306 308 $get_voted_aids = $wpdb->get_col("SELECT pollip_aid FROM $wpdb->pollsip WHERE pollip_qid = $poll_id AND pollip_ip = '".get_ipaddress()."'"); 307 return $get_voted_aids; 309 if($get_voted_aids) { 310 return $get_voted_aids; 311 } else { 312 return 0; 313 } 308 314 } 309 315 … … 319 325 // Check User ID From IP Logging Database 320 326 $get_voted_aids = $wpdb->get_col("SELECT pollip_aid FROM $wpdb->pollsip WHERE pollip_qid = $poll_id AND pollip_userid = $pollsip_userid"); 321 return $get_voted_aids; 327 if($get_voted_aids) 328 return $get_voted_aids; 329 } else { 330 return 0; 331 } 322 332 } 323 333 wp-polls/trunk/polls/wp-polls.pot
r17685 r17866 3 3 "Project-Id-Version: WP-Polls 2.21\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2007-09-0 1 14:09+0800\n"5 "PO-Revision-Date: 2007-09-05 00:22+0800\n" 6 6 "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 7 7 "Language-Team: Ravan <ravanhagen@gmail.com>\n" … … 415 415 #: polls-manager.php:489 416 416 #: polls-manager.php:497 417 #: polls.php:3 37418 #: polls.php:3 42419 #: polls.php:4 53420 #: polls.php:4 58421 #: polls.php:8 35422 #: polls.php:8 39417 #: polls.php:347 418 #: polls.php:352 419 #: polls.php:463 420 #: polls.php:468 421 #: polls.php:845 422 #: polls.php:849 423 423 #, php-format 424 424 msgid "%s @ %s" … … 584 584 #: polls-templates.php:116 585 585 #: polls-templates.php:119 586 #: polls.php:13 03587 #: polls.php:13 06586 #: polls.php:1313 587 #: polls.php:1316 588 588 msgid "Total Voters" 589 589 msgstr "" … … 598 598 599 599 #: polls-manager.php:495 600 #: polls.php:3 40601 #: polls.php:4 56602 #: polls.php:8 37600 #: polls.php:350 601 #: polls.php:466 602 #: polls.php:847 603 603 msgid "No Expiry" 604 604 msgstr "" … … 826 826 #: polls-templates.php:110 827 827 #: polls-templates.php:113 828 #: polls.php:13 00829 #: polls.php:13 01828 #: polls.php:1310 829 #: polls.php:1311 830 830 msgid "Votes" 831 831 msgstr "" … … 1015 1015 #: polls-templates.php:104 1016 1016 #: polls-templates.php:119 1017 #: polls.php:1 2941018 #: polls.php:13 071017 #: polls.php:1304 1018 #: polls.php:1317 1019 1019 msgid "Vote" 1020 1020 msgstr "" 1021 1021 1022 1022 #: polls-templates.php:104 1023 #: polls.php:1 2951023 #: polls.php:1305 1024 1024 msgid "View Results Of This Poll" 1025 1025 msgstr "" 1026 1026 1027 1027 #: polls-templates.php:104 1028 #: polls.php:1 2951028 #: polls.php:1305 1029 1029 msgid "View Results" 1030 1030 msgstr "" 1031 1031 1032 1032 #: polls-templates.php:113 1033 #: polls.php:13 011033 #: polls.php:1311 1034 1034 msgid "You Have Voted For This Choice" 1035 1035 msgstr "" 1036 1036 1037 1037 #: polls-templates.php:119 1038 #: polls.php:13 071038 #: polls.php:1317 1039 1039 msgid "Vote For This Poll" 1040 1040 msgstr "" … … 1042 1042 #: polls-templates.php:122 1043 1043 #: polls-usage.php:80 1044 #: polls.php:13 341044 #: polls.php:1344 1045 1045 msgid "Polls Archive" 1046 1046 msgstr "" … … 1055 1055 1056 1056 #: polls-templates.php:131 1057 #: polls.php:13 091057 #: polls.php:1319 1058 1058 msgid "Sorry, there are no polls available at the moment." 1059 1059 msgstr "" 1060 1060 1061 1061 #: polls-templates.php:134 1062 #: polls.php:13 101062 #: polls.php:1320 1063 1063 msgid "An error has occurred when processing your poll." 1064 1064 msgstr "" … … 1513 1513 msgstr "" 1514 1514 1515 #: polls.php:19 61516 #: polls.php:20 21515 #: polls.php:198 1516 #: polls.php:204 1517 1517 msgid "Poll" 1518 1518 msgstr "" 1519 1519 1520 #: polls.php:20 31520 #: polls.php:205 1521 1521 msgid "Insert Poll" 1522 1522 msgstr "" 1523 1523 1524 #: polls.php:4 181525 #: polls.php:5 781524 #: polls.php:428 1525 #: polls.php:588 1526 1526 msgid "Loading" 1527 1527 msgstr "" 1528 1528 1529 #: polls.php:6 211529 #: polls.php:631 1530 1530 msgid "Note: There is a poll embedded within this post, please visit the site to participate in this post's poll." 1531 1531 msgstr "" 1532 1532 1533 #: polls.php:9 641533 #: polls.php:974 1534 1534 msgid "Previous Page" 1535 1535 msgstr "" 1536 1536 1537 #: polls.php:9 721537 #: polls.php:982 1538 1538 msgid "Next Page" 1539 1539 msgstr "" 1540 1540 1541 #: polls.php:9 811541 #: polls.php:991 1542 1542 msgid "Pages" 1543 1543 msgstr "" 1544 1544 1545 #: polls.php:9 831545 #: polls.php:993 1546 1546 msgid "Go to First Page" 1547 1547 msgstr "" 1548 1548 1549 #: polls.php:9 831549 #: polls.php:993 1550 1550 msgid "First" 1551 1551 msgstr "" 1552 1552 1553 #: polls.php:9 861554 #: polls.php: 9981553 #: polls.php:996 1554 #: polls.php:1008 1555 1555 msgid "Go to Page" 1556 1556 msgstr "" 1557 1557 1558 #: polls.php: 9931558 #: polls.php:1003 1559 1559 msgid "Page" 1560 1560 msgstr "" 1561 1561 1562 #: polls.php:10 011562 #: polls.php:1011 1563 1563 msgid "Go to Last Page" 1564 1564 msgstr "" 1565 1565 1566 #: polls.php:10 011566 #: polls.php:1011 1567 1567 msgid "Last" 1568 1568 msgstr "" 1569 1569 1570 #: polls.php:11 741570 #: polls.php:1184 1571 1571 #, php-format 1572 1572 msgid "Unable To Update Poll Total Votes And Poll Total Voters. Poll ID #%s" 1573 1573 msgstr "" 1574 1574 1575 #: polls.php:11 781575 #: polls.php:1188 1576 1576 #, php-format 1577 1577 msgid "You Had Already Voted For This Poll. Poll ID #%s" 1578 1578 msgstr "" 1579 1579 1580 #: polls.php:11 821580 #: polls.php:1192 1581 1581 #, php-format 1582 1582 msgid "Invalid Poll ID. Poll ID #%s" 1583 1583 msgstr "" 1584 1584 1585 #: polls.php:1208 1586 #: polls.php:1210 1585 #: polls.php:1218 1587 1586 #: polls.php:1220 1587 #: polls.php:1230 1588 1588 msgid "WP-Polls" 1589 1589 msgstr "" 1590 1590 1591 #: polls.php:12 221591 #: polls.php:1232 1592 1592 msgid "polls were created." 1593 1593 msgstr "" 1594 1594 1595 #: polls.php:12 231595 #: polls.php:1233 1596 1596 msgid "polls' answers were given." 1597 1597 msgstr "" 1598 1598 1599 #: polls.php:12 241599 #: polls.php:1234 1600 1600 msgid "votes were casted." 1601 1601 msgstr "" 1602 1602 1603 #: polls.php:12 781603 #: polls.php:1288 1604 1604 msgid "How Is My Site?" 1605 1605 msgstr "" 1606 1606 1607 #: polls.php:12 811607 #: polls.php:1291 1608 1608 msgid "Good" 1609 1609 msgstr "" 1610 1610 1611 #: polls.php:12 821611 #: polls.php:1292 1612 1612 msgid "Excellent" 1613 1613 msgstr "" 1614 1614 1615 #: polls.php:12 831615 #: polls.php:1293 1616 1616 msgid "Bad" 1617 1617 msgstr "" 1618 1618 1619 #: polls.php:12 841619 #: polls.php:1294 1620 1620 msgid "Can Be Improved" 1621 1621 msgstr "" 1622 1622 1623 #: polls.php:12 851623 #: polls.php:1295 1624 1624 msgid "No Comments" 1625 1625 msgstr ""
