diff --git a/Rocksolid_Light/common/create.php b/Rocksolid_Light/common/create.php deleted file mode 100644 index 49e0c4a..0000000 --- a/Rocksolid_Light/common/create.php +++ /dev/null @@ -1,69 +0,0 @@ -"; - echo '
'; - echo ' '; - echo ''; - echo ''; - echo ''; - echo ''; - echo '

Cancel and return to home page'; - exit(2); - } - $verified = 1; - } - if ($userFileHandle = @fopen($userFilename, 'w+')) - { - fwrite($userFileHandle, password_hash($password, PASSWORD_DEFAULT)); - fclose($userFileHandle); - chmod($userFilename, 0666); - } -// Create synchronet account - if(isset($synch_create) && $synch_create == true) { - putenv("SBBSCTRL=$synch_path/ctrl"); - $result = shell_exec("$synch_path/exec/makeuser $username -P $password"); - } - $newkey = make_key($username); - if ($userFileHandle = @fopen($keyFilename, 'w+')) - { - fwrite($userFileHandle, 'encryptionkey:'.$newkey."\r\n"); - fwrite($userFileHandle, 'email:'.$user_email."\r\n"); - if($verified == 1) { - fwrite($userFileHandle, "email_verified:true\r\n"); - } - fclose($userFileHandle); - chmod($userFilename, 0666); - } - unlink(sys_get_temp_dir()."/".$username); - echo "User:".$username." Created\r\n"; - echo '
Back'; - -function make_key($username) { - $key = openssl_random_pseudo_bytes(44); - return base64_encode($key); -} -?> diff --git a/Rocksolid_Light/common/register.php b/Rocksolid_Light/common/register.php index 0beb23f..afc2aea 100644 --- a/Rocksolid_Light/common/register.php +++ b/Rocksolid_Light/common/register.php @@ -47,6 +47,7 @@ if (isset($_COOKIE["ts_limit"])) { } if(isset($_POST['command']) && $_POST['command'] == 'CreateNew') { + include $config_dir.'/synchronet.conf'; $workpath = $config_dir."users/"; $keypath = $config_dir."userconfig/"; $username = $_POST['username'];