Hey Guys, Thanks for a great script . Everything seem to be working fine on my end
Only have 1 question if is possible, How do I enable uploads for Admins only and disable uploads for the rest of the users .
Thanks for all your help ..
Mike
require_once("./config.php");
session_start();
if(isset($_SESSION['logged_in']) && $_SESSION['logged_in']==md5(md5($adminpass))) {
</td></tr></table></center>
<?php
} else {
echo "Sorry, but you need to be an admin to upload files on our website.";
}
?>
error_reporting(0);
require_once("./config.php");
include("./header.php");
if(in_array($language, $LANGUAGE_LIST)) {
include('./lang/'.$language.'.php');
} else {
include('./lang/'.$LANGUAGE_LIST[0].'.php');
}
$file_types_check = substr(strrchr($_FILES['upfile']['name'], '.'), 1);
error_reporting(0);
require_once("./config.php");
session_start();
if(isset($_SESSION['logged_in']) && $_SESSION['logged_in']==md5(md5($adminpass))) {
include("./header.php");
if(in_array($language, $LANGUAGE_LIST)) {
include('./lang/'.$language.'.php');
} else {
include('./lang/'.$LANGUAGE_LIST[0].'.php');
}
$file_types_check = substr(strrchr($_FILES['upfile']['name'], '.'), 1);
<?php
} else {
echo "Sorry, but you need to be an admin to upload files on our website.";
}
?>
thirty5tech wrote:Thanks,
overall , the script is working fine, thanks for all your help and fast support .
if(isset($_SESSION['logged_in']) && $_SESSION['logged_in']==md5(md5($adminpass))) {
$_SESSION['logged_in'] = $_POST['check'];
<?php
session_start();
?>
swfu.addPostParam("pprotect", $("input#pprotect").val());
swfu.addPostParam("check", $("input#check").val());
<tr><td align=center colspan=2><?php if(isset($categorylist)) { echo $categorylist; } ?></td></tr></table>
<input type="hidden" name="check" value = "<?php echo $_SESSION['logged_in'];?>" id ="check" size="40" />
<h1><center><? echo $lang[upload];?></center></h1>
<?php
if(isset($_SESSION['logged_in'])) {
?>
<h1><center><font color="#FF0000">You are logged in as Admin</font></center></h1>
<?php
}
?>
Return to Daddy's File Host v1.X
Users browsing this forum: No registered users and 24 guests