X7ROOT File Manager
Current Path:
/var/softaculous/sp
var
/
softaculous
/
sp
/
??
..
??
.htaccess
(184 B)
??
_index.php
(37 B)
??
check_charset.php
(1.97 KB)
??
clone.php
(13.15 KB)
??
edit.php
(3.52 KB)
??
edit.xml
(269 B)
??
editor.zip
(23.72 MB)
??
extend.php
(2.51 KB)
??
fileindex.php
(32 B)
??
images
??
import.php
(3.09 KB)
??
index.php
(1.21 KB)
??
info.xml
(20.3 KB)
??
install.js
(924 B)
??
install.php
(25.49 KB)
??
install.xml
(5.3 KB)
??
md5
(1.38 KB)
??
php53
??
php56
??
php71
??
php81
??
php82
??
post_download.json
(95 B)
??
sign_on_func.php
(2.13 KB)
??
soft.htaccess
(124 B)
??
sp.sql
(21.1 KB)
??
sp.zip
(281 B)
??
upgrade.php
(3.26 KB)
??
upgrade.xml
(231 B)
Editing: sign_on_func.php
<?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(); }
Upload File
Create Folder