thirty5tech wrote:Thanks,
overall , the script is working fine, thanks for all your help and fast support .
I'm glad you are liking our script and support
.
To enable Flash with Login Uploads only follow the following steps:
1) Go into upload.php and find
- Code: Select all
if(isset($_SESSION['logged_in']) && $_SESSION['logged_in']==md5(md5($adminpass))) {
2) Add above that piece of code
- Code: Select all
$_SESSION['logged_in'] = $_POST['check'];
3) Go into ./styles/Indigo/file_upload_form.php and add this code on the very first line.
- Code: Select all
<?php
session_start();
?>
4) After that, find
- Code: Select all
swfu.addPostParam("pprotect", $("input#pprotect").val());
and add below that
- Code: Select all
swfu.addPostParam("check", $("input#check").val());
5) Now find
- Code: Select all
<tr><td align=center colspan=2><?php if(isset($categorylist)) { echo $categorylist; } ?></td></tr></table>
and add below that code
- Code: Select all
<input type="hidden" name="check" value = "<?php echo $_SESSION['logged_in'];?>" id ="check" size="40" />
Now the flash upload should work along side the HTML form
.
P.S.: I advise you to add the below code in file_upload_form.php to inform you whether you are logged in as Admin or not to avoid uploading a large file just to get an error back saying you must be an admin to upload files. If you are already logged in as Admin and a message was not displayed, refresh the page to update the session ID on the javascript flash progress bar. In other words, do not upload any files unless you see the message "You are logged in as Admin".
1) Find
- Code: Select all
<h1><center><? echo $lang[upload];?></center></h1>
and after that line
- Code: Select all
<?php
if(isset($_SESSION['logged_in'])) {
?>
<h1><center><font color="#FF0000">You are logged in as Admin</font></center></h1>
<?php
}
?>