Пример #1
0
/**
 * Ensure the shared library files are up to date
 *
 * @param string $plugin
 */
function dolibs($plugin)
{
    setcd("wp-content", "plugins/{$plugin}");
    if (is_dir("libs")) {
        setcd("wp-content", "plugins/{$plugin}/libs");
        docontinue("in libs dir plugins/{$plugin}/libs");
        oik_require("libs/oik-libs.php", "oik-libs");
        oik_libs_compare($plugin);
    }
    cd2plugins();
}
Пример #2
0
            echo "Match";
        } else {
            echo "Master file needs updating";
        }
        echo PHP_EOL;
        echo PHP_EOL;
    }
    /**
     * Compare the library files between the pugin and the master
     * 
     * We consider this to be the master.
     */
    function oik_libs_compare($plugin)
    {
        $master_dir = __DIR__;
        //$master_dir = s
        $plugin_dir = dirname(dirname($master_dir)) . '/' . $plugin . "/libs";
        oik_libs_compare_libs($master_dir, $plugin_dir);
    }
    if (false) {
        if (false) {
            oik_libs_compare_libs("C:/apache/htdocs/wordpress/wp-content/plugins/oik-libs/libs", "C:/apache/htdocs/wordpress/wp-content/plugins/oik-bwtrace/libs");
        } else {
            oik_libs_compare("oik-bwtrace");
            oik_libs_compare("oik-lib");
            oik_libs_compare("oik");
            oik_libs_compare("oik-fum");
        }
    }
}
/* end if !defined */