Exemple #1
0
function php_ini_install($server_type_desc = null, $server_type = SERVER_DEDICATED, $required = true)
{
    $php_ini_name = ini_file_name();
    $self = get_self();
    echo '<p>';
    if ($server_type_desc) {
        echo "For a <strong>{$server_type_desc}</strong> server ";
    } else {
        echo "For this server ";
    }
    if ($required) {
        echo "you should install the ionCube Loader using the <code>{$php_ini_name}</code> configuration file.";
    } else {
        echo "installing the ionCube Loader using the <code>{$php_ini_name}</code> file is recommended.";
    }
    echo '</p>';
    if ($server_type_desc) {
        echo "<p>(<a href=\"{$self}?manual=1\">Please click here if you are <strong>not</strong> on a {$server_type_desc} server</a>.)</p>";
    }
    php_ini_instruction_list($server_type);
}
Exemple #2
0
function php_ini_install($server_type_desc = null, $server_type = SERVER_DEDICATED, $required = true)
{
    $php_ini_name = ini_file_name();
    $default = get_default_address();
    echo '<p>';
    if ($server_type_desc) {
        echo "在一个<strong> {$server_type_desc} </strong>服务器";
    } else {
        echo "在本地服务器";
    }
    if ($required) {
        echo "你应该使用配置文件<code>{$php_ini_name}</code>,来安装Ioncube Loader。";
    } else {
        echo "推荐使用配置文件<code>{$php_ini_name}</code>安装Ioncube Loader。";
    }
    if ($server_type_desc) {
        echo " (<a href=\"{$default}&amp;manual=1\">如果不是一个 {$server_type_desc} 服务器,点击此链接</a>.)";
    }
    echo '</p>';
    php_ini_instruction_list($server_type);
}