本文整理汇总了PHP中Info::get_flags方法的典型用法代码示例。如果您正苦于以下问题:PHP Info::get_flags方法的具体用法?PHP Info::get_flags怎么用?PHP Info::get_flags使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Info
的用法示例。
在下文中一共展示了Info::get_flags方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Info
$this->correct_to_freichat_path($set_file);
$flags['color2'] = "label label-success";
$flags['text2'] = "is readable";
} else {
$flags['flag'] = false;
$flags['color2'] = "label label-important";
$flags['text2'] = "is not readable";
}
}
return $flags;
}
}
$info = new Info();
$file_name_post = 'params.php';
$set_file = $info->set_file();
$flags = $info->get_flags($set_file);
if ($_SESSION['cms'] == 'Custom') {
$file_name_post = 'smart.php';
$flags['color2'] = 'green';
}
require 'header.php';
?>
<div style="text-align: center">
<br/> <span style="font-family: 'Sonsie One', cursive;font-size: 18pt;text-align: center"><b>
<?php
if ($flags['flag'] == false) {
echo "Please Correct the following";
} else {
echo "Everything Seems Alright!";
}
示例2: Info
if (isset($_SESSION['config_path']) == true) {
if (is_readable($_SESSION['config_path'])) {
$flags['color2'] = "green";
$flags['text2'] = "is readable";
} else {
$flags['flag'] = false;
$flags['color2'] = "red";
$flags['text2'] = "is not readable";
}
}
return $flags;
}
}
$info = new Info();
$set_file = $info->set_file();
$flags = $info->get_flags();
require 'header.php';
?>
<div style="text-align: center">
<br/> <span style="font-family: 'Sonsie One', cursive;font-size: 18pt;text-align: center"><b>
<?php
if ($flags['flag'] == false) {
echo "Please Correct the following";
} else {
echo "Everything Seems Alright!";
}
?>
</b></span><br/><br/><br/>
arg.php <font color='<?php
echo $flags['color1'];