PDA

View Full Version : Anyone can add media without an account.


Sidewinder
02-18-2007, 07:50 PM
Hi,

Anyone who visits http://www.mydomain.com/video/user.php?do=media can add media to my videos and it says the submission was added by the default username i set in admin cp.

Any help with resolving this issue would be greatly appreciated.

falarious
02-18-2007, 08:34 PM
Open Up user.php page

Find
// ##### DO UPLOAD #####
if ($_POST['do'] == 'media')
{
Change To


// ##### DO UPLOAD #####
if ($_POST['do'] == 'media')
{
// ##### REQUIRE USER TO BE LOGGED IN #####
if ($user->check_login() === false)
{
$message = 'You must be logged in to access this page. Please login by following <a href="login.php">this link</a> to login.';
$tpl->output_page('error');
}

Let me know if it works.

Ryan
02-19-2007, 06:28 PM
Thanks for the help falarious.

Lolcrazy
02-19-2007, 09:35 PM
this doesn't seem to work for me

Lolcrazy
02-19-2007, 09:39 PM
forget what I just said....it's working :D