本文整理匯總了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'];