Browse Source

Make starting upload a configuration constant

pjc 5 years ago
parent
commit
059a0e5f2c
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      classes/config.template
  2. 1
    1
      sections/register/index.php

+ 1
- 0
classes/config.template View File

@@ -71,6 +71,7 @@ define('DEBUG_WARNINGS',    true); //Set to true if you want to see PHP warnings
71 71
 define('OPEN_REGISTRATION', false); //Set to false to disable open regirstration, true to allow anyone to register
72 72
 define('USER_LIMIT',        0); //The maximum number of users the site can have, 0 for no limit
73 73
 define('STARTING_INVITES',  0); //# of invites to give to newly registered users
74
+define('STARTING_UPLOAD',   2147483648); // Amount of upload to give to newly registered users
74 75
 define('BLOCK_TOR',         false); //Set to true to block Tor users
75 76
 define('BLOCK_OPERA_MINI',  false); //Set to true to block Opera Mini proxy
76 77
 define('DONOR_INVITES',     2);

+ 1
- 1
sections/register/index.php View File

@@ -114,7 +114,7 @@ if (!empty($_REQUEST['confirm'])) {
114 114
         INSERT INTO users_main
115 115
           (Username, Email, PassHash, torrent_pass, IP, PermissionID, Enabled, Invites, Uploaded, ipcc)
116 116
         VALUES
117
-          ('".db_string(trim($_POST['username']))."', '".Crypto::encrypt($_POST['email'])."', '".db_string(Users::make_sec_hash($_POST['password']))."', '".db_string($torrent_pass)."', '".Crypto::encrypt($_SERVER['REMOTE_ADDR'])."', '$Class', '$Enabled', '".STARTING_INVITES."', '2147483648', '$IPcc')");
117
+          ('".db_string(trim($_POST['username']))."', '".Crypto::encrypt($_POST['email'])."', '".db_string(Users::make_sec_hash($_POST['password']))."', '".db_string($torrent_pass)."', '".Crypto::encrypt($_SERVER['REMOTE_ADDR'])."', '$Class', '$Enabled', '".STARTING_INVITES."', '".STARTING_UPLOAD."', '$IPcc')");
118 118
 
119 119
       $UserID = $DB->inserted_id();
120 120
 

Loading…
Cancel
Save