update
							parent
							
								
									b9102cee57
								
							
						
					
					
						commit
						e335080244
					
				| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
 | 
			
		||||
function getpath()
 | 
			
		||||
{
 | 
			
		||||
    $_SERVER['firstacceptlanguage'] = strtolower(splitfirst(splitfirst($_SERVER['HTTP_ACCEPT_LANGUAGE'],';')[0],',')[0]);
 | 
			
		||||
    $_SERVER['base_path'] = path_format(substr($_SERVER['SCRIPT_NAME'], 0, -10) . '/');
 | 
			
		||||
    $p = strpos($_SERVER['REQUEST_URI'],'?');
 | 
			
		||||
    if ($p>0) $path = substr($_SERVER['REQUEST_URI'], 0, $p);
 | 
			
		||||
| 
						 | 
				
			
			@ -118,7 +119,7 @@ function install()
 | 
			
		|||
    if ($_GET['install2']) {
 | 
			
		||||
        if ($_POST['admin']!='') {
 | 
			
		||||
            $tmp['admin'] = $_POST['admin'];
 | 
			
		||||
            $tmp['language'] = $_COOKIE['language'];
 | 
			
		||||
            $tmp['language'] = $_POST['language'];
 | 
			
		||||
            $response = setConfig($tmp);
 | 
			
		||||
            if (api_error($response)) {
 | 
			
		||||
                $html = api_error_msg($response);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue