Exemple #1
0
                                  <td><?php 
echo get_func('mcrypt_cbc');
?>
</td>
                              </tr>

                              <tr>
                                  <td>Curl 扩展</td>
                                  <td class="hidden-phone">可选</td>
                                  <td>支持</td>
                                  <td><?php 
echo get_func('curl_init', 1);
?>
</td>
                                  <td><?php 
echo get_func('curl_init');
?>
</td>
                              </tr>
                              <tr>
                                  <td>脚本占用最大内存(memory_limit)</td>
                                  <td class="hidden-phone">128M</td>
                                  <td>512M</td>
                                  <td><?php 
echo get_cfg("memory_limit");
?>
</td>
                                  <td><div class="right"></div></td>
                              </tr>
                              <tr>
                                  <td>显示错误信息(display_errors)</td>
Exemple #2
0
$func_tpl = get_tpl_part(array("%FUNCTION_START%", "%FUNCTION_END%"), $section_tpl);
$description_tpl = get_tpl_part(array("%DESCRIPTION_START%", "%DESCRIPTION_END%"), $section_tpl);
$parameter_tpl = get_tpl_part(array("%PARAMETER_START%", "%PARAMETER_END%"), $section_tpl);
$parameters_tpl = get_tpl_part(array("%PARAMETERS_START%", "%PARAMETERS_END%"), $section_tpl);
$return_tpl = get_tpl_part(array("%RETURN_START%", "%RETURN_END%"), $section_tpl);
$conditions_tpl = get_tpl_part(array("%CONDITIONS_START%", "%CONDITIONS_END%"), $section_tpl);
$see_tpl = get_tpl_part(array("%SEE_START%", "%SEE_END%"), $section_tpl);

foreach($inh as $group_name => $group)
{
    $section_data = str_replace(array("%MENU%", "%GROUP_NAME%"), array($menu, ucwords($group_name)), $section_tpl);
    
    $funcs_data = array();
    foreach($group as $func_name => $func)
    {
        $func_data = str_replace(array("%FUNCTION_NAME%", "%FUNCTION%"), array(get_func($func_name), $func_name), $func_tpl);
        
        if(strlen($func["description"][0]) > 0)
            $func_data = ereg_replace("%DESCRIPTION_START%.*%DESCRIPTION_END%",
                                          str_replace("%FUNCTION_DESCRIPTION%", do_markup($func["description"][0]), $description_tpl),
                                          $func_data);
        else
            $func_data = ereg_replace("%DESCRIPTION_START%.*%DESCRIPTION_END%", "", $func_data);
        
        if(isset($func["param"]))
        {
            $params_data = array();
            foreach($func["param"] as $param)
            {
                $param = trim($param);
                $p1 = substr($param, 0, strpos($param, " "));