File: /home/httpd/html/baretube.com/upload.php
<?
session_start();
include('admin/db.php');
$title = 'Upload - Step 1';
$headertitle = 'Upload - Step 1';
include($basepath.'/templates/template.overall_header.php');
if($allowUploads) {
if(!$_SESSION[userid]) {
echo "You must be logged in to upload. <a href='$basehttp/login.php'>Click here to login.</a>";
include($basepath.'/templates/template.overall_footer.php');
exit();
}
else {
if($_SESSION[user_level] == 2) {
$isSponsor = true;
}
else {
if(!$allowSurferUploads) {
echo "We are currently not allowing uploads from surfers.";
include($basepath.'/templates/template.overall_footer.php');
exit();
}
}
}
}
else {
echo "We're sorry, uploads are currently disabled.";
include($basepath.'/templates/template.overall_footer.php');
exit();
}
?>
<style>
.clear { clear: both; }
</style>
<div class="forms-wrapper">
<div class="forms">
<div class="forms-intro">
1) I certify that all models depicted are at least 18 years of age.<br>
2) I certify that I am the owner or licensed to use this content.<br>
3) I certify that I have consent of all models depicted to submit this content.<br><br>
You are logged in as <? echo $_SESSION[username]; ?> and your IP is <? echo $_SERVER['REMOTE_ADDR']; ?>
<!-- class="forms-intro" --></div>
<form action="<? echo $basehttp; ?>/upload2.php" method="post" name="stepform">
<div class="form-label">Video title</div>
<div class="form-field"><input class="text" name="title" type="text" onKeydown="javascript:validateStep();" value="" maxlength="255" /></div>
<div class="clear"></div>
<div class="form-label">Description</div>
<div class="form-field"><textarea name="description" onKeydown="javascript:validateStep();" ></textarea></div>
<div class="clear"></div>
<div class="form-label">Tags</div>
<div class="form-field"><input class="text" name="keywords" type="text" onKeydown="javascript:validateStep();" value="" maxlength="255" /></div>
<div class="clear"></div>
<div class="form-label">Channel</div>
<div class="form-field"><select name="channel">
<? $result = mysql_query("SELECT * FROM niches ORDER BY name ASC");
while($row = mysql_fetch_array($result)) {
echo "<option value='$row[record_num]'>$row[name]</option>";
}
?>
</select></div>
<div class="clear"></div>
<div class="form-label">Paysite</div>
<div class="form-field"><select name="paysite">
<? $result = mysql_query("SELECT * FROM paysites ORDER BY name ASC");
while($row = mysql_fetch_array($result)) {
echo "<option value='$row[record_num]'>$row[name]</option>";
}
?>
</select></div>
<div class="clear"></div>
<div class="form-field"><input class="submit" name="Reset" type="reset" value="Reset"> <input class="submit" type="submit" name="submit" id="submitb" value="Continue" disabled="disabled"></div>
<div class="clear"></div>
</form>
<!-- class="forms" --></div>
<!-- class="forms-wrapper" --></div>
<?
include($basepath.'/templates/template.overall_footer.php');
exit();
?>