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


PHP test::config_writable方法代码示例

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


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

示例1: updatable

 static function updatable()
 {
     return test::framework_working() && test::config_writable() && test::root_path_write_valid() && test::admin_data_writable() && test::directories_updatable();
 }
开发者ID:laiello,项目名称:phpbf,代码行数:4,代码来源:class.test.php

示例2:

		<td class="title"><b>PHP Version</b> (Required 5.0+, recommended 5.2+)</td><td>' . (test::get_php_version() >= 5.0 ? test::get_php_version() >= 5.2 ? test::ok() : test::warning("OK") : test::invalid("No")) . ' (' . test::get_php_version() . ')&nbsp;&nbsp;&nbsp;&nbsp;<a href="' . common::url('self') . '?view=phpinfo">View PHP Info</a></td>
	</tr><tr>
		<td class="title"><b>Sessions</b> (Required)</td><td>' . (test::session_enabled() ? test::ok() : test::invalid()) . '</td>
	</tr><tr>
		<td class="title"><b>Magic quotes</b> (Recommended to be off)</td><td>' . (test::magic_quotes_on() ? test::warning("Turn off for better performance") : test::ok("OFF")) . '</td>
	</tr></table>

	<h3>Admin console and config file</h3>
	<table cellspacing="0" cellpadding="5" class="tests"><tr>
		<td class="title"><b>Valid path to root</b></td><td>' . (test::root_path_valid() ? test::ok("YES") : test::invalid("NO")) . ' (Path: <i>' . PATH_TO_ROOT . '</i>)</td>
	</tr><tr>
		<td class="title"><b>Valid path to root for editing</b></td><td>' . (test::root_path_write_valid() ? test::ok("YES") : test::invalid("NO. Update will not work if it is not valid")) . ' (Path: <i>' . PATH_TO_ROOT_WRITE . '</i>)</td>
	</tr><tr>
		<td class="title"><b>Config file exists</b></td><td>' . (test::config_exists() ? test::ok("YES") : test::invalid("NO")) . ' (Path: <i>' . CONFIG_FILE . '</i>)</td>
	</tr><tr>
		<td class="title"><b>Config file is writable</b> (though edit path)</td><td>' . (test::config_writable() ? test::ok("YES") : test::invalid("NO")) . ' (Path: <i>' . CONFIG_FILE_WRITE . '</i>)</td>
	</tr><tr>
		<td class="title"><b>Config is complete</b></td><td>' . (test::config_complete() ? test::ok("YES") : test::invalid("NO. Run configuration again")) . '</td>
	</tr></table>

	<h3>Directories</h3>
	<table cellspacing="0" cellpadding="5" class="tests"><tr>';
foreach (test::directories() as $id => $data) {
    print '
	<tr>
		<td class="title"><b>Folder: ' . $id . '</b>' . ($data['write_required'] ? ' (Needs to be writable)' : '') . '</td>
		<td>' . ($data['exists'] ? $data['write_required'] && !$data['writable'] ? test::invalid("Not writable") : test::ok("OK") : test::invalid("NOT FOUND")) . ' (Path: <i>' . $data['path'] . '</i>)</td>
		<td style="width: 90px; text-align:right;">' . ($data['updatable'] ? test::ok("Updatable") : test::invalid("Not Updatable")) . '</td>
	</tr>';
}
print '</table>
开发者ID:laiello,项目名称:phpbf,代码行数:31,代码来源:view.test.php


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