Ejemplo n.º 1
0
        $pro = urlencode($productVersion);
        $dom = urlencode($rootserver);
        $ipv = urlencode($_SERVER['REMOTE_ADDR']);
        $mai = urlencode($user_data['txtAdminEmail']);
        $string = "pro={$pro}&dom={$dom}&ipv={$ipv}&mai={$mai}";
        $contents = "no";
        $file = @fopen("http://www.iscripts.com/installtracker.php?{$string}", 'r');
        if ($file) {
            $contents = @fread($file, 8192);
        }
        $installed = true;
    }
}
//check current directory permissions
foreach ($directories as $dir) {
    $permission = ServerConfig::fileWritable($dir, str_replace("../", "", $dir));
    if (!$permission['status']) {
        $error = true;
        $serverPermission = "true";
        $error_message .= $permission['message'];
    }
}
if ($installed) {
    header("location: upgrade_success.php");
    exit;
}
/*
$lines = file($oldSettingsFile);
function get_value_of($name){
    global $lines;
    for($i=1; $i < count($lines);$i++){