Add files via upload
							parent
							
								
									b0e75a3d54
								
							
						
					
					
						commit
						c489399fc9
					
				| 
						 | 
					@ -2,6 +2,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function getpath()
 | 
					function getpath()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					    $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'];
 | 
				
			||||||
    $_SERVER['base_path'] = path_format(substr($_SERVER['SCRIPT_NAME'], 0, -10) . '/');
 | 
					    $_SERVER['base_path'] = path_format(substr($_SERVER['SCRIPT_NAME'], 0, -10) . '/');
 | 
				
			||||||
    $p = strpos($_SERVER['REQUEST_URI'],'?');
 | 
					    $p = strpos($_SERVER['REQUEST_URI'],'?');
 | 
				
			||||||
    if ($p>0) $path = substr($_SERVER['REQUEST_URI'], 0, $p);
 | 
					    if ($p>0) $path = substr($_SERVER['REQUEST_URI'], 0, $p);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -158,13 +158,13 @@ run Writeable.sh.';
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        $html .= '
 | 
					        $html .= '
 | 
				
			||||||
    <form action="?install1" method="post" onsubmit="return adminnotnull(this);">
 | 
					    <form action="?install1" method="post" onsubmit="return adminnotnull(this);">
 | 
				
			||||||
        <label>admin:<input name="admin" type="password" placeholder="' . getconstStr('EnvironmentsDescription')['admin'] . '" size="' . strlen(getconstStr('EnvironmentsDescription')['admin']) . '"></label><br>
 | 
					 | 
				
			||||||
language:<br>';
 | 
					language:<br>';
 | 
				
			||||||
        foreach ($constStr['languages'] as $key1 => $value1) {
 | 
					        foreach ($constStr['languages'] as $key1 => $value1) {
 | 
				
			||||||
            $html .= '
 | 
					            $html .= '
 | 
				
			||||||
        <label><input type="radio" name="language" value="'.$key1.'" '.($key1==$constStr['language']?'checked':'').' onclick="changelanguage(\''.$key1.'\')">'.$value1.'</label><br>';
 | 
					        <label><input type="radio" name="language" value="'.$key1.'" '.($key1==$constStr['language']?'checked':'').' onclick="changelanguage(\''.$key1.'\')">'.$value1.'</label><br>';
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        $html .= '<br>
 | 
					        $html .= '<br>
 | 
				
			||||||
 | 
					        <label>admin:<input name="admin" type="password" placeholder="' . getconstStr('EnvironmentsDescription')['admin'] . '" size="' . strlen(getconstStr('EnvironmentsDescription')['admin']) . '"></label><br>
 | 
				
			||||||
        <input type="submit" value="'.getconstStr('Submit').'">
 | 
					        <input type="submit" value="'.getconstStr('Submit').'">
 | 
				
			||||||
    </form>
 | 
					    </form>
 | 
				
			||||||
    <script>
 | 
					    <script>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,7 +3,7 @@ include 'vendor/autoload.php';
 | 
				
			||||||
include 'conststr.php';
 | 
					include 'conststr.php';
 | 
				
			||||||
include 'function/common.php';
 | 
					include 'function/common.php';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo '<pre>'. json_encode($_SERVER, JSON_PRETTY_PRINT).'</pre>';
 | 
					//echo '<pre>'. json_encode($_SERVER, JSON_PRETTY_PRINT).'</pre>';
 | 
				
			||||||
if ($_SERVER['USER']==='qcloud') {
 | 
					if ($_SERVER['USER']==='qcloud') {
 | 
				
			||||||
    include 'function/scf.php';
 | 
					    include 'function/scf.php';
 | 
				
			||||||
} elseif ($_SERVER['HEROKU_APP_DIR']==='/app') {
 | 
					} elseif ($_SERVER['HEROKU_APP_DIR']==='/app') {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue