Plugin Directory

Changeset 226320


Ignore:
Timestamp:
04/08/2010 09:29:05 AM (16 years ago)
Author:
Zamango
Message:

bugfix: fix wrong function pointer definition
changes: bump version up to 1.1

Location:
zamango-money-extractor/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • zamango-money-extractor/trunk/readme.txt

    r225963 r226320  
    66Tested up to: 2.9.2
    77Donate link: http://www.zamango.com
    8 Version: 1.0
    9 Stable tag: 1.0
     8Version: 1.1
     9Stable tag: 1.1
    1010
    1111'Zamango Money Extractor' creates your own casual games storefront with
     
    100100
    101101== Changelog ==
     102
     103= 1.1 =
     104* Bugfix: fix wrong function pointer definition
    102105
    103106= 1.0 =
  • zamango-money-extractor/trunk/zmg_admin.php

    r225964 r226320  
    2626if (!class_exists('zmg_admin'))
    2727{
    28     define('ZMG_ADMIN', '1.0');
     28    define('ZMG_ADMIN', '1.1');
    2929    define('ZMG_ADMIN_DIR_NAME', basename(dirname(__FILE__)));
    3030    define('ZMG_ADMIN_URL', WP_PLUGIN_URL . '/' . ZMG_ADMIN_DIR_NAME);
     
    281281                        stripslashes($_POST[$opt_name]);
    282282
    283                     if (isset($options["regs"]))
    284                         foreach ($options["regs"] as $reg)
     283                    if (isset($option["regs"]))
     284                        foreach ($option["regs"] as $reg)
    285285                            if (! preg_match($reg, $this->options[$opt_name]))
    286286                    {
  • zamango-money-extractor/trunk/zmg_money_extractor.php

    r225964 r226320  
    1111Description: Creates casual games storefront at your WordPress.
    1212Author: Zamango
    13 Version: 1.0
     13Version: 1.1
    1414Requires at least: 2.8
    1515Author URI: http://www.zamango.com/
     
    2525    {
    2626        var $hook        = 'zmg-money-extractor';
    27         var $version     = '1.0';
     27        var $version     = '1.1';
    2828        var $page_title  = 'Money Extractor';
    2929        var $menu_title  = 'Money Extractor';
  • zamango-money-extractor/trunk/zmg_money_extractor_defaults.php

    r225964 r226320  
    66 */
    77
     8    load_plugin_textdomain($this->hook,
     9                           $this->plugin_url,
     10                           $this->dir_name);
     11
    812    $this->default_options =  array(
    913        "username"         => array(
    1014            "default"      => __('enter username here', $this->hook),
    1115            "minlen"       => 1,
    12             "stoper"       => function() {
    13                 return ! isset($_POST['ZMG_UPDATE']);
    14             }
     16            "stoper"       => create_function('',
     17                'return ! isset($_POST[\'ZMG_UPDATE\']);')
    1518        ),
    1619        "channel"          => array(
    1720            "default"      => __('enter channel name here', $this->hook),
    1821            "minlen"       => 1,
    19             "stoper"       => function() {
    20                 return ! isset($_POST['ZMG_UPDATE']);
    21             }
     22            "stoper"       => create_function('',
     23                'return ! isset($_POST[\'ZMG_UPDATE\']);')
    2224        ),
    2325        "language"         => array(
     
    2628        "root_category"    => array(
    2729            "default"      => 0,
    28             "regs"         => array('/^\d+$/'),
    29             "callback"     => function (&$obj) {
    30                 if ($obj->options['root_category'] == -1)
    31                     $obj->options['root_category'] = 0;
    32             },
    33             "stoper"       => function() {
    34                 return ! isset($_POST['ZMG_UPDATE']);
    35             }
     30            "regs"         => array('/^-?\d+$/'),
     31            "callback"     => create_function ('&$obj',
     32                'if ($obj->options[\'root_category\'] == -1)
     33                    $obj->options[\'root_category\'] = 0;'),
     34            "stoper"       => create_function('',
     35                'return ! isset($_POST[\'ZMG_UPDATE\']);')
    3636        ),
    3737        "hierarchical"     => array(
    3838            "default"      => 1,
    3939            "definedornot" => 1,
    40             "stoper"       => function() {
    41                 return ! isset($_POST['ZMG_UPDATE']);
    42             }
     40            "stoper"       => create_function('',
     41                'return ! isset($_POST[\'ZMG_UPDATE\']);')
    4342        ),
    4443        "publish"          => array(
    4544            "default"      => 1,
    4645            "definedornot" => 1,
    47             "stoper"       => function() {
    48                 return ! isset($_POST['ZMG_UPDATE']);
    49             }
     46            "stoper"       => create_function('',
     47                'return ! isset($_POST[\'ZMG_UPDATE\']);')
    5048        ),
    5149        "tags_type"        => array(
    5250            "default"      => 1,
    5351            "definedornot" => 1,
    54             "stoper"       => function() {
    55                 return ! isset($_POST['ZMG_UPDATE']);
    56             }
     52            "stoper"       => create_function('',
     53                'return ! isset($_POST[\'ZMG_UPDATE\']);')
    5754        ),
    5855        "tags_genre"       => array(
    5956            "default"      => 1,
    6057            "definedornot" => 1,
    61             "stoper"       => function() {
    62                 return ! isset($_POST['ZMG_UPDATE']);
    63             }
     58            "stoper"       => create_function('',
     59                'return ! isset($_POST[\'ZMG_UPDATE\']);')
    6460        ),
    6561        "tags_company"     => array(
    6662            "default"      => 1,
    6763            "definedornot" => 1,
    68             "stoper"       => function() {
    69                 return ! isset($_POST['ZMG_UPDATE']);
    70             }
     64            "stoper"       => create_function('',
     65                'return ! isset($_POST[\'ZMG_UPDATE\']);')
    7166        ),
    7267        "last_pubdate"     => array(
     
    8479            "default"      => 32,
    8580            "regs"         => array('/^(0|24|32|48|64)$/'),
    86             "stoper"       => function() {
    87                 return ! isset($_POST['ZMG_UPDATE']);
    88             }
     81            "stoper"       => create_function('',
     82                'return ! isset($_POST[\'ZMG_UPDATE\']);')
    8983        ),
    9084        "button_bg"        => array(
    9185            "default"      => 'transparent',
    9286            "regs"         => array('/^(transparent|#[0-9A-Fa-f]{6})$/'),
    93             "stoper"       => function() {
    94                 return ! isset($_POST['ZMG_UPDATE']);
    95             }
     87            "stoper"       => create_function('',
     88                'return ! isset($_POST[\'ZMG_UPDATE\']);')
    9689        ),
    9790        "button_src"       => array(
    9891            "default"      => '',
    9992            "required"     => 1,
    100             "stoper"       => function() {
    101                 return ! isset($_POST['ZMG_UPDATE']);
    102             }
     93            "stoper"       => create_function('',
     94                'return ! isset($_POST[\'ZMG_UPDATE\']);')
    10395        ),
    10496        "buy_size"         => array(
    10597            "default"      => 32,
    10698            "regs"         => array('/^(0|24|32|48|64)$/'),
    107             "stoper"       => function() {
    108                 return ! isset($_POST['ZMG_UPDATE']);
    109             }
     99            "stoper"       => create_function('',
     100                'return ! isset($_POST[\'ZMG_UPDATE\']);')
    110101        ),
    111102        "buy_bg"           => array(
    112103            "default"      => 'transparent',
    113104            "regs"         => array('/^(transparent|#[0-9A-Fa-f]{6})$/'),
    114             "stoper"       => function() {
    115                 return ! isset($_POST['ZMG_UPDATE']);
    116             }
     105            "stoper"       => create_function('',
     106                'return ! isset($_POST[\'ZMG_UPDATE\']);')
    117107        ),
    118108        "buy_src"          => array(
    119109            "default"      => '',
    120110            "required"     => 1,
    121             "stoper"       => function() {
    122                 return ! isset($_POST['ZMG_UPDATE']);
    123             }
     111            "stoper"       => create_function('',
     112                'return ! isset($_POST[\'ZMG_UPDATE\']);')
    124113        ),
    125114        "show_on_admin"    => array(
     
    150139        "random_words"     => array(
    151140            "default"      => array(),
    152             "callback"     => function (&$obj){
    153                 $obj->options['random_words'] =
    154                     explode(',', stripslashes($_POST['random_words']));
    155             }
     141            "callback"     => create_function ('&$obj',
     142                '$obj->options[\'random_words\'] =' .
     143                    'explode(\',\', stripslashes($_POST[\'random_words\']));')
    156144        ),
    157145        "excerpt"          => array(
Note: See TracChangeset for help on using the changeset viewer.