403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.45
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/httpd/html/www.superporner.com/porn/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/www.superporner.com/porn/admin/add_user.php
<? 
require "header.php"; 


if($_POST) {
	$custom = mysql_real_escape_string(serialize($_POST[custom])); 
	$_POST = mysql_real_escape_array($_POST); 
	if(mysql_num_rows(mysql_query("SELECT * FROM users WHERE username = '$_POST[username]'")) < 1) {
	mysql_query("INSERT INTO users SET username = '$_POST[username]', password = MD5('$_POST[password]'), email = '$_POST[email]', user_level = '$_POST[user_level]', location = '$_POST[location]', age = '$_POST[age]', gender = '$_POST[gender]', description = '$_POST[description]', name = '$_POST[name]', phone = '$_POST[phone]', im = '$_POST[im]', im_type = '$_POST[im_type]', backlink = '$_POST[backlink]', program_name = '$_POST[program_name]', program_url = '$_POST[program_url]', premium = '$_POST[premium]', tokens = '$_POST[tokens]', freeform = '$_POST[freeform]', custom = '$custom'") or die(mysql_error());
	$insert = mysql_insert_id();
	$success = true;
	if($_FILES[banner][tmp_name]) {
		if((!eregi('.jpg',$_FILES[banner][name]) && !eregi('.gif',$_FILES[banner][name]) && !eregi('.png',$_FILES[banner][name])) || eregi('php',$_FILES[banner][name]) || eregi('.pl',$_FILES[banner][name])) { 
			echo "You may only upload image files.";
		}
		else {
			$uniq = uniqid();
			$filename = $uniq.trim($_FILES[banner][name]);
			$target = $misc_path."/".$filename;
			move_uploaded_file($_FILES[banner][tmp_name],$target);
			mysql_query("UPDATE users SET banner = '$filename' WHERE record_num = '$insert'");	
		}
	}
	}
	else {
		$inUse = true;  
	}
}
?>



     <div id="right_column">
        <!-- RIGHT -->
        <div id="right_top">
        	<div id="right_home"></div>
            <div id="right_right">  
            <a href="index.php">Admin Home</a>          
            <span><a href="add_user.php">Add User</a></span>  
            </div>
        </div>
        
        
        
        <div id="right_bg">
        
      		<h2>Add<strong>User</strong></h2>
            <p>Please use the form to create users on the website.</p>
            <div id="index_left" style='width: 100%;'>            
           
        
<form action="" method="post" enctype="multipart/form-data" name="form2" id="form2">
  <input type='hidden' name='sponsor' value='<? echo $_REQUEST[id]; ?>' />
  <? if($success) { ?>
  <p style='color:#009900'>Success! You may now add another user.</p>
  <? } ?>
  <? if($inUse) { ?>
  <p style='color:#ff0000'>Error! That username is already in use!</p>
  <? } ?>
  <table width="750" border="0" align="center" cellpadding="3" cellspacing="0" class='pagetable'>
    <thead>
      <tr>
        <th colspan="2" align="left">Add New User</th>
      </tr>
    </thead>
    <tr>
      <td width="102" height="25" class="style4">Username</td>
      <td width="339" height="25" align="left" class="style4"><input name="username" type="text" class="style4" id="name" value="<? echo $row[username]; ?>" size="35" maxlength="255" /></td>
    </tr>
    <tr>
      <td width="102" height="25" class="style4">Password</td>
      <td width="339" height="25" align="left" class="style4"><input name="password" type="text" class="style4" id="name" value="<? echo $row[password]; ?>" size="35" maxlength="255" /></td>
    </tr>
    <tr>
      <td height="25" class="style4">Email</td>
      <td height="25" align="left" class="style4"><input name="email" type="text" class="style4" id="name2" value="<? echo $row[email]; ?>" size="35" maxlength="255" /></td>
    </tr>
    <tr>
      <td height="25" class="style4">Location</td>
      <td height="25" align="left" class="style4"><input name="location" type="text" class="style4" id="name3" value="<? echo $row[location]; ?>" size="35" maxlength="255" /></td>
    </tr>
    <tr>
      <td height="25" class="style4">Age</td>
      <td height="25" align="left" class="style4"><input name="age" type="text" class="style4" id="name4" value="<? echo $row[age]; ?>" size="35" maxlength="255" /></td>
    </tr>
    <tr>
      <td height="25" class="style4">Gender</td>
      <td height="25" align="left" class="style4"><select name="gender" id="select2">
          <option <? if($row[gender] == 'Male') { echo 'selected'; } ?> value='Male'>Male</option>
          <option <? if($row[gender] == 'Female') { echo 'selected'; } ?> value='Female'>Female</option>
      </select></td>
    </tr>
    <tr>
      <td height="25" class="style4">Description</td>
      <td height="25" align="left" class="style4"><textarea name="description" id="textarea" cols="45" rows="8"><? echo $row[description]; ?></textarea></td>
    </tr>
    <tr>
      <td width="102" height="25" class="style4">User Type</td>
      <td width="339" height="25" align="left" class="style4"><select name="user_level" id="user_level">
          <option <? if($row[user_level] == 0) { echo "selected"; } ?> value="0">Normal</option>
          <option <? if($row[user_level] == 2) { echo "selected"; } ?> value="2">Partner</option>
        </select>
      </td>
    </tr>
    <tr>
      <td height="25" class="style4">Backlink URL</td>
      <td height="25" align="left" class="style4"><input name="backlink" type="text" id="backlink" size="70" maxlength="255" value='<? echo htmlentities($row[backlink]); ?>' /></td>
    </tr>
    <tr>
      <td height="25" class="style4">Backlink Banner</td>
      <td height="25" align="left" class="style4"><input type="file" name="banner" id="banner" /></td>
    </tr>
    <? if($row[banner]) { ?>
    <tr>
      <td height="25" class="style4">Current Banner</td>
      <td height="25" align="left" class="style4"><img src='http://<? echo $mediadomain; ?>/misc/<? echo $row[banner]; ?>' /></td>
    </tr>
    <? } ?>
    <tr>
      <td height="25" class="style4">Contact Name</td>
      <td height="25" align="left" class="style4"><input name="name" type="text" class="style4" id="name5" value="<? echo $row[name]; ?>" size="35" maxlength="255" /></td>
    </tr>
    <tr>
      <td height="25" class="style4">Contact Phone</td>
      <td height="25" align="left" class="style4"><input name="phone" type="text" class="style4" id="name6" value="<? echo $row[phone]; ?>" size="35" maxlength="255" /></td>
    </tr>
    <tr>
      <td height="25" class="style4">IM</td>
      <td height="25" align="left" class="style4"><input name="im" type="text" class="style4" id="name7" value="<? echo $row[im]; ?>" size="35" maxlength="255" /></td>
    </tr>
    <tr>
      <td height="25" class="style4">IM Type</td>
      <td height="25" align="left" class="style4"><select name="im_type" id="im_type">
          <option <? if($row[im_type] == 'AIM') { echo 'selected'; } ?>>AIM</option>
          <option <? if($row[im_type] == 'AIM') { echo 'selected'; } ?>>ICQ</option>
          <option <? if($row[im_type] == 'MSN') { echo 'selected'; } ?>>MSN</option>
          <option <? if($row[im_type] == 'Y!M') { echo 'selected'; } ?>>Y!M</option>
        </select>
      </td>
    </tr>
    <tr>
      <td height="25" class="style4">Site Name</td>
      <td height="25" align="left" class="style4"><input name="program_name" type="text" class="style4" id="name9" value="<? echo $row[program_name]; ?>" size="35" maxlength="255" /></td>
    </tr>
    <tr>
      <td height="25" class="style4">Site URL</td>
      <td height="25" align="left" class="style4"><input name="program_url" type="text" class="style4" id="name10" value="<? echo $row[program_url]; ?>" size="35" maxlength="255" /></td>
    </tr>
    <tr>
      <td height="25" class="style4">Comments/Info</td>
      <td height="25" align="left" class="style4"><textarea name="freeform" id="description" cols="45" rows="8"><? echo $row[freeform]; ?></textarea></td>
    </tr>
    <tr>
      <td height="25" class="style4">Premium</td>
      <td height="25" align="left" class="style4"><select name="premium" id="select2">
          <option <? if($row[premium] == '1') { echo 'selected'; } ?> value='1'>Yes</option>
          <option <? if($row[premium] == '0') { echo 'selected'; } ?> value='0'>No</option>
          
      </select></td>
    </tr>
    <tr>
      <td height="25" class="style4">Tokens</td>
      <td height="25" align="left" class="style4"><input name="tokens" type="text" class="style4" id="name10" value="<? echo $row[tokens]; ?>" size="35" maxlength="255" /></td>
    </tr>
    <?
foreach($custom_user_fields as $k=>$v) {
?>
<tr>
      <td><? echo $k; ?></td>
      <td>
      <? if(is_array($v)) { ?>
      <select name="custom[<? echo $k; ?>]">
      		<? foreach($v as $i) { 
				if($custom[$k] == $i) { $selected = 'selected'; } else { $selected = ''; }
			?>
            <option <? echo $selected; ?>><? echo $i; ?></option>
            <? } ?>
      </select>
      <? } else { ?>
      <input type="text" name="custom[<? echo $k; ?>]" id="textfield" value='<? echo htmlentities($custom[$k]); ?>' />
      <? } ?>
      </td>
    </tr>
<? } ?>
    <tr>
      <td colspan='2'><center>
        <input type="submit" name="Submit2" value="Save" />
      </center></td>
    </tr>
  </table>
  <p align="center">&nbsp;</p>
</form>
           
           
            </div>
            
          
        
        </div>
        
        <div id="right_bottom"></div>
       
        <!-- RIGHT -->
        
        
        
        <!-- STATYSTYKI -->
      
        
      
        </div>
       <!-- STATYSTYKI -->       
        
    
    
    </div>
  



</div>


      
        









<? require "footer.php"; ?>

Youez - 2016 - github.com/yon3zu
LinuXploit