Advertisement
Guest User

UserSpice 4.3 Dev - _admin_login_settings.php

a guest
Sep 15th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.71 KB | None | 0 0
  1. <form class="" action="admin.php?tab=2" name="social" method="post">
  2. <h2>Register and Login Settings</h2>
  3. <strong>Please note:</strong> Social logins require that you do some configuration on your own with Google and/or Facebook.<br>It is strongly recommended that you <a href="http://www.userspice.com/documentation-social-logins/">check the documentation at UserSpice.com.</a><br><br>
  4.  
  5. <div class="row">
  6.     <div class="col-xs-12 col-sm-6">
  7.  
  8.         <!-- Allow users to change Usernames -->
  9.         <div class="form-group">
  10.             <label for="change_un">Allow users to change their Usernames</label>
  11.             <select id="change_un" class="form-control" name="change_un">
  12.                 <option value="0" <?php if($settings->change_un==0) echo 'selected="selected"'; ?> >Disabled</option>
  13.                 <option value="1" <?php if($settings->change_un==1) echo 'selected="selected"'; ?> >Enabled</option>
  14.                 <option value="2" <?php if($settings->change_un==2) echo 'selected="selected"'; ?> >Only once</option>
  15.             </select>
  16.         </div>
  17.  
  18.         <div class="form-group">
  19.             <label for="min_pw">Minimum Password Length</label>
  20.             <input type="text" class="form-control" name="min_pw" id="min_pw" value="<?=$settings->min_pw?>">
  21.         </div>
  22.  
  23.         <div class="form-group">
  24.             <label for="max_pw">Maximum Password Length</label>
  25.             <input type="text" class="form-control" name="max_pw" id="max_pw" value="<?=$settings->max_pw?>">
  26.         </div>
  27.  
  28.         <div class="form-group">
  29.             <label for="req_num">Recommend a Number in the Password? (1=Yes)</label>
  30.             <input type="text" class="form-control" name="req_num" id="req_num" value="<?=$settings->req_num?>">
  31.         </div>
  32.  
  33.         <div class="form-group">
  34.             <label for="req_cap">Recommend a Capital Letter in the Password? (1=Yes)</label>
  35.             <input type="text" class="form-control" name="req_cap" id="req_cap" value="<?=$settings->req_cap?>">
  36.         </div>
  37.  
  38.         <div class="form-group">
  39.             <label for="min_un">Minimum Username Length</label>
  40.             <input type="text" class="form-control" name="min_un" id="min_un" value="<?=$settings->min_un?>">
  41.         </div>
  42.  
  43.         <div class="form-group">
  44.             <label for="max_un">Maximum Username Length</label>
  45.             <input type="text" class="form-control" name="max_un" id="max_un" value="<?=$settings->max_un?>">
  46.         </div>
  47.  
  48.     </div>
  49.     <div class="col-xs-12 col-sm-6">
  50.  
  51.         <div class="form-group">
  52.             <label for="glogin">Enable Google Login</label>
  53.             <select id="glogin" class="form-control" name="glogin">
  54.                 <option value="1" <?php if($settings->glogin==1) echo 'selected="selected"'; ?> >Enabled</option>
  55.                 <option value="0" <?php if($settings->glogin==0) echo 'selected="selected"'; ?> >Disabled</option>
  56.             </select>
  57.         </div>
  58.  
  59.         <div class="form-group">
  60.             <label for="fblogin">Enable Facebook Login</label>
  61.             <select id="fblogin" class="form-control" name="fblogin">
  62.                 <option value="1" <?php if($settings->fblogin==1) echo 'selected="selected"'; ?> >Enabled</option>
  63.                 <option value="0" <?php if($settings->fblogin==0) echo 'selected="selected"'; ?> >Disabled</option>
  64.             </select>
  65.         </div>
  66.  
  67.         <div class="form-group">
  68.             <label for="gid">Google Client ID</label>
  69.             <input type="password" class="form-control" name="gid" id="gid" value="<?=$settings->gid?>">
  70.         </div>
  71.  
  72.         <div class="form-group">
  73.             <label for="gsecret">Google Client Secret</label>
  74.             <input type="password" class="form-control" name="gsecret" id="gsecret" value="<?=$settings->gsecret?>">
  75.         </div>
  76.  
  77.         <div class="form-group">
  78.             <label for="ghome">Full Home URL of Website - include the final /</label>
  79.             <input type="text" class="form-control" name="ghome" id="ghome" value="<?=$settings->ghome?>">
  80.         </div>
  81.  
  82.         <div class="form-group">
  83.             <label for="gredirect">Google Redirect URL (Path to oauth_success.php)</label>
  84.             <input type="text" class="form-control" name="gredirect" id="gredirect" value="<?=$settings->gredirect?>">
  85.         </div>
  86.  
  87.         <div class="form-group">
  88.             <label for="fbid">Facebook App ID</label>
  89.             <input type="password" class="form-control" name="fbid" id="fbid" value="<?=$settings->fbid?>">
  90.         </div>
  91.  
  92.         <div class="form-group">
  93.             <label for="fbsecret">Facebook Secret</label>
  94.             <input type="password" class="form-control" name="fbsecret" id="fbsecret" value="<?=$settings->fbsecret?>">
  95.         </div>
  96.  
  97.         <div class="form-group">
  98.             <label for="fbcallback">Facebook Callback URL</label>
  99.             <input type="text" class="form-control" name="fbcallback" id="fbcallback" value="<?=$settings->fbcallback?>">
  100.         </div>
  101.  
  102.         <div class="form-group">
  103.             <label for="graph_ver">Facebook Graph Version - Formatted as v2.2</label>
  104.             <input type="text" class="form-control" name="graph_ver" id="graph_ver" value="<?=$settings->graph_ver?>">
  105.         </div>
  106.  
  107.         <div class="form-group">
  108.             <label for="finalredir">Redirect After Facebook Login</label>
  109.             <input type="text" class="form-control" name="finalredir" id="finalredir" value="<?=$settings->finalredir?>">
  110.         </div>
  111.  
  112.     </div>
  113. </div>
  114.  
  115. <input type="hidden" name="csrf" value="<?=Token::generate();?>" />
  116.  
  117. <p class="text-center"><input class="btn btn-large btn-primary" type="submit" name="social" value="Save Register and Login Settings" /></p>
  118. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement