当前位置: 首页>>代码示例>>PHP>>正文


PHP DupUtil::string_has_value方法代码示例

本文整理汇总了PHP中DupUtil::string_has_value方法的典型用法代码示例。如果您正苦于以下问题:PHP DupUtil::string_has_value方法的具体用法?PHP DupUtil::string_has_value怎么用?PHP DupUtil::string_has_value使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DupUtil的用法示例。


在下文中一共展示了DupUtil::string_has_value方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: file_put_contents

# END WordPress
HTACCESS;
    file_put_contents('.htaccess', $tmp_htaccess);
    DupUtil::log("created basic .htaccess file.  If using IIS web.config this process will need to be done manually.");
    DupUtil::log("updated .htaccess file.");
} else {
    DupUtil::log("web configuration file was not renamed because the paths did not change.");
}
//===============================
//WARNING TESTS
//===============================
DupUtil::log("\n--------------------------------------");
DupUtil::log("WARNINGS");
DupUtil::log("--------------------------------------");
$config_vars = array('WP_CONTENT_DIR', 'WP_CONTENT_URL');
$config_found = DupUtil::string_has_value($config_vars, $config_file);
//Files
if ($config_found) {
    $msg = 'WP-CONFIG WARNING: The wp-config.php has one or more of these values "' . implode(", ", $config_vars) . '" which may cause issues please validate these values by opening the file.';
    $JSON['step2']['warnlist'][] = $msg;
    DupUtil::log($msg);
}
//Database
$result = @mysqli_query($dbh, "SELECT option_value FROM `{$GLOBALS['FW_TABLEPREFIX']}options` WHERE option_name IN ('upload_url_path','upload_path')");
if ($result) {
    while ($row = mysqli_fetch_row($result)) {
        if (strlen($row[0])) {
            $msg = "MEDIA SETTINGS WARNING: The table '{$GLOBALS['FW_TABLEPREFIX']}options' has at least one the following values ['upload_url_path','upload_path'] set please validate settings. These settings can be changed in the wp-admin by going to Settings->Media area see 'Uploading Files'";
            $JSON['step2']['warnlist'][] = $msg;
            DupUtil::log($msg);
            break;
开发者ID:batruji,项目名称:metareading,代码行数:31,代码来源:ajax.step2.php


注:本文中的DupUtil::string_has_value方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。