Edit: /var/softaculous/yourls/_edit.php (3541B)
(\s*?)("|\')(.*?)("|\')/is', $file, $pass, 10);
}
else{
soft_preg_replace('/\$yourls_user_passwords(\s*?)=(\s*?)\[(.*?)("|\')(.*?)("|\')/is', $file, $user, 5);
soft_preg_replace('/\$yourls_user_passwords(\s*?)=(\s*?)\[(.*?)("|\')(.*?)("|\')(\s*?)=>(\s*?)("|\')(.*?)("|\')/is', $file, $pass, 10);
}
if($__settings['admin_username'] != $user){
$error[] = '{{err_no_such_user}}';
return false;
}else{
if(sversion_compare($__settings['ver'], '1.8', '<')){
//This is for plain text passwords below 1.8
$replace_data["'".$user."' => '".$pass."'"] = "'".$user."' => '".$__settings['admin_pass']."'";
}
else{
// This is to obtain password method from install.php
sp_include_once($software['path'].'/install.php');
// creating password using install.php __admin_pass() function
$__settings['admin_pass'] = __admin_pass($__settings['admin_pass']);
$replace_data["'".$user."' => '".$pass."'"] = "'".$user."' => '".$__settings['admin_pass']."'";
}
if(!empty($error)){
return false;
}
sclone_replace($replace_data, $installation['softpath'].'/user/config.php', true);
}
}
}
?>